Issue
I'm using the maven assembly plugin
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</plugin>
If I try to deploy, on my repository, I find the default jar name with the addition of jar-with-dependencies
.
But I would like to add one more final string. So for example JARNAME-1.0.0-jar-with-dependencies-test.jar
.
How can I do? Is there a possibility to set a classifier? I tried to use <finalName>
, but on the repository the name remains unchanged, the jar name changes only in the target folder.
I need this because I have 2 profiles and I have to distinguish the 2 jars.
Solution
I opted to use the maven shape plugin
Answered By - Lako12
Answer Checked By - David Goodson (JavaFixing Volunteer)