maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Haszlakiewicz, Eric" <EHAS...@transunion.com>
Subject RE: can i change the name of the uploaded/installed artifact?
Date Wed, 05 Jan 2011 18:30:42 GMT
>-----Original Message-----
>From: Reynald Borer [mailto:reynald.borer@gmail.com]
>
>You can modify the finalName tag to change the name of artifact. By default
>it is defined like the following:
><project>
><build>
><finalName>${artifactId}-${version}</finalName>
></build>
></project>

That only affects what gets created in your "target" directory.  Once the artifact gets uploaded
to a repository (e.g. ~/.m2, or a central Nexus repo) the "standard" naming is enforced.

The finalName tag is really only useful if you skip the deploy step and use the output artifact
directly.  (e.g. as part of a larger, non-maven build, or emailing it to a customer, etc...)

eric

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


Mime
View raw message