You need to explicitly add the created jar, something like the following
works fine for me:
<fileSet>
<directory>target</directory>
<outputDirectory></outputDirectory>
<includes>
<include>*.jar</include>
</includes>
</fileSet>
-----Original Message-----
From: Alexander Petri [mailto:[EMAIL PROTECTED]
Sent: 06 February 2008 16:10
To: [email protected]
Subject: building a assembly
Hi,
i want to create a zipfile after packaging (for "fullinstall") using the
assembly plugin which should contain
some folders, the jars (dependencies),the main jar(with main.class) and
a batchfile to start the application. => it's a cli application
the problem is that the zipfile doesn't contain the main jar.
How can I put the main jarfile into the zip?
Here is my assembly xml for now:
<?xml version="1.0" encoding="UTF-8"?>
<assembly>
<id>my-src</id>
<formats>
<format>zip</format>
</formats>
<fileSets>
<fileSet>
<directory>reports</directory>
</fileSet>
<fileSet>
<directory>output</directory>
</fileSet>
<fileSet>
<directory>log</directory>
</fileSet>
</fileSets>
<dependencySets>
<dependencySet>
<scope>runtime</scope>
<outputDirectory>lib</outputDirectory>
</dependencySet>
</dependencySets>
</assembly>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]