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:che...@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 
> <mpinj...@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: che...@codelutin.com
> http://www.codelutin.com 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to