Great that works fine.

Cheers
Neil

-----Original Message-----
From: Brian Ewins [mailto:[EMAIL PROTECTED]
Sent: 15 July 2003 17:13
To: Maven Users List
Subject: Re: accessing the dependancies in maven.xml


You probably want 'pom.artifacts' if you want to get at the jar. 
'pom.dependencies' is a list of dependencies, but you can always get to 
the dependency via the jar. eg

     <j:forEach var="lib" items="${pom.artifacts}">
        <j:set var="dep" value="lib.dependency"/>
     </j:forEach>

this would give you the artifacts (so lib.file would give you the jar) 
plus the dependency fields via the 'dep' object. Alternatively, if you 
really just want dependencies:

     <j:forEach var="dep" items="${pom.dependencies}">
     </j:forEach>

does the trick.

Neil Blue wrote:

> Hello,
> 
> we are trying to access the collection of pom dependancies in the maven.xml file. Is 
> there a variable we can access that will give us access to the dependancy jar 
> information?
> 
> Thanks
> Neil
> 
> ---------------------------------------------------------------------
> 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]


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

Reply via email to