You can write a maven goal with jelly to do all of that.  I've got two goals
dist:jar and dist:zip in my maven.xml that look like this (thanks to Jim
Birchfield):

<project xmlns:j="jelly:core" xmlns:a="jelly:ant">

  <goal name="dist:jar" description="Copies dependant jars for
distribution">
    <j:forEach var="lib" items="${pom.dependencies}">
      <copy todir="${maven.build.dir}/lib"
file="${maven.repo.local}/${lib.getProjectId()}/jars/${lib.getArtifact()}"/>
    </j:forEach>
  </goal>
  <goal name="dist:zip" prereqs="dist:jar" description="Zips dependant jars
for distribution">
    <a:zip zipfile="${maven.build.dir}/${pom.id}-lib.zip"
basedir="${maven.build.dir}/lib"/>
  </goal>

</project>

Hope that helps some.

Jonathan Paul Cowherd
Linux and Java Administrator
Genscape, Inc.
Email:  [EMAIL PROTECTED]
Office: (502) 583-3730
Mobile: (502) 314-0444



-----Original Message-----
From: Laurie Harper [mailto:[EMAIL PROTECTED]] 
Sent: Monday, November 18, 2002 10:13 PM
To: [EMAIL PROTECTED]
Subject: Creating a full distribution


Still getting up to speed with Maven... How do I get my jar dependencies 
copied into the distribution? What about other files, such as shell/bat 
scripts, configuration files, etc? Do I need to write a pre/post goal 
for the dist plugin's sub-targets?

Thanks,

L.


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

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

Reply via email to