I have configured the maven-jar-plugin
as follow:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<finalName>${project.artifactId}.main</finalName>
</configuration>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
<configuration>
<finalName>${project.artifactId}.tests</finalName>
</configuration>
</execution>
</executions>
</plugin>
I want my output JAR files to be called ARTIFACT.main.jar
and ARTIFACT.tests.jar
. The former is working, but the later comes out as ARTIFACT.tests-tests.jar
instead. Is there any way to adjust the above configuration to remove the -tests
classifier?