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
  • 35,490
  • 10
  • 55
  • 80

1 Answers1

49

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

G_H
  • 11,469
  • 2
  • 35
  • 79