maven-release-plugin configuration prevents usage of -Darguments=...
--------------------------------------------------------------------
Key: MOJO-1573
URL: http://jira.codehaus.org/browse/MOJO-1573
Project: Mojo
Issue Type: Bug
Components: _Mojo Parent
Environment: Maven 2.2.1
Reporter: Jesse Glick
Priority: Minor
In {{mojo-parent-25.pom}}:
{noformat}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.0</version>
<configuration>
<tagBase>https://svn.codehaus.org/mojo/tags</tagBase>
<useReleaseProfile>false</useReleaseProfile>
<arguments>-Pmojo-release</arguments>
</configuration>
</plugin>
{noformat}
This is rather unfortunate, since it means that if you pass
{{-Darguments=something}} ({{-e}}, {{-N}}, etc.) on CLI when running
{{release:prepare}} or {{release:perform}}, it will be silently ignored!
Perhaps {{<useReleaseProfile>false</useReleaseProfile>}} and
{{<arguments>-Pmojo-release</arguments>}} could be removed if the
{{mojo-release}} profile was just renamed {{release}}?
Failing that, try:
{noformat}
<properties>
...
<arguments/>
...
</properties>
...
<arguments>-Pmojo-release ${arguments}</arguments>
{noformat}
so that {{-Darguments=something}} still works.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email