Note that there are some explanatory texts on larger screens.

plurals
  1. POConfigure Maven plugins to stick together
    primarykey
    data
    text
    <p>I have parent pom which configures certain plugins</p> <pre><code>&lt;pluginManagement&gt; &lt;/plugins&gt; &lt;plugin&gt; &lt;artifactId&gt;gmaven-plugin&lt;/artifactId&gt; ... &lt;/plugin&gt; &lt;plugin&gt; &lt;artifactId&gt;maven-resources-plugin&lt;/artifactId&gt; ... &lt;/plugin&gt; &lt;plugin&gt; &lt;artifactId&gt;cargo-maven2-plugin&lt;/artifactId&gt; ... &lt;/plugin&gt; &lt;/plugins&gt; &lt;/pluginManagement&gt; </code></pre> <p>And I have tree of poms which are represent integration tests</p> <pre><code>A-\ a1 a2 B-\ b1 b2 C-\ D-\ d1 d2 </code></pre> <p>In each a,b,d products I do</p> <pre><code>&lt;build&gt; &lt;plugins&gt; &lt;plugin&gt; &lt;artifactId&gt;gmaven-plugin&lt;/artifactId&gt; &lt;/plugin&gt; &lt;plugin&gt; &lt;artifactId&gt;maven-resources-plugin&lt;/artifactId&gt; &lt;/plugin&gt; &lt;plugin&gt; &lt;artifactId&gt;cargo-maven2-plugin&lt;/artifactId&gt; &lt;/plugin&gt; &lt;/plugins&gt; &lt;/build&gt; </code></pre> <p>The problem is when I will need to add fourth plugin to integration test process for example my custom plugin I will need to move through all of the integration modules and do manual adding.</p> <p><strong>You can advice me to remove <code>&lt;pluginManagement&gt;</code> to allow all child just to use them implicitly.</strong> Yes, but in products which are just 'pom' I don't want plugins to do anything: create some resources and put jboss configuration directories.</p> <p>I wonder is there some kind of </p> <pre><code>&lt;pluginsBundle&gt; &lt;groupId&gt;my.group&lt;/groupId&gt; &lt;artifactId&gt;my-integration-test-bundle&lt;/artifactId&gt; &lt;plugins&gt; &lt;plugin&gt; &lt;artifactId&gt;gmaven-plugin&lt;/artifactId&gt; &lt;/plugin&gt; &lt;plugin&gt; &lt;artifactId&gt;maven-resources-plugin&lt;/artifactId&gt; &lt;/plugin&gt; &lt;plugin&gt; &lt;artifactId&gt;cargo-maven2-plugin&lt;/artifactId&gt; &lt;/plugin&gt; &lt;/plugins&gt; &lt;/pluginsBundle&gt; </code></pre> <p>To allow me use it just like </p> <pre><code> &lt;plugin&gt; &lt;groupId&gt;my.group&lt;/groupId&gt; &lt;artifactId&gt;my-integration-test-bundle&lt;/artifactId&gt; &lt;runOnce&gt;true&lt;/runOnce&gt; &lt;/plugin&gt; </code></pre> <p><strong>I would like to add option like</strong> </p> <pre><code>&lt;runOnce&gt;true&lt;/runOnce&gt; </code></pre> <p>to be able to start application server and deploy target only one time per maven launch.</p>
    singulars
    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.
 

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