Merge pull request #58 from danielli90/master

Create a uber package to include all dependency
This commit is contained in:
Daniel Li 2015-11-16 01:20:12 -08:00
Родитель a168ea1088 55d92d08c1
Коммит e6c5c11bf9
2 изменённых файлов: 35 добавлений и 0 удалений

1
.gitignore поставляемый
Просмотреть файл

@ -35,6 +35,7 @@ csharp/Samples/Microsoft.Spark.CSharp/obj/**
csharp/Worker/Microsoft.Spark.CSharp/bin/**
csharp/Worker/Microsoft.Spark.CSharp/obj/**
scala/.idea/**
scala/dependency-reduced-pom.xml
run/
*.log
lib/

Просмотреть файл

@ -65,11 +65,13 @@
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_2.10</artifactId>
<version>${spark.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-streaming_2.10</artifactId>
<version>${spark.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
@ -80,6 +82,7 @@
<groupId>org.apache.spark</groupId>
<artifactId>spark-sql_2.10</artifactId>
<version>${spark.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.databricks</groupId>
@ -135,6 +138,37 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.4.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<!-- Fix java.lang.SecurityException being thrown, when the uber jar is executed.
Details: Some dependency jar files are signed jar files. A jar file is signed by using jarsigner,
which creates 2 additional files and places them in META-INF: (1) a signature file,
with a .SF extension, and (2) a signature block file, with a .DSA, .RSA, or .EC extension.
Since the uber-jar file is created, the signatures and integrity of signed JAR files are no longer
valid. When the uber-jar file is executed, java.lang.SecurityException is thrown. -->
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>