You always need the version number for the project, however, you can change the name of the generated package (JAR, WAR, EAR, etc.) through the <finalName> element in the POM.
<project> ... <build> ... <finalName>${project.artifactId}</finalName> ... </build> ... </project>
or in older versions of maven:
... <finalName>${artifactId}</finalName> ...
By default, finalName is set to ${project.artifactId}-${project.version} , but this can be changed to another. This will only affect the name of the package created in the target directory; the file name in the local repository and downloaded to the remote repositories will always have a version number.
See the POM reference documentation for more information.
prunge Mar 06 '12 at 23:33 2012-03-06 23:33
source share