Try... <j:forEach var="lib" items="${pom.artifacts}"> <j:set var="dep" value="${lib.dependency}"/>
Off the top of my head I'm not sure why this particular case it isn't working, but the above is the standard practice. - Brett On 9/7/05, Henri Yandell <[EMAIL PROTECTED]> wrote: > > Having some problems using dependencies/dependency/properties in the > maven.xml file. Obviously I'm missing something basic :) Using maven > 1.0.1. > > In my POM, I have the following custom property set for a dependency: > > <dependency> > <id>oscube</id> > <version>0.2</version> > <url>http://www.osjava.org/oscube/</url> > <properties> > <multidoc.url>http://dist.osjava.org/releases/multidoc-jnr</multidoc.url > > > </properties> > </dependency> > > My custom maven.xml file then attempts to get this variable out. The > bad bit being that it doesn't get anything out, just finds an empty > string. The if statement is effectively working correctly, if the > property is not set then it isn't entered etc. > > <?xml version="1.0"?> > <project xmlns:j="jelly:core" xmlns:ant="jelly:ant"> > > <preGoal name="maven-javadoc-plugin:report"> > > <!-- for-each dependency --> > <j:forEach var="dep" items="${pom.dependencies}"> > <j:if test="${dep.getProperty('multidoc.url') != null}"> > <j:set var="maven.javadoc.links" > value="${maven.javadoc.links},${dep.getProperty('multidoc.url')}/${ > dep.getArtifactId()}/${dep.getVersion()}/"/> > </j:if> > </j:forEach> > > </preGoal> > > </project> > > Anyway, could anyone let me know what I've done wrong? > > Thanks, > > Hen > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >