How to set the last banner name using maven-assembly-plugin version 3

In older versions of the plugin, you can use <finalName> , but this no longer exists. Right now I'm getting projectName-version-jar-with-dependencies.jar, and it would be nice to change that.

+5
source share
1 answer

The finalName parameter is specified in the build section of the project, and not in the plugin configuration.

so essential:

 <build> <finalName>xyz</finalName> <plugins> <plugin> <artifactId>maven-assembly-plugin</artifactId> .... </plugin> </plugins> </build> 

The build plugin gets the final name from reading the ${project.build.finalName} property and is the readonly parameter.

At least this is what the code says: http://svn.apache.org/viewvc/maven/plugins/tags/maven-assembly-plugin-3.0.0/src/main/java/org/apache/maven /plugins/assembly/mojos/AbstractAssemblyMojo.java?view=markup

+1
source

Source: https://habr.com/ru/post/1269831/


All Articles