there is a different getter that should give you the correct one... or you might have to run through project.artifacts. certainly you can get the info from a java based maven plugin, not sure about the gmaven bindings

Sent from my [rhymes with tryPod] ;-)

On 21 Feb 2010, at 13:51, eyal edri <[email protected]> wrote:

I found a cool way to iterate pom's dependencies with GMaven:

*project.dependencies.each () {*
*        log.info("extracting project ${it.artifactId} version
${it.version}")*
*  }*

but still, it gives me the predefined literal version: (0.0.1- SNAPSHOT,),
instead of the range calculated one: 0.0.16

any ideas?


On Sun, Feb 21, 2010 at 3:19 PM, eyal edri <[email protected]> wrote:

hi,

is it possible to read a property that is calculated by maven in runtime:

<modelVersion>4.0.0</modelVersion>
 <groupId>com.company.install</groupId>
 <artifactId>JavaInstaller</artifactId>
 <packaging>pom</packaging>
 <version>0.0.2-SNAPSHOT</version>
 <name>Java Installer</name>
 <description>Installer for maven java projects</description>
 <parent>
   <groupId>com.company.maven.pom</groupId>
   <artifactId>CtchParent</artifactId>
   <version>0.0.16-SNAPSHOT</version>
 </parent>
*  <properties>*
*        <installedVersion>0.0.1-SNAPSHOT</installedVersion>*
*  </properties>*
 <dependencies>
   <dependency>
     <groupId>${installedGroupId}</groupId>
     <artifactId>${installedArtifactId}</artifactId>
* <version>(${installedVersion},)</version> -> this will install the
latest version available from the repo.*
   </dependency>
 </dependencies>


can i access the project.dependencies.dependency.version value?

i need it in a groovy code that is run afterward using GMaven plugin.

thanks!

--
Eyal Edri




--
Eyal Edri

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to