|
@@ -192,88 +192,60 @@
|
|
|
<plugins>
|
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-shade-plugin</artifactId>
|
|
|
- <version>3.2.4</version>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <phase>package</phase>
|
|
|
- <goals>
|
|
|
- <goal>shade</goal>
|
|
|
- </goals>
|
|
|
- <configuration>
|
|
|
- <relocations>
|
|
|
- <relocation>
|
|
|
- <pattern>com.google.protobuf</pattern>
|
|
|
- <shadedPattern>shaded.com.google.protobuf</shadedPattern>
|
|
|
- </relocation>
|
|
|
- </relocations>
|
|
|
- <minimizeJar>false</minimizeJar>
|
|
|
- <shadedArtifactAttached>true</shadedArtifactAttached>
|
|
|
- <artifactSet>
|
|
|
- <includes>
|
|
|
- <!-- Include here the dependencies you
|
|
|
- want to be packed in your fat jar -->
|
|
|
- <include>*:*</include>
|
|
|
- </includes>
|
|
|
- </artifactSet>
|
|
|
- <filters>
|
|
|
- <filter>
|
|
|
- <artifact>*:*</artifact>
|
|
|
- <excludes>
|
|
|
- <exclude>META-INF/*.SF</exclude>
|
|
|
- <exclude>META-INF/*.DSA</exclude>
|
|
|
- <exclude>META-INF/*.RSA</exclude>
|
|
|
- <exclude>**/log4j.properties</exclude>
|
|
|
- </excludes>
|
|
|
- </filter>
|
|
|
- </filters>
|
|
|
- <transformers>
|
|
|
- <transformer
|
|
|
- implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
|
|
|
- <resource>reference.conf</resource>
|
|
|
- </transformer>
|
|
|
- <transformer
|
|
|
- implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
|
|
|
- <resource>
|
|
|
- META-INF/services/org.apache.spark.sql.sources.DataSourceRegister
|
|
|
- </resource>
|
|
|
- </transformer>
|
|
|
- </transformers>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
+ <artifactId>maven-surefire-plugin</artifactId>
|
|
|
+ <version>2.18.1</version>
|
|
|
+ <configuration>
|
|
|
+ <skipTests>true</skipTests>
|
|
|
+ </configuration>
|
|
|
</plugin>
|
|
|
+
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
|
+ <configuration>
|
|
|
+ <compilerVersion>${java.version}</compilerVersion>
|
|
|
+ <source>1.8</source>
|
|
|
+ <target>1.8</target>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
<plugin>
|
|
|
- <groupId>net.alchim31.maven</groupId>
|
|
|
- <artifactId>scala-maven-plugin</artifactId>
|
|
|
- <version>3.3.2</version>
|
|
|
+ <groupId>org.scala-tools</groupId>
|
|
|
+ <artifactId>maven-scala-plugin</artifactId>
|
|
|
+ <version>2.15.2</version>
|
|
|
<executions>
|
|
|
<execution>
|
|
|
- <id>scala-compile-first</id>
|
|
|
- <phase>process-resources</phase>
|
|
|
<goals>
|
|
|
<goal>compile</goal>
|
|
|
- </goals>
|
|
|
- </execution>
|
|
|
- <execution>
|
|
|
- <id>scala-test-compile-first</id>
|
|
|
- <phase>process-test-resources</phase>
|
|
|
- <goals>
|
|
|
<goal>testCompile</goal>
|
|
|
</goals>
|
|
|
</execution>
|
|
|
</executions>
|
|
|
+ <configuration>
|
|
|
+ <includes>
|
|
|
+ <include>**/*.scala</include>
|
|
|
+ <include>**/*.java</include>
|
|
|
+ </includes>
|
|
|
+ <scalaVersion>${scala.version}</scalaVersion>
|
|
|
+ </configuration>
|
|
|
</plugin>
|
|
|
+
|
|
|
<plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-compiler-plugin</artifactId>
|
|
|
- <version>3.8.1</version>
|
|
|
+ <artifactId>maven-assembly-plugin</artifactId>
|
|
|
<configuration>
|
|
|
- <source>1.8</source>
|
|
|
- <target>1.8</target>
|
|
|
- <!--<compilerId>scala</compilerId>-->
|
|
|
- <!-- <compilerVersion>2.12.10</compilerVersion>-->
|
|
|
+ <descriptorRefs>
|
|
|
+ <descriptorRef>jar-with-dependencies</descriptorRef>
|
|
|
+ </descriptorRefs>
|
|
|
</configuration>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>make-assembly</id>
|
|
|
+ <phase>package</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>single</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
</plugin>
|
|
|
</plugins>
|
|
|
</build>
|