Can generate zip file with all necessary components. No main class/JAR to execute everything so far, however.
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Mon, 14 Sep 2009 18:38:08 +0200
changeset 868c9969f89021
parent 85 3574b08dc3c3
child 87 96f80f14cfcd
Can generate zip file with all necessary components. No main class/JAR to execute everything so far, however.
freemarkerdor/all-zip.xml
freemarkerdor/pom.xml
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/freemarkerdor/all-zip.xml	Mon Sep 14 18:38:08 2009 +0200
     1.3 @@ -0,0 +1,10 @@
     1.4 +<?xml version="1.0" encoding="UTF-8"?>
     1.5 +<assembly>
     1.6 + <id>all</id>
     1.7 +  <formats>
     1.8 +    <format>zip</format>
     1.9 +  </formats>
    1.10 +  <dependencySets>
    1.11 +    <dependencySet/>
    1.12 +  </dependencySets>
    1.13 +</assembly>
     2.1 --- a/freemarkerdor/pom.xml	Mon Sep 14 16:11:39 2009 +0200
     2.2 +++ b/freemarkerdor/pom.xml	Mon Sep 14 18:38:08 2009 +0200
     2.3 @@ -73,33 +73,25 @@
     2.4          </configuration>
     2.5        </plugin>
     2.6        <plugin>
     2.7 -        <groupId>org.apache.maven.plugins</groupId>
     2.8 -        <artifactId>maven-shade-plugin</artifactId>
     2.9 -        <version>1.2.1</version>
    2.10 -        <configuration>
    2.11 -          <!-- put your configurations here -->
    2.12 -        </configuration>
    2.13 +        <artifactId>maven-assembly-plugin</artifactId>
    2.14 +        <version>2.2-beta-2</version>
    2.15          <executions>
    2.16            <execution>
    2.17 +            <id>create-executable-jar</id>
    2.18              <phase>package</phase>
    2.19              <goals>
    2.20 -              <goal>shade</goal>
    2.21 +              <goal>single</goal>
    2.22              </goals>
    2.23              <configuration>
    2.24 -              <transformers>
    2.25 -                <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer">
    2.26 -                </transformer>
    2.27 -                <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
    2.28 -                  <manifestEntries>
    2.29 -                    <Main-Class>cz.xelfi.quoridor.freemarkerdor.UI</Main-Class>
    2.30 -                  </manifestEntries>
    2.31 -                </transformer>
    2.32 -              </transformers>
    2.33 +              <descriptors>
    2.34 +                <descriptor>all-zip.xml</descriptor>
    2.35 +              </descriptors>
    2.36 +              <finalName>freemarkerdor-${version}</finalName>
    2.37              </configuration>
    2.38            </execution>
    2.39          </executions>
    2.40 -    </plugin>
    2.41 -  </plugins>
    2.42 +      </plugin>
    2.43 +   </plugins>
    2.44    </build>
    2.45  </project>
    2.46