Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You need to have maven name the original JAR jar file created during the default jar phase differently than the final output jar created by the shade plugin.

In your pom.xml, do this (note the tmp suffix):

Code Block
xml
xml
...
      <!-- ******************************************************** -->
      <!-- The intermediate JAR file must be named differently than -->
      <!-- the shade output JAR file to prevent duplicate warnings. -->
      <!-- ******************************************************** -->

      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <configuration>
          <finalName>${artifactId}-${version}-tmp</finalName>
        </configuration>
      </plugin>
...

...