Skip to content

Commit

Permalink
Make shaded build work as outlined in http://stackoverflow.com/questi…
Browse files Browse the repository at this point in the history
  • Loading branch information
geoHeil committed May 9, 2017
1 parent 0de7b63 commit 23d212a
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -9,3 +9,5 @@
/doc/
/conf/
/log/
geospark (2).iml
dependency-reduced-pom.xml
75 changes: 75 additions & 0 deletions finalModule/pom.xml
@@ -0,0 +1,75 @@
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<!--<parent>-->
<groupId>org.datasyslab</groupId>
<artifactId>FinalModule</artifactId>
<!--original does not use parent pom so I skip it herea as well-->
<!--<artifactId>geospark</artifactId>-->
<version>0.6.2</version>
<!--</parent>-->
<name>${project.groupId}:${project.artifactId}</name>
<description>Geospatial extension for Apache Spark</description>
<url>http://geospark.datasyslab.org/</url>
<packaging>jar</packaging>

<licenses>
<license>
<name>MIT license</name>
<url>https://opensource.org/licenses/MIT</url>
</license>
</licenses>
<!--<artifactId>FinalModule</artifactId>-->

<dependencies>
<dependency>
<groupId>org.datasyslab</groupId>
<artifactId>geospark</artifactId>
<version>0.6.2</version>
</dependency>
<dependency>
<groupId>org.datasyslab</groupId>
<artifactId>babylon</artifactId>
<version>0.2.0</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<minimizeJar>true</minimizeJar>
<relocations>
<relocation>
<pattern>com.vividsolutions.jts</pattern>
<shadedPattern>com.vividsolutions.jtsgeospark</shadedPattern>
</relocation>
</relocations>
<filters>
<!-- filter to address "Invalid signature file" issue - see http://stackoverflow.com/a/6743609/589215-->
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>

This comment has been minimized.

Copy link
@geoHeil

geoHeil May 9, 2017

Author Owner

No filter statements are defined which would delete the original code - or am I missing something here?

</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
1 change: 1 addition & 0 deletions pom.xml
Expand Up @@ -10,5 +10,6 @@
<modules>
<module>core</module>
<module>babylon</module>
<module>finalModule</module>
</modules>
</project>

0 comments on commit 23d212a

Please sign in to comment.