Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Spark loader has dependency conflicts
  • Loading branch information
alanzhao committed Jun 19, 2023
1 parent ddb5e0b commit 8f3b528
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions hugegraph-loader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,17 @@
<artifactId>jersey-server</artifactId>
<groupId>org.glassfish.jersey.core</groupId>
</exclusion>
<exclusion>
<artifactId>gson</artifactId>
<groupId>com.google.code.gson</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<artifactId>gson</artifactId>
<groupId>com.google.code.gson</groupId>
<version>${gson.version}</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-sql_${scala.version}</artifactId>
Expand Down Expand Up @@ -614,6 +623,57 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.4.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
<finalName>${final.name}-shaded</finalName>
<relocations>
<relocation>
<pattern>org.glassfish.jersey</pattern>
<shadedPattern>shaded.org.glassfish.jersey</shadedPattern>
</relocation>
<relocation>
<pattern>jakarta.ws.rs</pattern>
<shadedPattern>shaded.jakarta.ws.rs</shadedPattern>
</relocation>
<relocation>
<pattern>com.google.common.base</pattern>
<shadedPattern>shaded.com.google.common.base</shadedPattern>
</relocation>
<relocation>
<pattern>org.glassfish.hk2</pattern>
<shadedPattern>shaded.org.glassfish.hk2</shadedPattern>
</relocation>
<relocation>
<pattern>org.jvnet.hk2</pattern>
<shadedPattern>shaded.org.jvnet.hk2</shadedPattern>
</relocation>
</relocations>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer">
</transformer>
</transformers>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>module-info.class</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
Expand Down

0 comments on commit 8f3b528

Please sign in to comment.