Hi!
I am using the groovy-maven-plugin and would like to pass some
properties accessible in an external source. The properties are
available just fine in the inline script but they do not seem to be
available in the source.
Following the documentation here
http://mojo.codehaus.org/groovy/groovy-maven-plugin/examples/executing.html
I thought something like this
<plugin>
<groupId>org.codehaus.mojo.groovy</groupId>
<artifactId>groovy-maven-plugin</artifactId>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<properties>
<hello>world</hello>
</properties>
<source>${pom.basedir}/src/main/script/myscript.groovy</source>
</configuration>
</execution>
</executions>
</plugin>
would work. So myscript could access the property using e.g
println project.properties['hello']
as in the example about properties...
But it does not seem to work. Is that intentional or a bug?
I have a workaround basically moving a part of my script with a setter
into the plugin config.. but that is kind of ugly since editing and
running groovy in the ide within the pom file is not feasible...
Any thoughts?
manfred
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email