Skip to content

Commit

Permalink
cqlib dependency should be shaded to avoid class loader issues #17
Browse files Browse the repository at this point in the history
  • Loading branch information
aludwiko committed Nov 11, 2014
1 parent ca893d8 commit 1fd8633
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ target/
.checkstyle
.pmdruleset.xml
.fbExcludeFilterFile
/bin/
/bin/
dependency-reduced-pom.xml
38 changes: 38 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,44 @@
</profiles>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>1.7.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<artifactSet>
<includes>
<include>cglib:cglib-nodep</include>
</includes>
</artifactSet>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>LICENSE</exclude>
<exclude>asm-license.txt</exclude>
<exclude>NOTICE</exclude>
</excludes>
</filter>
</filters>
<relocations>
<relocation>
<pattern>net.sf.cglib</pattern>
<shadedPattern>shaded.net.sf.cglib</shadedPattern>
</relocation>
</relocations>

<minimizeJar>true</minimizeJar>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand Down

0 comments on commit 1fd8633

Please sign in to comment.