...
Doing this and that:
| Code Block | ||
|---|---|---|
| ||
<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 | ||
|---|---|---|
| ||
...
<!-- ******************************************************** -->
<!-- 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>
...
|
...
