maven one-jar-plugin output filename

The filename parameter allow one to change, guess what, the jar filename.

<plugin>
<groupId>org.dstovall</groupId>
<artifactId>onejar-maven-plugin</artifactId>
<version>1.4.4</version>
<executions>
<execution>
<goals>
<goal>one-jar</goal>
</goals>
</execution>
</executions>
<configuration>
<filename>${project.build.finalName}.jar</filename>
</configuration>
</plugin>

There are many more options. see source code

Advertisements