You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by vo...@web.de on 2006/11/30 14:15:43 UTC
Customize the structur of the assembled zip-file
Hi,
i would like to assemble the following Zip-File from my Maven2 "Jar" Projekt:
myjar-1.0-SNAPSHOT-bin.zip
- myjar-1.0-SNAPSHOT.jar (the jar from the POM)
- poperties\
- *.properties
- lib\
- *.jar (the dependencies from the POM)
The Assembly-Descriptor:
<?xml version="1.0"?>
<assembly>
<id>bin</id>
<formats>
<format>zip</format>
</formats>
<fileSets>
<fileSet>
<directory>src/main/external-resources</directory>
<outputDirectory>properties</outputDirectory>
<includes>
<include>**/*.*</include>
</includes>
</fileSet>
</fileSets>
<dependencySets>
<dependencySet>
<outputDirectory>lib</outputDirectory>
<unpack>false</unpack>
<scope>runtime</scope>
</dependencySet>
</dependencySets>
</assembly>
The POM:
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>assembly</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
<configuration>
<descriptors>
<descriptor>src/main/assembly/myjar-assembly.xml</descriptor>
</descriptors>
</configuration>
</plugin>
...
But the result from "mvn package" is:
myjar-1.0-SNAPSHOT-bin.zip
- poperties\
- *.properties
- lib\
- *.jar (the dependencies)
- myjar-1.0-SNAPSHOT.jar (!!!)
Is it possible to move the myjar-1.0-SNAPSHOT.jar from the lib\ directory to the toplevel directory of the zip-file?
Thank you
Volker Brosche
_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000066
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org