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

Commit 7a8be6d

Browse files
Pom files cleaned
1 parent 50c2c7f commit 7a8be6d

File tree

3 files changed

+183
-142
lines changed

3 files changed

+183
-142
lines changed

pom.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,14 @@
236236
</dependencies>
237237
</dependencyManagement>
238238

239+
<dependencies>
240+
<dependency>
241+
<groupId>org.scalatest</groupId>
242+
<artifactId>scalatest_${scala.binary.version}</artifactId>
243+
<scope>test</scope>
244+
</dependency>
245+
</dependencies>
246+
239247
<build>
240248
<pluginManagement>
241249
<plugins>

sansa-inference-flink/pom.xml

Lines changed: 142 additions & 142 deletions
Original file line numberDiff line numberDiff line change
@@ -230,155 +230,155 @@ under the License.
230230
<!-- This profile uses the assembly plugin to create a special "dist" package for BigTop
231231
that contains Spark but not the Hadoop JARs it depends on. -->
232232
<build>
233-
<plugins>
234-
<!-- We use the maven-shade plugin to create a fat jar that contains all dependencies
235-
except flink and it's transitive dependencies. The resulting fat-jar can be executed
236-
on a cluster. Change the value of Program-Class if your program entry point changes. -->
237-
<plugin>
238-
<groupId>org.apache.maven.plugins</groupId>
239-
<artifactId>maven-shade-plugin</artifactId>
240-
<version>2.4.1</version>
241-
<executions>
242-
<!-- Run shade goal on package phase -->
243-
<execution>
244-
<phase>package</phase>
245-
<goals>
246-
<goal>shade</goal>
247-
</goals>
248-
<configuration>
249-
<minimizeJar>true</minimizeJar>
250-
<artifactSet>
251-
<excludes>
252-
<!-- This list contains all dependencies of flink-dist
253-
Everything else will be packaged into the fat-jar
254-
-->
255-
<exclude>org.apache.flink:flink-shaded-*_2.11</exclude>
256-
<exclude>org.apache.flink:flink-core_2.11</exclude>
257-
<exclude>org.apache.flink:flink-java*</exclude>
258-
<exclude>org.apache.flink:flink-java_2.11</exclude>
259-
<exclude>org.apache.flink:flink-scala_2.11</exclude>
260-
<exclude>org.apache.flink:flink-runtime_2.11</exclude>
261-
<exclude>org.apache.flink:flink-optimizer_2.11</exclude>
262-
<exclude>org.apache.flink:flink-clients_2.11</exclude>
263-
<exclude>org.apache.flink:flink-avro_2.11</exclude>
264-
<exclude>org.apache.flink:flink-java-examples_2.11</exclude>
265-
<exclude>org.apache.flink:flink-scala-examples_2.11</exclude>
266-
<exclude>org.apache.flink:flink-streaming-examples_2.11</exclude>
267-
<exclude>org.apache.flink:flink-streaming-java_2.11</exclude>
233+
<plugins>
234+
<!-- We use the maven-shade plugin to create a fat jar that contains all dependencies
235+
except flink and it's transitive dependencies. The resulting fat-jar can be executed
236+
on a cluster. Change the value of Program-Class if your program entry point changes. -->
237+
<plugin>
238+
<groupId>org.apache.maven.plugins</groupId>
239+
<artifactId>maven-shade-plugin</artifactId>
240+
<version>2.4.1</version>
241+
<executions>
242+
<!-- Run shade goal on package phase -->
243+
<execution>
244+
<phase>package</phase>
245+
<goals>
246+
<goal>shade</goal>
247+
</goals>
248+
<configuration>
249+
<minimizeJar>true</minimizeJar>
250+
<artifactSet>
251+
<excludes>
252+
<!-- This list contains all dependencies of flink-dist
253+
Everything else will be packaged into the fat-jar
254+
-->
255+
<exclude>org.apache.flink:flink-shaded-*_2.11</exclude>
256+
<exclude>org.apache.flink:flink-core_2.11</exclude>
257+
<exclude>org.apache.flink:flink-java*</exclude>
258+
<exclude>org.apache.flink:flink-java_2.11</exclude>
259+
<exclude>org.apache.flink:flink-scala_2.11</exclude>
260+
<exclude>org.apache.flink:flink-runtime_2.11</exclude>
261+
<exclude>org.apache.flink:flink-optimizer_2.11</exclude>
262+
<exclude>org.apache.flink:flink-clients_2.11</exclude>
263+
<exclude>org.apache.flink:flink-avro_2.11</exclude>
264+
<exclude>org.apache.flink:flink-java-examples_2.11</exclude>
265+
<exclude>org.apache.flink:flink-scala-examples_2.11</exclude>
266+
<exclude>org.apache.flink:flink-streaming-examples_2.11</exclude>
267+
<exclude>org.apache.flink:flink-streaming-java_2.11</exclude>
268268

