[ http://jira.codehaus.org/browse/MJAR-64?page=all ]
Joerg Vater updated MJAR-64:
----------------------------
Attachment: AbstractJarMojo.java.patch
Patch
> jar:jar ignores command line argument -DfinalName=xxx
> -----------------------------------------------------
>
> Key: MJAR-64
> URL: http://jira.codehaus.org/browse/MJAR-64
> Project: Maven 2.x Jar Plugin
> Issue Type: Bug
> Affects Versions: 2.2
> Reporter: Joerg Vater
> Attachments: AbstractJarMojo.java.patch
>
>
> It should be possible to specify the name of a generated jar via command line
> parameter:
> mvn -DfinalName="xxx" jar:jar
> The following simple change in AbstractJarMojo.java allows to set finalName
> from the command line:
> /**
> * Name of the generated JAR.
> *
> * @parameter alias="jarName" expression="${finalName}"
> default-value="${project.build.finalName}"
> * @required
> */
> private String finalName;
--
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