Skip to content
This repository was archived by the owner on Oct 8, 2020. It is now read-only.

Commit f79c546

Browse files
Minor Pom changes
1 parent b9ee77f commit f79c546

File tree

2 files changed

+166
-151
lines changed

2 files changed

+166
-151
lines changed

sansa-inference-flink/pom.xml

Lines changed: 163 additions & 149 deletions
Original file line numberDiff line numberDiff line change
@@ -118,155 +118,6 @@ under the License.
118118
<!--<outputDirectory>target/scala-${scala.binary.version}/classes</outputDirectory>-->
119119
<!--<testOutputDirectory>target/scala-${scala.binary.version}/test-classes</testOutputDirectory>-->
120120
<plugins>
121-
<!-- We use the maven-shade plugin to create a fat jar that contains all dependencies
122-
except flink and it's transitive dependencies. The resulting fat-jar can be executed
123-
on a cluster. Change the value of Program-Class if your program entry point changes. -->
124-
<plugin>
125-
<groupId>org.apache.maven.plugins</groupId>
126-
<artifactId>maven-shade-plugin</artifactId>
127-
<version>2.4.1</version>
128-
<executions>
129-
<!-- Run shade goal on package phase -->
130-
<execution>
131-
<phase>package</phase>
132-
<goals>
133-
<goal>shade</goal>
134-
</goals>
135-
<configuration>
136-
<!--<minimizeJar>true</minimizeJar>-->
137-
<artifactSet>
138-
<excludes>
139-
<!-- This list contains all dependencies of flink-dist
140-
Everything else will be packaged into the fat-jar
141-
-->
142-
<exclude>org.apache.flink:flink-shaded-*_2.11</exclude>
143-
<exclude>org.apache.flink:flink-core_2.11</exclude>
144-
<exclude>org.apache.flink:flink-java*</exclude>
145-
<exclude>org.apache.flink:flink-java_2.11</exclude>
146-
<exclude>org.apache.flink:flink-scala_2.11</exclude>
147-
<exclude>org.apache.flink:flink-runtime_2.11</exclude>
148-
<exclude>org.apache.flink:flink-optimizer_2.11</exclude>
149-
<exclude>org.apache.flink:flink-clients_2.11</exclude>
150-
<exclude>org.apache.flink:flink-avro_2.11</exclude>
151-
<exclude>org.apache.flink:flink-java-examples_2.11</exclude>
152-
<exclude>org.apache.flink:flink-scala-examples_2.11</exclude>
153-
<exclude>org.apache.flink:flink-streaming-examples_2.11</exclude>
154-
<exclude>org.apache.flink:flink-streaming-java_2.11</exclude>
155-
156-
<!-- Also exclude very big transitive dependencies of Flink
157-
158-
WARNING: You have to remove these excludes if your code relies on other
159-
versions of these dependencies.
160-
161-
-->
162-
163-
<exclude>org.scala-lang:scala-library</exclude>
164-
<exclude>org.scala-lang:scala-compiler</exclude>
165-
<exclude>org.scala-lang:scala-reflect</exclude>
166-
<exclude>com.amazonaws:aws-java-sdk</exclude>
167-
<exclude>com.typesafe.akka:akka-actor_*</exclude>
168-
<exclude>com.typesafe.akka:akka-remote_*</exclude>
169-
<exclude>com.typesafe.akka:akka-slf4j_*</exclude>
170-
<exclude>io.netty:netty-all</exclude>
171-
<exclude>io.netty:netty</exclude>
172-
<exclude>org.eclipse.jetty:jetty-server</exclude>
173-
<exclude>org.eclipse.jetty:jetty-continuation</exclude>
174-
<exclude>org.eclipse.jetty:jetty-http</exclude>
175-
<exclude>org.eclipse.jetty:jetty-io</exclude>
176-
<exclude>org.eclipse.jetty:jetty-util</exclude>
177-
<exclude>org.eclipse.jetty:jetty-security</exclude>
178-
<exclude>org.eclipse.jetty:jetty-servlet</exclude>
179-
<exclude>org.gephi:*</exclude>
180-
<exclude>org.netbeans.api:*</exclude>
181-
182-
<exclude>commons-fileupload:commons-fileupload</exclude>
183-
<exclude>org.apache.avro:avro</exclude>
184-
<exclude>commons-collections:commons-collections</exclude>
185-
<exclude>org.codehaus.jackson:jackson-core-asl</exclude>
186-
<exclude>org.codehaus.jackson:jackson-mapper-asl</exclude>
187-
<exclude>com.thoughtworks.paranamer:paranamer</exclude>
188-
<exclude>org.xerial.snappy:snappy-java</exclude>
189-
<exclude>org.apache.commons:commons-compress</exclude>
190-
<exclude>org.tukaani:xz</exclude>
191-
<exclude>com.esotericsoftware.kryo:kryo</exclude>
192-
<exclude>com.esotericsoftware.minlog:minlog</exclude>
193-
<exclude>org.objenesis:objenesis</exclude>
194-
<exclude>com.twitter:chill_*</exclude>
195-
<exclude>com.twitter:chill-java</exclude>
196-
<exclude>com.twitter:chill-avro_*</exclude>
197-
<exclude>com.twitter:chill-bijection_*</exclude>
198-
<exclude>com.twitter:bijection-core_*</exclude>
199-
<exclude>com.twitter:bijection-avro_*</exclude>
200-
<exclude>commons-lang:commons-lang</exclude>
201-
<exclude>junit:junit</exclude>
202-
<exclude>de.javakaffee:kryo-serializers</exclude>
203-
<exclude>joda-time:joda-time</exclude>
204-
<exclude>org.apache.commons:commons-lang3</exclude>
205-
<exclude>org.slf4j:slf4j-api</exclude>
206-
<exclude>org.slf4j:slf4j-log4j12</exclude>
207-
<exclude>log4j:log4j</exclude>
208-
<exclude>org.apache.commons:commons-math</exclude>
209-
<exclude>org.apache.sling:org.apache.sling.commons.json</exclude>
210-
<exclude>commons-logging:commons-logging</exclude>
211-
<exclude>org.apache.httpcomponents:httpclient</exclude>
212-
<exclude>org.apache.httpcomponents:httpcore</exclude>
213-
<exclude>commons-codec:commons-codec</exclude>
214-
<exclude>com.fasterxml.jackson.core:jackson-core</exclude>
215-
<exclude>com.fasterxml.jackson.core:jackson-databind</exclude>
216-
<exclude>com.fasterxml.jackson.core:jackson-annotations</exclude>
217-
<exclude>org.codehaus.jettison:jettison</exclude>
218-
<exclude>stax:stax-api</exclude>
219-
<exclude>com.typesafe:config</exclude>
220-
<exclude>org.uncommons.maths:uncommons-maths</exclude>
221-
<!--<exclude>com.github.scopt:scopt_*</exclude>-->
222-
<exclude>org.mortbay.jetty:servlet-api</exclude>
223-
<exclude>commons-io:commons-io</exclude>
224-
<exclude>commons-cli:commons-cli</exclude>
225-
226-
<exclude>sqlite:*</exclude>
227-
<exclude>netbeans:*</exclude>
228-
<exclude>org.apache.xmlgraphics:*</exclude>
229-
<exclude>mysql:*</exclude>
230-
</excludes>
231-
</artifactSet>
232-
<filters>
233-
<filter>
234-
<artifact>org.apache.flink:*</artifact>
235-
<excludes>
236-
<exclude>org/apache/flink/shaded/**</exclude>
237-
<exclude>web-docs/**</exclude>
238-
</excludes>
239-
</filter>
240-
<filter>
241-
<!-- Do not copy the signatures in the META-INF folder.
242-
Otherwise, this might cause SecurityExceptions when using the JAR. -->
243-
<artifact>*:*</artifact>
244-
<excludes>
245-
<exclude>META-INF/*.SF</exclude>
246-
<exclude>META-INF/*.DSA</exclude>
247-
<exclude>META-INF/*.RSA</exclude>
248-
</excludes>
249-
</filter>
250-
</filters>
251-
<finalName>dist-${project.artifactId}-${project.version}</finalName>
252-
<transformers>
253-
<!-- add Main-Class to manifest file -->
254-
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
255-
<mainClass>net.sansa_stack.inference.flink.RDFGraphMaterializer</mainClass>
256-
</transformer>
257-
</transformers>
258-
<createDependencyReducedPom>false</createDependencyReducedPom>
259-
<relocations>
260-
<relocation>
261-
<pattern>scopt</pattern>
262-
<shadedPattern>scopt.shaded</shadedPattern>
263-
</relocation>
264-
</relocations>
265-
</configuration>
266-
</execution>
267-
</executions>
268-
</plugin>
269-
270121
<plugin>
271122
<groupId>org.apache.maven.plugins</groupId>
272123
<artifactId>maven-compiler-plugin</artifactId>
@@ -369,5 +220,168 @@ under the License.
369220
</dependency>
370221
</dependencies>
371222
</profile>
223+
224+
<profile>
225+
<id>dist</id>
226+
<activation>
227+
<property>
228+
<name>dist</name>
229+
</property>
230+
</activation>
231+
<build>
232+
<plugins>
233+
<!-- We use the maven-shade plugin to create a fat jar that contains all dependencies
234+
except flink and it's transitive dependencies. The resulting fat-jar can be executed
235+
on a cluster. Change the value of Program-Class if your program entry point changes. -->
236+
<plugin>
237+
<groupId>org.apache.maven.plugins</groupId>
238+
<artifactId>maven-shade-plugin</artifactId>
239+
<version>2.4.1</version>
240+
<executions>
241+
<!-- Run shade goal on package phase -->
242+
<execution>
243+
<phase>package</phase>
244+
<goals>
245+
<goal>shade</goal>
246+
</goals>
247+
<configuration>
248+
<minimizeJar>true</minimizeJar>
249+
<artifactSet>
250+
<excludes>
251+
<!-- This list contains all dependencies of flink-dist
252+
Everything else will be packaged into the fat-jar
253+
-->
254+
<exclude>org.apache.flink:flink-shaded-*_2.11</exclude>
255+
<exclude>org.apache.flink:flink-core_2.11</exclude>
256+
<exclude>org.apache.flink:flink-java*</exclude>
257+
<exclude>org.apache.flink:flink-java_2.11</exclude>
258+
<exclude>org.apache.flink:flink-scala_2.11</exclude>
259+
<exclude>org.apache.flink:flink-runtime_2.11</exclude>
260+
<exclude>org.apache.flink:flink-optimizer_2.11</exclude>
261+
<exclude>org.apache.flink:flink-clients_2.11</exclude>
262+
<exclude>org.apache.flink:flink-avro_2.11</exclude>
263+
<exclude>org.apache.flink:flink-java-examples_2.11</exclude>
264+
<exclude>org.apache.flink:flink-scala-examples_2.11</exclude>
265+
<exclude>org.apache.flink:flink-streaming-examples_2.11</exclude>
266+
<exclude>org.apache.flink:flink-streaming-java_2.11</exclude>
267+
268+
<!-- Also exclude very big transitive dependencies of Flink
269+
270+
WARNING: You have to remove these excludes if your code relies on other
271+
versions of these dependencies.
272+
273+
-->
274+
275+
<exclude>org.scala-lang:scala-library</exclude>
276+
<exclude>org.scala-lang:scala-compiler</exclude>
277+
<exclude>org.scala-lang:scala-reflect</exclude>
278+
<exclude>com.amazonaws:aws-java-sdk</exclude>
279+
<exclude>com.typesafe.akka:akka-actor_*</exclude>
280+
<exclude>com.typesafe.akka:akka-remote_*</exclude>
281+
<exclude>com.typesafe.akka:akka-slf4j_*</exclude>
282+
<exclude>io.netty:netty-all</exclude>
283+
<exclude>io.netty:netty</exclude>
284+
<exclude>org.eclipse.jetty:jetty-server</exclude>
285+
<exclude>org.eclipse.jetty:jetty-continuation</exclude>
286+
<exclude>org.eclipse.jetty:jetty-http</exclude>
287+
<exclude>org.eclipse.jetty:jetty-io</exclude>
288+
<exclude>org.eclipse.jetty:jetty-util</exclude>
289+
<exclude>org.eclipse.jetty:jetty-security</exclude>
290+
<exclude>org.eclipse.jetty:jetty-servlet</exclude>
291+
<exclude>org.gephi:*</exclude>
292+
<exclude>org.netbeans.api:*</exclude>
293+
294+
<exclude>commons-fileupload:commons-fileupload</exclude>
295+
<exclude>org.apache.avro:avro</exclude>
296+
<exclude>commons-collections:commons-collections</exclude>
297+
<exclude>org.codehaus.jackson:jackson-core-asl</exclude>
298+
<exclude>org.codehaus.jackson:jackson-mapper-asl</exclude>
299+
<exclude>com.thoughtworks.paranamer:paranamer</exclude>
300+
<exclude>org.xerial.snappy:snappy-java</exclude>
301+
<exclude>org.apache.commons:commons-compress</exclude>
302+
<exclude>org.tukaani:xz</exclude>
303+
<exclude>com.esotericsoftware.kryo:kryo</exclude>
304+
<exclude>com.esotericsoftware.minlog:minlog</exclude>
305+
<exclude>org.objenesis:objenesis</exclude>
306+
<exclude>com.twitter:chill_*</exclude>
307+
<exclude>com.twitter:chill-java</exclude>
308+
<exclude>com.twitter:chill-avro_*</exclude>
309+
<exclude>com.twitter:chill-bijection_*</exclude>
310+
<exclude>com.twitter:bijection-core_*</exclude>
311+
<exclude>com.twitter:bijection-avro_*</exclude>
312+
<exclude>commons-lang:commons-lang</exclude>
313+
<exclude>junit:junit</exclude>
314+
<exclude>de.javakaffee:kryo-serializers</exclude>
315+
<exclude>joda-time:joda-time</exclude>
316+
<exclude>org.apache.commons:commons-lang3</exclude>
317+
<exclude>org.slf4j:slf4j-api</exclude>
318+
<exclude>org.slf4j:slf4j-log4j12</exclude>
319+
<exclude>log4j:log4j</exclude>
320+
<exclude>org.apache.commons:commons-math</exclude>
321+
<exclude>org.apache.sling:org.apache.sling.commons.json</exclude>
322+
<exclude>commons-logging:commons-logging</exclude>
323+
<exclude>org.apache.httpcomponents:httpclient</exclude>
324+
<exclude>org.apache.httpcomponents:httpcore</exclude>
325+
<exclude>commons-codec:commons-codec</exclude>
326+
<exclude>com.fasterxml.jackson.core:jackson-core</exclude>
327+
<exclude>com.fasterxml.jackson.core:jackson-databind</exclude>
328+
<exclude>com.fasterxml.jackson.core:jackson-annotations</exclude>
329+
<exclude>org.codehaus.jettison:jettison</exclude>
330+
<exclude>stax:stax-api</exclude>
331+
<exclude>com.typesafe:config</exclude>
332+
<exclude>org.uncommons.maths:uncommons-maths</exclude>
333+
<!--<exclude>com.github.scopt:scopt_*</exclude>-->
334+
<exclude>org.mortbay.jetty:servlet-api</exclude>
335+
<exclude>commons-io:commons-io</exclude>
336+
<exclude>commons-cli:commons-cli</exclude>
337+
338+
<exclude>sqlite:*</exclude>
339+
<exclude>netbeans:*</exclude>
340+
<exclude>org.apache.xmlgraphics:*</exclude>
341+
<exclude>mysql:*</exclude>
342+
</excludes>
343+
</artifactSet>
344+
<filters>
345+
<filter>
346+
<artifact>org.apache.flink:*</artifact>
347+
<excludes>
348+
<exclude>org/apache/flink/shaded/**</exclude>
349+
<exclude>web-docs/**</exclude>
350+
</excludes>
351+
</filter>
352+
<filter>
353+
<!-- Do not copy the signatures in the META-INF folder.
354+
Otherwise, this might cause SecurityExceptions when using the JAR. -->
355+
<artifact>*:*</artifact>
356+
<excludes>
357+
<exclude>META-INF/*.SF</exclude>
358+
<exclude>META-INF/*.DSA</exclude>
359+
<exclude>META-INF/*.RSA</exclude>
360+
</excludes>
361+
</filter>
362+
</filters>
363+
<finalName>dist-${project.artifactId}-${project.version}</finalName>
364+
<transformers>
365+
<!-- add Main-Class to manifest file -->
366+
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
367+
<mainClass>net.sansa_stack.inference.flink.RDFGraphMaterializer</mainClass>
368+
</transformer>
369+
</transformers>
370+
<createDependencyReducedPom>false</createDependencyReducedPom>
371+
<relocations>
372+
<relocation>
373+
<pattern>scopt</pattern>
374+
<shadedPattern>scopt.shaded</shadedPattern>
375+
</relocation>
376+
</relocations>
377+
</configuration>
378+
</execution>
379+
</executions>
380+
</plugin>
381+
382+
</plugins>
383+
</build>
384+
385+
</profile>
372386
</profiles>
373387
</project>

sansa-inference-spark/pom.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,15 +198,15 @@
198198
</build>
199199

200200
<profiles>
201+
<!-- This profile uses the Maven shade plugin to create a special "dist" package
202+
that does not contain Spark etc. -->
201203
<profile>
202204
<id>dist</id>
203205
<activation>
204206
<property>
205207
<name>dist</name>
206208
</property>
207209
</activation>
208-
<!-- This profile uses the assembly plugin to create a special "dist" package for BigTop
209-
that contains Spark but not the Hadoop JARs it depends on. -->
210210
<build>
211211
<plugins>
212212
<!--<plugin>-->
@@ -242,6 +242,7 @@
242242
<goal>shade</goal>
243243
</goals>
244244
<configuration>
245+
<minimizeJar>true</minimizeJar>
245246
<artifactSet>
246247
<excludes>
247248
<exclude>org.apache.spark:spark-core_${scala.binary.version}</exclude>

0 commit comments

Comments
 (0)