269-
<!-- Also exclude very big transitive dependencies of Flink
269+
<!-- Also exclude very big transitive dependencies of Flink
270270
271-
WARNING: You have to remove these excludes if your code relies on other
272-
versions of these dependencies.
271+
WARNING: You have to remove these excludes if your code relies on other
272+
versions of these dependencies.
273273
274-
-->
274+
-->
275275

276-
<exclude>org.scala-lang:scala-library</exclude>
277-
<exclude>org.scala-lang:scala-compiler</exclude>
278-
<exclude>org.scala-lang:scala-reflect</exclude>
279-
<exclude>com.amazonaws:aws-java-sdk</exclude>
280-
<exclude>com.typesafe.akka:akka-actor_*</exclude>
281-
<exclude>com.typesafe.akka:akka-remote_*</exclude>
282-
<exclude>com.typesafe.akka:akka-slf4j_*</exclude>
283-
<exclude>io.netty:netty-all</exclude>
284-
<exclude>io.netty:netty</exclude>
285-
<exclude>org.eclipse.jetty:jetty-server</exclude>
286-
<exclude>org.eclipse.jetty:jetty-continuation</exclude>
287-
<exclude>org.eclipse.jetty:jetty-http</exclude>
288-
<exclude>org.eclipse.jetty:jetty-io</exclude>
289-
<exclude>org.eclipse.jetty:jetty-util</exclude>
290-
<exclude>org.eclipse.jetty:jetty-security</exclude>
291-
<exclude>org.eclipse.jetty:jetty-servlet</exclude>
292-
<exclude>org.gephi:*</exclude>
293-
<exclude>org.netbeans.api:*</exclude>
276+
<exclude>org.scala-lang:scala-library</exclude>
277+
<exclude>org.scala-lang:scala-compiler</exclude>
278+
<exclude>org.scala-lang:scala-reflect</exclude>
279+
<exclude>com.amazonaws:aws-java-sdk</exclude>
280+
<exclude>com.typesafe.akka:akka-actor_*</exclude>
281+
<exclude>com.typesafe.akka:akka-remote_*</exclude>
282+
<exclude>com.typesafe.akka:akka-slf4j_*</exclude>
283+
<exclude>io.netty:netty-all</exclude>
284+
<exclude>io.netty:netty</exclude>
285+
<exclude>org.eclipse.jetty:jetty-server</exclude>
286+
<exclude>org.eclipse.jetty:jetty-continuation</exclude>
287+
<exclude>org.eclipse.jetty:jetty-http</exclude>
288+
<exclude>org.eclipse.jetty:jetty-io</exclude>
289+
<exclude>org.eclipse.jetty:jetty-util</exclude>
290+
<exclude>org.eclipse.jetty:jetty-security</exclude>
291+
<exclude>org.eclipse.jetty:jetty-servlet</exclude>
292+
<exclude>org.gephi:*</exclude>
293+
<exclude>org.netbeans.api:*</exclude>
294294

