简体   繁体   中英

Split Multi-Module maven project into separate WAR files

I have a maven project which contains several sub-module projects. Currently when I build the project, one WAR file is generated.

Is it possible to specify through the POM that seperate WAR files should be built for each module in the project, so I can host the war files on separate servers if need be?

Cheers.

Make the packaging in the sub modules war :

<packaging>war</packaging>

... and make the packaging for the parent project pom :

<packaging>pom</packaging>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM