You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by huser <mp...@atxg.com> on 2009/06/18 17:44:59 UTC
change outputfile name
Hi,
I have a maven module which builds moduleA-1.0-SNAPSHOT.jar. I need the
output file name to be moduleA.jar. How can I do this via CLI or POM change
?
Thanks
--
View this message in context: http://www.nabble.com/change-outputfile-name-tp24095098p24095098.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: change outputfile name
Posted by Tony Chemit <ch...@codelutin.com>.
Le Thu, 18 Jun 2009 13:14:31 -0400,
"Todd Thiessen" <th...@nortel.com> a écrit :
> I believe changing the finalname property only changes the name of
> the artifact packaged in the target directory. The artifacts
> installed/deployed to the local/remo repos still has the version
> appended.
>
and your're wright :)
> ---
> Todd Thiessen
>
>
> > -----Original Message-----
> > From: Tony Chemit [mailto:chemit@codelutin.com]
> > Sent: Thursday, June 18, 2009 1:10 PM
> > To: users@maven.apache.org
> > Subject: Re: change outputfile name
> >
> > Le Thu, 18 Jun 2009 08:44:59 -0700 (PDT), huser
> > <mp...@atxg.com> a écrit :
> >
> > >
> > > Hi,
> > >
> > > I have a maven module which builds moduleA-1.0-SNAPSHOT.jar. I
> > > need the output file name to be moduleA.jar. How can I do this
> > via CLI or
> > > POM change ?
> > >
> > > Thanks
> >
> > override the property project.build.finalName will works :)
> > in your pom
> >
> > <project>
> > <build>
> > <finalName>moduleA.jar</finalName>
> > ...
> > </build>
> > </project>
> >
> > I wonder why it does not work in a commandline ? Any ideas ?
> >
> > I tried :
> >
> > mvn package -Dproject.build.finalName=yo, but still use the
> > default final name...
> >
> > For my part, I don't think this is a good idea what you want
> > to do, since you loose the version information and can not
> > distinguish between
> > 2 versions of your jar... but I'm not a maven expert...
> >
> > Best regards.
> >
> > --
> >
> > Tony Chemit
> > --------------------
> > tél: +33 (0) 2 40 50 29 28
> > email: chemit@codelutin.com
> > http://www.codelutin.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
--
Tony Chemit
--------------------
tél: +33 (0) 2 40 50 29 28
email: chemit@codelutin.com
http://www.codelutin.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: change outputfile name
Posted by Todd Thiessen <th...@nortel.com>.
I believe changing the finalname property only changes the name of the artifact packaged in the target directory. The artifacts installed/deployed to the local/remo repos still has the version appended.
---
Todd Thiessen
> -----Original Message-----
> From: Tony Chemit [mailto:chemit@codelutin.com]
> Sent: Thursday, June 18, 2009 1:10 PM
> To: users@maven.apache.org
> Subject: Re: change outputfile name
>
> Le Thu, 18 Jun 2009 08:44:59 -0700 (PDT), huser
> <mp...@atxg.com> a écrit :
>
> >
> > Hi,
> >
> > I have a maven module which builds moduleA-1.0-SNAPSHOT.jar. I need
> > the output file name to be moduleA.jar. How can I do this
> via CLI or
> > POM change ?
> >
> > Thanks
>
> override the property project.build.finalName will works :)
> in your pom
>
> <project>
> <build>
> <finalName>moduleA.jar</finalName>
> ...
> </build>
> </project>
>
> I wonder why it does not work in a commandline ? Any ideas ?
>
> I tried :
>
> mvn package -Dproject.build.finalName=yo, but still use the
> default final name...
>
> For my part, I don't think this is a good idea what you want
> to do, since you loose the version information and can not
> distinguish between
> 2 versions of your jar... but I'm not a maven expert...
>
> Best regards.
>
> --
>
> Tony Chemit
> --------------------
> tél: +33 (0) 2 40 50 29 28
> email: chemit@codelutin.com
> http://www.codelutin.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: change outputfile name
Posted by Tony Chemit <ch...@codelutin.com>.
Le Thu, 18 Jun 2009 08:44:59 -0700 (PDT),
huser <mp...@atxg.com> a écrit :
>
> Hi,
>
> I have a maven module which builds moduleA-1.0-SNAPSHOT.jar. I need
> the output file name to be moduleA.jar. How can I do this via CLI or
> POM change ?
>
> Thanks
override the property project.build.finalName will works :) in your pom
<project>
<build>
<finalName>moduleA.jar</finalName>
...
</build>
</project>
I wonder why it does not work in a commandline ? Any ideas ?
I tried :
mvn package -Dproject.build.finalName=yo, but still use the default
final name...
For my part, I don't think this is a good idea what you want to do,
since you loose the version information and can not distinguish between
2 versions of your jar... but I'm not a maven expert...
Best regards.
--
Tony Chemit
--------------------
tél: +33 (0) 2 40 50 29 28
email: chemit@codelutin.com
http://www.codelutin.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org