Skip to content

Instantly share code, notes, and snippets.

@erikdw
Created August 21, 2018 02:24
Show Gist options
  • Save erikdw/3500c74b23ed2b5e2e808b50c9b39661 to your computer and use it in GitHub Desktop.
Save erikdw/3500c74b23ed2b5e2e808b50c9b39661 to your computer and use it in GitHub Desktop.
<project>
...
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>uber</shadedClassifierName>
<relocations>
<relocation>
<pattern>org.apache.storm.utils</pattern>
<shadedPattern>org.apache.storm.utils.shaded</shadedPattern>
</relocation>
</relocations>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
<exclude>defaults.yaml</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
...
<dependencies>
<dependency>
<groupId>org.apache.storm</groupId>
<artifactId>storm-core</artifactId>
<version>1.0.6</version>
<!-- intentionally including this at compile time -->
<scope>compile</scope>
</dependency>
</dependencies>
...
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment