The assembly plugin by default saves the packages to your
project.build.directory folder or
<project>
...
<build>
<directory>path-here</directory
...
</build>
...
</project
You can have assembly plugin use a different setting by setting the
plugin parameter <outputDirectory> to your desired directory
More info about the assembly plugin can be found here:
http://maven.apache.org/plugins/maven-assembly-plugin/introduction.html
[EMAIL PROTECTED] wrote:
How can I set the base directory from which the zip file should be created when
using the assembly plugin?
My descriptor looks like:
<assembly>
<formats>
<format>zip</format>
</formats>
<fileSets>
<fileSet>
<directory>target/mhave</directory>
<excludes>
<exclude>xdocs/**</exclude>
</excludes>
</fileSet>
</fileSets>
</assembly>
My plugin config looks like:
<!-- maven-assembly-plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>src/main/assembly/mhave-commons-assembly.xml</descriptor>
</descriptors>
<workDirectory>target/assembly/work</workDirectory>
<outputDirectory>target/releases/</outputDirectory>
</configuration>
</plugin>
</plugins>
I want to use "target/mhave" as base directory for the zip archive.
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]