295-
<exclude>commons-fileupload:commons-fileupload</exclude>
296-
<exclude>org.apache.avro:avro</exclude>
297-
<exclude>commons-collections:commons-collections</exclude>
298-
<exclude>org.codehaus.jackson:jackson-core-asl</exclude>
299-
<exclude>org.codehaus.jackson:jackson-mapper-asl</exclude>
300-
<exclude>com.thoughtworks.paranamer:paranamer</exclude>
301-
<exclude>org.xerial.snappy:snappy-java</exclude>
302-
<exclude>org.apache.commons:commons-compress</exclude>
303-
<exclude>org.tukaani:xz</exclude>
304-
<exclude>com.esotericsoftware.kryo:kryo</exclude>
305-
<exclude>com.esotericsoftware.minlog:minlog</exclude>
306-
<exclude>org.objenesis:objenesis</exclude>
307-
<exclude>com.twitter:chill_*</exclude>
308-
<exclude>com.twitter:chill-java</exclude>
309-
<exclude>com.twitter:chill-avro_*</exclude>
310-
<exclude>com.twitter:chill-bijection_*</exclude>
311-
<exclude>com.twitter:bijection-core_*</exclude>
312-
<exclude>com.twitter:bijection-avro_*</exclude>
313-
<exclude>commons-lang:commons-lang</exclude>
314-
<exclude>junit:junit</exclude>
315-
<exclude>de.javakaffee:kryo-serializers</exclude>
316-
<exclude>joda-time:joda-time</exclude>
317-
<exclude>org.apache.commons:commons-lang3</exclude>
318-
<exclude>org.slf4j:slf4j-api</exclude>
319-
<exclude>org.slf4j:slf4j-log4j12</exclude>
320-
<exclude>log4j:log4j</exclude>
321-
<exclude>org.apache.commons:commons-math</exclude>
322-
<exclude>org.apache.sling:org.apache.sling.commons.json</exclude>
323-
<exclude>commons-logging:commons-logging</exclude>
324-
<exclude>org.apache.httpcomponents:httpclient</exclude>
325-
<exclude>org.apache.httpcomponents:httpcore</exclude>
326-
<exclude>commons-codec:commons-codec</exclude>
327-
<exclude>com.fasterxml.jackson.core:jackson-core</exclude>
328-
<exclude>com.fasterxml.jackson.core:jackson-databind</exclude>
329-
<exclude>com.fasterxml.jackson.core:jackson-annotations</exclude>
330-
<exclude>org.codehaus.jettison:jettison</exclude>
331-
<exclude>stax:stax-api</exclude>
332-
<exclude>com.typesafe:config</exclude>
333-
<exclude>org.uncommons.maths:uncommons-maths</exclude>
334-
<!--<exclude>com.github.scopt:scopt_*</exclude>-->
335-
<exclude>org.mortbay.jetty:servlet-api</exclude>
336-
<exclude>commons-io:commons-io</exclude>
337-
<exclude>commons-cli:commons-cli</exclude>
295+
<exclude>commons-fileupload:commons-fileupload</exclude>
296+
<exclude>org.apache.avro:avro</exclude>
297+
<exclude>commons-collections:commons-collections</exclude>
298+
<exclude>org.codehaus.jackson:jackson-core-asl</exclude>
299+
<exclude>org.codehaus.jackson:jackson-mapper-asl</exclude>
300+
<exclude>com.thoughtworks.paranamer:paranamer</exclude>
301+
<exclude>org.xerial.snappy:snappy-java</exclude>
302+
<exclude>org.apache.commons:commons-compress</exclude>
303+
<exclude>org.tukaani:xz</exclude>
304+
<exclude>com.esotericsoftware.kryo:kryo</exclude>
305+
<exclude>com.esotericsoftware.minlog:minlog</exclude>
306+
<exclude>org.objenesis:objenesis</exclude>
307+
<exclude>com.twitter:chill_*</exclude>
308+
<exclude>com.twitter:chill-java</exclude>
309+
<exclude>com.twitter:chill-avro_*</exclude>
310+
<exclude>com.twitter:chill-bijection_*</exclude>
311+
<exclude>com.twitter:bijection-core_*</exclude>
312+
<exclude>com.twitter:bijection-avro_*</exclude>
313+
<exclude>commons-lang:commons-lang</exclude>
314+
<exclude>junit:junit</exclude>
315+
<exclude>de.javakaffee:kryo-serializers</exclude>
316+
<exclude>joda-time:joda-time</exclude>
317+
<exclude>org.apache.commons:commons-lang3</exclude>
318+
<exclude>org.slf4j:slf4j-api</exclude>
319+
<exclude>org.slf4j:slf4j-log4j12</exclude>
320+
<exclude>log4j:log4j</exclude>
321+
<exclude>org.apache.commons:commons-math</exclude>
322+
<exclude>org.apache.sling:org.apache.sling.commons.json</exclude>
323+
<exclude>commons-logging:commons-logging</exclude>
324+
<exclude>org.apache.httpcomponents:httpclient</exclude>
325+
<exclude>org.apache.httpcomponents:httpcore</exclude>
326+
<exclude>commons-codec:commons-codec</exclude>
327+
<exclude>com.fasterxml.jackson.core:jackson-core</exclude>
328+
<exclude>com.fasterxml.jackson.core:jackson-databind</exclude>
329+
<exclude>com.fasterxml.jackson.core:jackson-annotations</exclude>
330+
<exclude>org.codehaus.jettison:jettison</exclude>
331+
<exclude>stax:stax-api</exclude>
332+
<exclude>com.typesafe:config</exclude>
333+
<exclude>org.uncommons.maths:uncommons-maths</exclude>
334+
<!--<exclude>com.github.scopt:scopt_*</exclude>-->
335+
<exclude>org.mortbay.jetty:servlet-api</exclude>
336+
<exclude>commons-io:commons-io</exclude>
337+
<exclude>commons-cli:commons-cli</exclude>
338338

