This question may have the same answer, but is there any way (in Maven
1.x) to simply execute a Maven-compiled program with dependencies,
without either copying them all from the repository (or wherever) into
target/classes or stating each of them in the classpath?  It seems as
if Maven should be able to keep track of the project's dependencies in
such a way that you don't need any extra script or command-line
keystrokes to execute the end product of a java:compile.  Would it
help to make the project into a plugin?  Thanks for humoring a newbie,

Josh


On 7/25/05, Yann Le Du <[EMAIL PROTECTED]> wrote:
> Hi Per,
> 
> I confirm this works (see
> http://marc.theaimsgroup.com/?l=turbine-maven-user&m=112229063518612&w=2), but
> as Matthew said, only with Maven 2 bacause of (thanks to ?) the transtive
> dependencies management.
> 
> Regards,
> 
> Yann
> 
> 
> --- "Inger, Matthew" <[EMAIL PROTECTED]> a écrit :
> 
> > With maven 1.x you don't.  It's going to be in maven 2
> >
> >
> > -----Original Message-----
> > From: Per Abich [mailto:[EMAIL PROTECTED]
> > Sent: Monday, July 25, 2005 10:56 AM
> > To: [email protected]
> > Subject: Howto get the dependencies of direct dependencies of a project
> >
> >
> > Hello,
> >
> > I am trying to retrieve a list of dependencies for all the artifacts
> > that I have included in my project.
> >
> > The goal is, to get all those files, copy them into a specific location
> > and then zip them together to obtain "single-file-install" which is
> > deployable without any further dependencies.
> >
> > I have tried to simply get the *.pom - files and get their dependencies,
> > but so far, I have failed to do this.
> >
> > The way I have gone, was like the following:
> >
> > <j:forEach var="lib" items="${pom.artifacts}">
> >     <ant:copy todir="${distDir}/lib" file="${lib.path}" />
> > </j:forEach>
> >
> > the above works, but only allows me to copy the DIRECT dependencies
> > which I have specified in the project.xml.
> >
> > But how do I get to copy all the dependencies of my dependencies into my
> > ${distDir}/lib folder?
> >
> > Does anyone have a solution for this?
> >
> > Best Regards
> >
> > Per Abich
> > Catenic AG
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> 
> 
> 
> 
> 
> ___________________________________________________________________________
> Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
> Téléchargez cette version sur http://fr.messenger.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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

Reply via email to