Note that there are some explanatory texts on larger screens.

plurals
  1. POdisable maven release plugin defined in parent pom
    primarykey
    data
    text
    <p>I am new to maven. I have product structure as following</p> <pre><code>myWebProduct pom.xml coreModule webModule htmlTestModule </code></pre> <p>The maven release plugin is defined at the company level of <code>pom.xml</code> file which is parent of <code>myWebProduct</code>. It has set release plugin run default goals of <code>deploy</code> and default preparationGoals <code>clean verify install</code>.</p> <p>I want to release product in <code>myWebProduct</code> level which works fine except I would like to skip release the <code>htmlTestModule</code>. Because <code>deploy</code> life cycle on <code>htmlTestModule</code> will cause deployment of war file to remote Tomcat servers and I don’t want this happening during release.</p> <p>I tried to add following in <code>pom.xml</code> of the <code>htmlTestModule</code>.</p> <pre><code>&lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-release-plugin&lt;/artifactId&gt; &lt;version&gt;2.1&lt;/version&gt; &lt;configuration&gt; &lt;skip&gt;true&lt;/skip&gt; &lt;preparationGoals&gt;clean validate&lt;/preparationGoals&gt; &lt;goals&gt;testCompile&lt;/goals&gt; &lt;/configuration&gt; &lt;/plugin&gt; </code></pre> <p>But when running 'mvn release:perform' at <code>myWebProduct</code>. I have seen the deploy goal was still executed on <code>htmlTestModule</code>. Could anyone help with this?</p> <p>And I also tried following on <code>htmlTestModule</code>:</p> <pre><code>&lt;plugins&gt; &lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-deploy-plugin&lt;/artifactId&gt; &lt;version&gt;2.5&lt;/version&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;donotRunMe&lt;/id&gt; &lt;phase&gt;none&lt;/phase&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; </code></pre> <p>Still, the deploy goal always executed in <code>htmlTestModule</code>. Thanks</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.
 

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