You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Joerg Vater (JIRA)" <ji...@codehaus.org> on 2006/12/14 15:29:40 UTC
[jira] Created: (MJAR-64) jar:jar ignores command line argument
-DfinalName=xxx
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
[jira] Updated: (MJAR-64) jar:jar ignores command line argument
-DfinalName=xxx
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MJAR-64?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olivier Lamy updated MJAR-64:
-----------------------------
Assignee: Olivier Lamy
Fix Version/s: 2.2
Issue Type: Improvement (was: Bug)
> 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: Improvement
> Affects Versions: 2.2
> Reporter: Joerg Vater
> Assignee: Olivier Lamy
> Fix For: 2.2
>
> 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
[jira] Closed: (MJAR-64) jar:jar ignores command line argument
-DfinalName=xxx
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MJAR-64?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olivier Lamy closed MJAR-64.
----------------------------
Resolution: Fixed
Use the expression="${jar.finalName}"
committed in rev 606330.
> 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: Improvement
> Affects Versions: 2.2
> Reporter: Joerg Vater
> Assignee: Olivier Lamy
> Fix For: 2.2
>
> 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
[jira] Updated: (MJAR-64) jar:jar ignores command line argument
-DfinalName=xxx
Posted by "Joerg Vater (JIRA)" <ji...@codehaus.org>.
[ 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
[jira] Commented: (MJAR-64) jar:jar ignores command line argument
-DfinalName=xxx
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MJAR-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_117333 ]
Olivier Lamy commented on MJAR-64:
----------------------------------
I prefer something like expression="${jar.finalName}".
It's more like other naming convention used.
> 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
> Fix For: 2.2
>
> 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