Skip to content

Commit

Permalink
using shadeplugin instead of assembly plugin
Browse files Browse the repository at this point in the history
Added scalastyle_config
  • Loading branch information
thammegowda committed Jun 6, 2016
1 parent cc17ab0 commit 43dc888
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 12 deletions.
58 changes: 46 additions & 12 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
<args4j.version>2.0.29</args4j.version>
<slf4j.version>1.7.12</slf4j.version>
<tika.version>1.13</tika.version>


<!-- Main Class -->
<exec.mainClass>edu.usc.irds.sparkler.pipeline.Crawler</exec.mainClass>
</properties>

<dependencies>
Expand Down Expand Up @@ -128,17 +132,47 @@
</pluginManagement>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>fully.qualified.MainClass</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.3</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<minimizeJar>false</minimizeJar>
<createDependencyReducedPom>false</createDependencyReducedPom>
<artifactSet>
<includes>
<!-- dependencies to be packed in the 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>
</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.ManifestResourceTransformer">
<manifestEntries>
<Main-Class>${exec.mainClass}</Main-Class>
</manifestEntries>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>net.alchim31.maven</groupId>
Expand Down Expand Up @@ -172,7 +206,7 @@
<failOnWarning>false</failOnWarning>
<sourceDirectory>${basedir}/src/main/scala</sourceDirectory>
<testSourceDirectory>${basedir}/src/test/scala</testSourceDirectory>
<configLocation>${basedir}/scalastyle-config.xml</configLocation>
<configLocation>${basedir}/scalastyle_config.xml</configLocation>
<outputFile>${project.basedir}/target/scalastyle-output.xml
</outputFile>
<outputEncoding>UTF-8</outputEncoding>
Expand Down
File renamed without changes.

0 comments on commit 43dc888

Please sign in to comment.