I have this in my maven.xml to generate a separate sources zip, when building a jar.

  <postGoal name="jar:jar" >
    <echo>creating sources zip from ${maven.src.dir}</echo>
    <zip
     zipfile="${maven.build.dir}/${maven.final.name}-src.zip"
     basedir="${maven.src.dir}" >
     excludes="**/**.class" >
   </zip>
  </postGoal>

Enjoy,

--Leif

At 01:18 PM 11/7/2003 -0800, you wrote:
Hi,
Can I have the jar goal generate a jar that includes the source code file
also beside the .class files.

Thanks

Vikas



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to