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]

Reply via email to