Using shade plugin to get executable uber JAR
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Mon, 07 Sep 2009 13:38:29 +0200
changeset 63d5738061bf2d
parent 62 5d36990642b7
child 64 e5a3b7ab719d
Using shade plugin to get executable uber JAR
freemarkerdor/pom.xml
     1.1 --- a/freemarkerdor/pom.xml	Mon Sep 07 13:31:35 2009 +0200
     1.2 +++ b/freemarkerdor/pom.xml	Mon Sep 07 13:38:29 2009 +0200
     1.3 @@ -63,7 +63,32 @@
     1.4            <target>1.5</target>
     1.5          </configuration>
     1.6        </plugin>
     1.7 -    </plugins>
     1.8 +      <plugin>
     1.9 +        <groupId>org.apache.maven.plugins</groupId>
    1.10 +        <artifactId>maven-shade-plugin</artifactId>
    1.11 +        <version>1.2.1</version>
    1.12 +        <configuration>
    1.13 +          <!-- put your configurations here -->
    1.14 +        </configuration>
    1.15 +        <executions>
    1.16 +          <execution>
    1.17 +            <phase>package</phase>
    1.18 +            <goals>
    1.19 +              <goal>shade</goal>
    1.20 +            </goals>
    1.21 +            <configuration>
    1.22 +              <transformers>
    1.23 +                <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
    1.24 +                  <manifestEntries>
    1.25 +                    <Main-Class>cz.xelfi.quoridor.freemarkerdor.UI</Main-Class>
    1.26 +                  </manifestEntries>
    1.27 +                </transformer>
    1.28 +              </transformers>
    1.29 +            </configuration>
    1.30 +          </execution>
    1.31 +        </executions>
    1.32 +    </plugin>
    1.33 +  </plugins>
    1.34    </build>
    1.35  </project>
    1.36