[
http://jira.codehaus.org/browse/MOJO-1573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=236304#action_236304
]
Jesse Glick commented on MOJO-1573:
-----------------------------------
{{-N}} can be useful when releasing a POM project, as I needed for
{{mojo-archetypes}} today, but you may also want on a particular occasion to
release all the children together. I also had cause to use {{-e}} the other
day, when encountering MSITE-459 without a meaningful stack trace, but since it
did not work I had to use more cumbersome means to find the cause. Neither have
anything to do with reproducibility of a build.
> 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