Hello Christian,
I am just starting to use Maven 2, also had some problems to figure this
out, and perhaps I can help you. In my little project I created two
files in the src/main/assembly directory of my project.
The bin.xml looks like:
<?xml version="1.0" encoding="UTF-8"?>
<assembly>
<id>bin</id>
<formats>
<format>tar.gz</format>
<format>zip</format>
</formats>
<fileSets>
<fileSet>
<includes>
<include>LICENSE*</include>
</includes>
</fileSet>
<fileSet>
<directory>target</directory>
<outputDirectory></outputDirectory>
<includes>
<include>*.jar</include>
</includes>
</fileSet>
</fileSets>
</assembly>
The src.xml looks like:
<?xml version="1.0" encoding="UTF-8"?>
<assembly>
<id>src</id>
<formats>
<format>tar.gz</format>
<format>zip</format>
</formats>
<fileSets>
<fileSet>
<includes>
<include>LICENSE*</include>
<include>pom.xml</include>
</includes>
</fileSet>
<fileSet>
<directory>src</directory>
</fileSet>
</fileSets>
</assembly>
I am not sure whether it works as intended, but you get the point, I think.
I configured the assembly plugin as follows:
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>assembly</id>
<phase>package</phase>
<goals>
<goal>assembly</goal>
</goals>
<configuration>
<descriptors>
<descriptor>
src/main/assembly/bin.xml
</descriptor>
<descriptor>
src/main/assembly/src.xml
</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
That at least creates some files...
Regards,
Dirk
Christian Goetze wrote:
> I've read the better builds with maven book, I've looked at
> http://maven.apache.org/plugins/maven-assembly-plugin, but I'm still
> not sure I understand how this is supposed to work.
>
> I just want end up with a zip file containing all of the jars needed
> to run the particular project I'm building.
>
> Alternatively, I'd already be happy with a way to just get the
> transitive runtime dependency list out of the build.
>
> Any help would be appreciated, thanks in advance.
> --
> cg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]