I have some multi-module project.
Some modules are packaged as wars and some as jars.
When I start from the root module : mvn war:exploded I thought it would apply the step only to the war projects. But it tries to apply the mvn war:exploded on all the projects which obviously fails (no web.xml and so on).
Any ideas how can I tell maven to apply in only to the war packaging modules?
When running
war:war(which is the goal bound topackagefor a project with a war packaging), the war plugin automatically creates a directory of the exploded war file first and then compresses it into the actual war file. So why don’t you simply runmvn packageduring your reactor build?If really this is not an option, you could maybe use one of maven’s advanced reactor options, and more precisely:
and list only the war modules.