Generating Static WAR Content Archive with Maven

Markus Eisele
You may have seen my simple JEE5 maven project setup already. I am trying to add more and more features during the next few weeks that satisfy the needs of enterprise software development.

First add-on is the possibility to have a separate generated, which contains all relevant content, that should be deployed to a separate webserver.

All you have to do is to add the following to your war/pom.xml

<!-- assamble static content -->

Next step is to add a new folder in the web project (src\main\assembly) and create the needed assembly file (static.xml)


If you now run maven clean install than you get a new file generated, which contains all the defined files and folders.

Post a Comment


Post a Comment (0)