Note that there are some explanatory texts on larger screens.

plurals
  1. POmaven release plugin ignores releaseProfile
    primarykey
    data
    text
    <p>I am using two profiles: development and production.</p> <p>Development should be active on default; production should be used when I am releasing.</p> <p>In my pom.xml I have:</p> <pre><code>[...] &lt;plugin&gt; &lt;artifactId&gt;maven-release-plugin&lt;/artifactId&gt; &lt;version&gt;2.0-beta-9&lt;/version&gt; &lt;configuration&gt; &lt;useReleaseProfile&gt;false&lt;/useReleaseProfile&gt; &lt;goals&gt;deploy&lt;/goals&gt; &lt;arguments&gt;-Pproduction&lt;/arguments&gt; &lt;/configuration&gt; &lt;/plugin&gt; [...] &lt;profiles&gt; &lt;profile&gt; &lt;id&gt;production&lt;/id&gt; &lt;properties&gt; &lt;profile.name&gt;production&lt;/profile.name&gt; &lt;/properties&gt; [...] &lt;/profile&gt; &lt;profile&gt; &lt;id&gt;development&lt;/id&gt; &lt;activation&gt; &lt;activeByDefault&gt;true&lt;/activeByDefault&gt; &lt;/activation&gt; &lt;properties&gt; &lt;profile.name&gt;development&lt;/profile.name&gt; &lt;/properties&gt; [...] &lt;/profile&gt; [...] </code></pre> <p>It just does not work.<br> <code>useReleaseProfiles</code> doesn't work either: <a href="http://jira.codehaus.org/browse/MRELEASE-459" rel="nofollow noreferrer">http://jira.codehaus.org/browse/MRELEASE-459</a></p> <p>The development profile should be always active but not when running <code>mvn release:perform</code>. How do you achieve this?</p> <p>[UPDATE]: I have seen with the debug flag that my production profile is used, but development profile is used too, because it is <code>activeByDefault</code>. This cant be overridden by the <code>releaseProfile</code> argument. It would be nice to force the release plugin to use <strong>only</strong> the "production" profile.</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.
    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