Skip to content

Commit

Permalink
Add support for shade plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Jianghao Lu committed Aug 20, 2015
1 parent 0b4853d commit 71ce0b1
Showing 1 changed file with 43 additions and 1 deletion.
44 changes: 43 additions & 1 deletion azure/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@
<findbugsXmlWithMessages>true</findbugsXmlWithMessages>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
Expand Down Expand Up @@ -322,6 +321,49 @@
</plugin>
</plugins>
</reporting>
<profiles>
<profile>
<id>run-shade-plugin</id>
<activation>
<property><name>runShadePlugin</name></property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.4.1</version>
<configuration>
</configuration>
<executions>
<execution>
<id>shade-plugin</id>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<modules>
<module>../core/azure-core</module>
<module>../core/azure-core-test</module>
Expand Down

0 comments on commit 71ce0b1

Please sign in to comment.