Putting all libraries into lib subdirectory and generating ClassPath: entry into the freemarkerdor-x.y.jar
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Mon, 14 Sep 2009 19:00:55 +0200
changeset 8796f80f14cfcd
parent 86 8c9969f89021
child 88 a3be2be0112f
Putting all libraries into lib subdirectory and generating ClassPath: entry into the freemarkerdor-x.y.jar
freemarkerdor/all-zip.xml
freemarkerdor/pom.xml
     1.1 --- a/freemarkerdor/all-zip.xml	Mon Sep 14 18:38:08 2009 +0200
     1.2 +++ b/freemarkerdor/all-zip.xml	Mon Sep 14 19:00:55 2009 +0200
     1.3 @@ -5,6 +5,15 @@
     1.4      <format>zip</format>
     1.5    </formats>
     1.6    <dependencySets>
     1.7 -    <dependencySet/>
     1.8 +    <dependencySet>
     1.9 +        <useProjectArtifact>false</useProjectArtifact>
    1.10 +        <outputDirectory>lib</outputDirectory>
    1.11 +    </dependencySet>
    1.12    </dependencySets>
    1.13 +  <files>
    1.14 +    <file>
    1.15 +      <source>target/freemarkerdor-${version}.jar</source>
    1.16 +      <outputDirectory>/</outputDirectory>
    1.17 +    </file>
    1.18 +  </files>
    1.19  </assembly>
     2.1 --- a/freemarkerdor/pom.xml	Mon Sep 14 18:38:08 2009 +0200
     2.2 +++ b/freemarkerdor/pom.xml	Mon Sep 14 19:00:55 2009 +0200
     2.3 @@ -91,7 +91,20 @@
     2.4            </execution>
     2.5          </executions>
     2.6        </plugin>
     2.7 -   </plugins>
     2.8 +      <plugin>
     2.9 +        <groupId>org.apache.maven.plugins</groupId>
    2.10 +        <artifactId>maven-jar-plugin</artifactId>
    2.11 +        <configuration>
    2.12 +            <archive>
    2.13 +                <manifest>
    2.14 +                    <addClasspath>true</addClasspath>
    2.15 +                    <classpathPrefix>lib/</classpathPrefix>
    2.16 +                    <mainClass>cz.xelfi.quoridor.freemarkerdor.UI</mainClass>
    2.17 +                </manifest>
    2.18 +            </archive>
    2.19 +        </configuration>
    2.20 +      </plugin>
    2.21 +      </plugins>
    2.22    </build>
    2.23  </project>
    2.24