package jar with dependencies; set main class
authorAnthony Bargnesi <abargnesi@gmail.com>
Thu, 22 Sep 2016 17:11:21 +0000 (13:11 -0400)
committerAnthony Bargnesi <abargnesi@gmail.com>
Thu, 22 Sep 2016 17:11:21 +0000 (13:11 -0400)
pom.xml

diff --git a/pom.xml b/pom.xml
index 47acd34..51c135d 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                 </executions>
             </plugin>
 
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-shade-plugin</artifactId>
+                <version>2.4.3</version>
+                <executions>
+                    <execution>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>shade</goal>
+                        </goals>
+                        <configuration>
+                            <transformers>
+                                <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
+                                    <mainClass>eu.svjatoslav.inspector.java.methods.Main</mainClass>
+                                </transformer>
+                            </transformers>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
         </plugins>
 
         <extensions>
         <developerConnection>scm:git:ssh://git@svjatoslav.eu/home/git/repositories/javainspect.git</developerConnection>
     </scm>
 
-</project>
\ No newline at end of file
+</project>