On Fri, August 24, 2012 2:36 am, Michael Hüttermann wrote:
> Hello,
>
> how can I (e.g. programmatically, in an own Maven plugin) access the
> "server">"password" element of settings.xml, to re-use the value. Is there
> any chance to do so?
Btw. you can also access collections from settings or pom programmatically
with the gmaven plugin e.g. like this
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>gmaven-plugin</artifactId>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<source>
println "I am in ${project.name} version ${project.version}
project.dependencies.each {
println "Group: $it.groupId; Artifact: $it.artifactId; Version:
$it.version"
}
</source>
</configuration>
</plugin>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]