339-
<exclude>sqlite:*</exclude>
340-
<exclude>netbeans:*</exclude>
341-
<exclude>org.apache.xmlgraphics:*</exclude>
342-
<exclude>mysql:*</exclude>
343-
</excludes>
344-
</artifactSet>
345-
<filters>
346-
<filter>
347-
<artifact>org.apache.flink:*</artifact>
348-
<excludes>
349-
<exclude>org/apache/flink/shaded/**</exclude>
350-
<exclude>web-docs/**</exclude>
351-
</excludes>
352-
</filter>
353-
<filter>
354-
<!-- Do not copy the signatures in the META-INF folder.
355-
Otherwise, this might cause SecurityExceptions when using the JAR. -->
356-
<artifact>*:*</artifact>
357-
<excludes>
358-
<exclude>META-INF/*.SF</exclude>
359-
<exclude>META-INF/*.DSA</exclude>
360-
<exclude>META-INF/*.RSA</exclude>
339+
<exclude>sqlite:*</exclude>
340+
<exclude>netbeans:*</exclude>
341+
<exclude>org.apache.xmlgraphics:*</exclude>
342+
<exclude>mysql:*</exclude>
361343
</excludes>
362-
</filter>
363-
</filters>
364-
<finalName>dist-${project.artifactId}-${project.version}</finalName>
365-
<transformers>
366-
<!-- add Main-Class to manifest file -->
367-
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
368-
<mainClass>net.sansa_stack.inference.flink.RDFGraphMaterializer</mainClass>
369-
</transformer>
370-
</transformers>
371-
<createDependencyReducedPom>false</createDependencyReducedPom>
372-
<relocations>
373-
<relocation>
374-
<pattern>scopt</pattern>
375-
<shadedPattern>scopt.shaded</shadedPattern>
376-
</relocation>
377-
</relocations>
378-
</configuration>
379-
</execution>
380-
</executions>
381-
</plugin>
344+
</artifactSet>
345+
<filters>
346+
<filter>
347+
<artifact>org.apache.flink:*</artifact>
348+
<excludes>
349+
<exclude>org/apache/flink/shaded/**</exclude>
350+
<exclude>web-docs/**</exclude>
351+
</excludes>
352+
</filter>
353+
<filter>
354+
<!-- Do not copy the signatures in the META-INF folder.
355+
Otherwise, this might cause SecurityExceptions when using the JAR. -->
356+
<artifact>*:*</artifact>
357+
<excludes>
358+
<exclude>META-INF/*.SF</exclude>
359+
<exclude>META-INF/*.DSA</exclude>
360+
<exclude>META-INF/*.RSA</exclude>
361+
</excludes>
362+
</filter>
363+
</filters>
364+
<finalName>dist-${project.artifactId}-${project.version}</finalName>
365+
<transformers>
366+
<!-- add Main-Class to manifest file -->
367+
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
368+
<mainClass>net.sansa_stack.inference.flink.RDFGraphMaterializer</mainClass>
369+
</transformer>
370+
</transformers>
371+
<createDependencyReducedPom>false</createDependencyReducedPom>
372+
<relocations>
373+
<relocation>
374+
<pattern>scopt</pattern>
375+
<shadedPattern>scopt.shaded</shadedPattern>
376+
</relocation>
377+
</relocations>
378+
</configuration>
379+
</execution>
380+
</executions>
381+
</plugin>
382382
</plugins>
383383
</build>
384384
</profile>

sansa-inference-spark/pom.xml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,39 @@
194194
</execution>
195195
</executions>
196196
</plugin>
197+
<plugin>
198+
<groupId>org.codehaus.mojo</groupId>
199+
<artifactId>build-helper-maven-plugin</artifactId>
200+
<version>1.7</version>
201+
<executions>
202+
<!-- Add src/main/scala to eclipse build path -->
203+
<execution>
204+
<id>add-source</id>
205+
<phase>generate-sources</phase>
206+
<goals>
207+
<goal>add-source</goal>
208+
</goals>
209+
<configuration>
210+
<sources>
211+
<source>src/main/scala</source>
212+
</sources>
213+
</configuration>
214+
</execution>
215+
<!-- Add src/test/scala to eclipse build path -->
216+
<execution>
217+
<id>add-test-source</id>
218+
<phase>generate-test-sources</phase>
219+
<goals>
220+
<goal>add-test-source</goal>
221+
</goals>
222+
<configuration>
223+
<sources>
224+
<source>src/test/scala</source>
225+
</sources>
226+
</configuration>
227+
</execution>
228+
</executions>
229+
</plugin>
197230
</plugins>
198231
</build>
199232

0 commit comments

Comments
 (0)