31

This is plugin configuration I am using:

<plugin>
    <artifactId>maven-assembly-plugin</artifactId>
    <configuration>
        <archive>
            <manifest>
                <mainClass>com.mycompany.changepasswd</mainClass>
            </manifest>
        </archive>
        <finalName>changepasswd</finalName>
        <descriptorRefs>
            <descriptorRef>jar-with-dependencies</descriptorRef>
        </descriptorRefs>
    </configuration>
</plugin>

When I run mvn clean install assembly:single what I get is changepasswd-jar-with-dependencies.jar. How do I tell the assembly plugin to just name it changepasswd.jar? Or is that something which is handled outside of the assembly plugin?

Mike Thomsen
  • 36,828
  • 10
  • 60
  • 83

1 Answers1

50

In your configuration element, try adding <appendAssemblyId>false</appendAssemblyId>. I believe this did the trick for me.

G_H
  • 11,739
  • 3
  • 38
  • 82