Create executable mega-JAR
authorJaroslav Tulach <jtulach@netbeans.org>
Wed, 10 Nov 2010 23:24:05 +0100
changeset 83f7e9d629f55
parent 7 a2bb3db4c9b6
child 9 6a5c4c2bda38
Create executable mega-JAR
pom.xml
     1.1 --- a/pom.xml	Wed Nov 10 23:23:46 2010 +0100
     1.2 +++ b/pom.xml	Wed Nov 10 23:24:05 2010 +0100
     1.3 @@ -4,7 +4,7 @@
     1.4  
     1.5    <groupId>cz.xelfi</groupId>
     1.6    <artifactId>Feedbook</artifactId>
     1.7 -  <version>0.1</version>
     1.8 +  <version>0.5</version>
     1.9    <packaging>jar</packaging>
    1.10  
    1.11    <name>Feedbook</name>
    1.12 @@ -20,6 +20,28 @@
    1.13                      <target>1.6</target>
    1.14                  </configuration>
    1.15              </plugin>
    1.16 +            <plugin>
    1.17 +                <groupId>org.apache.maven.plugins</groupId>
    1.18 +                <artifactId>maven-shade-plugin</artifactId>
    1.19 +                <version>1.4</version>
    1.20 +                <executions>
    1.21 +                    <execution>
    1.22 +                        <phase>package</phase>
    1.23 +                        <goals>
    1.24 +                            <goal>shade</goal>
    1.25 +                        </goals>
    1.26 +                        <configuration>
    1.27 +                            <transformers>
    1.28 +                                <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
    1.29 +                                    <manifestEntries>
    1.30 +                                        <Main-Class>cz.xelfi.feedbook.Main</Main-Class>
    1.31 +                                    </manifestEntries>
    1.32 +                                </transformer>
    1.33 +                            </transformers>
    1.34 +                        </configuration>
    1.35 +                    </execution>
    1.36 +                </executions>
    1.37 +            </plugin>
    1.38          </plugins>
    1.39      </build>
    1.40      <properties>