> Ok.  So how do I add a property to the dependency?  Is it as simple as
> just adding my own tag like this?:
> 
> <dependency>
>    <groupId>guiapp-extension</groupId>
>    <artifactId>browser</artifactId>
>    <version>SNAPSHOT</version>
>    <type>runtime</type>
> </dependency>

If you use the <war.bundle> tag as an example, it would be more like this:

<dependency>
   <groupId>guiapp-extension</groupId>
   <artifactId>browser</artifactId>
   <version>SNAPSHOT</version>
   <properties>
      <type>runtime</type>
   </properties>
</dependency>

And this code would filter:

<j:forEach var="lib" items="${pom.artifacts}">
   <j:set var="dep" value="${lib.dependency}"/>     
   <j:if test="${dep.getProperty('runtime')=='true'}">
        <!-- do whatever -->
   </j:if>
</j:forEach>            

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

Reply via email to