Commits

Lars J. Nilsson committed 0831358

shading jackson in styx core

Comments (0)

Files changed (1)

-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
 	<modelVersion>4.0.0</modelVersion>
 	<artifactId>styx-core</artifactId>
 	<name>Styx Core Lib</name>
 
 	<parent>
-	  <groupId>com.cubeia.styx</groupId>
-	  <artifactId>styx-root</artifactId>
-	  <version>1.10-SNAPSHOT</version>
+		<groupId>com.cubeia.styx</groupId>
+		<artifactId>styx-root</artifactId>
+		<version>1.10-SNAPSHOT</version>
 	</parent>
 
 	<dependencies>
 			<version>1.9.3</version>
 		</dependency>
 	</dependencies>
+
+	<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>
+							<relocations>
+								<relocation>
+									<pattern>org.codehaus.jackson</pattern>
+									<shadedPattern>com.cubeia.org.codehaus.jackson</shadedPattern>
+								</relocation>
+							</relocations>
+							<minimizeJar>true</minimizeJar>
+						</configuration>
+					</execution>
+				</executions>
+			</plugin>
+		</plugins>
+	</build>
 </project>