Today I faced the “problem” that I need to remove the version number from the archive maven generates when building.
The solution is as simple as it could be:
Add to your pom.xml the configuration section of your build plugin the following
[code language=”xml”]
<typeName>
${project.artifactId}
</typeName>
[/code]
In my case this looks like
[code language=”xml”]
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>
…
<warName>
${project.artifactId}
</warName>
</configuration>
</plugin>
[/code]
This overwrites the default ${project.artifactId}-${project.version}.{type}.