Maven WAR plugin not reading configuration when running in <execution> tag -
I'm trying to hang Maven with a war plug-in for many. It works fine until it is defined in the following manner:
& lt; Plugin & gt; & Lt; Group & gt; Org.apache.maven.plugins & lt; / Group & gt; & Lt; ArtifactId & gt; Maven War Plugin & lt; / ArtifactId> & Lt; Version & gt; 1.0 & lt; / Version & gt; & Lt; Configuration & gt; (...) & lt; / Configuration & gt;
but not in the following
& lt; Plugin & gt; & Lt; Group & gt; Org.apache.maven.plugins & lt; / Group & gt; & Lt; ArtifactId & gt; Maven War Plugin & lt; / ArtifactId> & Lt; Version & gt; 1.0 & lt; / Version & gt; & Lt; Hanging & gt; & Lt; Execution & gt; & Lt; Step & gt; Package & lt; / Step & gt; & Lt; Configuration & gt; (...) & lt; / Configuration & gt; & Lt; / Execution & gt; & Lt; / Hanging & gt; & Lt; / Plugin & gt;
Where Maven can not find any resources I & lt; Configure & gt;
Tags Have I missed anything important, and / or is there a better way to create multiple war files in the same build?
I did not know how to stop the war which is generated by default, but You can also go to For me, it creates & lt; Executions & gt;
can use a configuration inside and outside of the element:
artifact-0.1-with-junk.war
and artifact-0.1-with-other-junk.war
and both include the correct files.
Comments
Post a Comment