Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I didn't see how to turn off the war that's generated by default, but you can use one configuration outside the <code>&lt;executions&gt;</code> element and the rest inside:</p> <pre><code> &lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt; &lt;version&gt;2.1-beta-1&lt;/version&gt; &lt;configuration&gt; &lt;classifier&gt;with-junk&lt;/classifier&gt; &lt;!-- temp directory that the webapp is assembled in (each must be different) --&gt; &lt;webappDirectory&gt;${project.build.directory}/build-with-junk&lt;/webappDirectory&gt; &lt;webResources&gt; &lt;resource&gt; &lt;directory&gt;junk&lt;/directory&gt; &lt;includes&gt; &lt;include&gt;**/*&lt;/include&gt; &lt;/includes&gt; &lt;/resource&gt; &lt;/webResources&gt; &lt;/configuration&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;add-other-junk&lt;/id&gt; &lt;phase&gt;package&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;war&lt;/goal&gt; &lt;/goals&gt; &lt;!-- exclude prior configuration --&gt; &lt;inherited&gt;false&lt;/inherited&gt; &lt;configuration&gt; &lt;classifier&gt;with-other-junk&lt;/classifier&gt; &lt;webappDirectory&gt;${project.build.directory}/build-other-junk&lt;/webappDirectory&gt; &lt;webResources&gt; &lt;resource&gt; &lt;directory&gt;other-junk&lt;/directory&gt; &lt;includes&gt; &lt;include&gt;**/*&lt;/include&gt; &lt;/includes&gt; &lt;/resource&gt; &lt;/webResources&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; </code></pre> <p>For me, this builds <code>artifact-0.1-with-junk.war</code> and <code>artifact-0.1-with-other-junk.war</code> and both have the correct files included.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload