Can not set the final jar name with maven-assembly-plugin
You can specify the finalName
property to give the jar the name you want, and specify that appendAssemblyId
should be false to avoid the jar-with-dependencies
suffix.The configuration below will output a jar called test.jar
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <version>2.4</version> <configuration> <finalName>test</finalName> <archive> <manifest> <mainClass>com.myapp.Main</mainClass> </manifest> </archive> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> <appendAssemblyId>false</appendAssemblyId> </configuration> </plugin>