Hi,

Did you take a look at the Maven Application Assembler Plugin? [1] This will 
create the zip file you are asking for.

Hth,

Nick Stolwijk

[1] http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/


-----Original Message-----
From: Alexander Petri [mailto:[EMAIL PROTECTED]
Sent: Wed 2/6/2008 5:09 PM
To: users@maven.apache.org
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>


Reply via email to