I'd like to create jar files like target/myproject-mytag.jar
, but when I run maven, I end up with target/myproject-tags/mytag/myproject.jar
. How can I get a jar file named myproject-mytag.jar
?
Here's the important snippets from my pom:
<build>
<finalName>${project.artifactId}-${scmBranch}</finalName>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>1.3</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>create</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
I'm not sure if it matters, but this is a child in a multi-module maven project stored in SVN.
Thanks, David