Versions Compared

Key

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

...

Doing this and that:

Code Block
xml
xml

<project>
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-shade-plugin</artifactId>
        <version>1.1</version>
        <configuration>
           <!-- your example configuration here -->
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>

...

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>
...

...