Update pom to build package with minimal dependencies

This commit is contained in:
Joel Therrien 2019-06-27 15:34:09 -07:00
parent 22accdb263
commit 78ca8bad73
2 changed files with 39 additions and 37 deletions

1
.gitignore vendored
View file

@ -5,3 +5,4 @@ target/
*.iml
.idea
template.yaml
dependency-reduced-pom.xml

29
pom.xml
View file

@ -71,24 +71,24 @@
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>ca.joeltherrien.randomforest.Main</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<id>make-assembly</id> <!-- this is used for inheritance merges -->
<phase>package</phase> <!-- bind to the packaging phase -->
<phase>package</phase>
<goals>
<goal>single</goal>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>
ca.joeltherrien.randomforest.Main
</mainClass>
</transformer>
</transformers>
<minimizeJar>true</minimizeJar>
</configuration>
</execution>
</executions>
</plugin>
@ -115,4 +115,5 @@
</build>
</project>