This might get you started (put it in your maven.xml):

   <goal name="copydependencies" description="Copy all dependent artifacts
in the temp\resource directory">
       <ant:echo message="There are ${size(pom.dependencies)} artifacts for
this project"/>
       <j:forEach items="${pom.dependencies}" var="dep"
indexVar="depNumber">
           <ant:echo message="Dependency ${depNumber}: ${dep.artifact}"/>
                   <ant:copy preservelastmodified="true" overwrite="true"
file="${pom.getDependencyPath(dep.getId())}" tofile="${maven.build.dir
}/resource/jars/${dep.getArtifactId()}.jar"/>
       </j:forEach>
   </goal>


2006/5/24, lsacco <[EMAIL PROTECTED]>:


Basically, I would just like all the dependencies to be in one spot.  I
realize they are downloaded to the local repository, but to ask our CM
staff
to go grab them out of there is out of the question.  Ideally, I would
like
the build to run to create my JAR file and then put all the dependent JARs
in the same "dist" directory.  Then I could zip them all up if I wanted
and
send them off as one package.

I think this is kind of the idea antlib in M2.

Let me know, but I think I'll need to resort to ANT+Jelly to accomplish
this.

Thanks,
Lou
--
View this message in context:
http://www.nabble.com/How+to+download+dependencies+as+resources--t1671022.html#a4535464
Sent from the Maven - Users forum at Nabble.com.


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


Reply via email to