Hello!
I would like to be able to execute a groovy-script with mvn. I understand this
should be
possible with the execute goal. But when I type "mvn groovy:execute" on the
command line
with the following pom.xml at least 2 things go wrong.
----------- snip -------------
<?xml version="1.0" ?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.jaeckel</groupId>
<artifactId>grom</artifactId>
<version>1.0-SNAPSHOT</version>
<name>groovy pom tester</name>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo.groovy</groupId>
<artifactId>groovy-maven-plugin</artifactId>
<configuration>
<source>${pom.basedir}/src/main/groovy/myScript.groovy</source>
</configuration>
</plugin>
</plugins>
</build>
</project>
----------- snip -------------
1. mvn gets
http://repo1.maven.org/maven2/org/codehaus/mojo/groovy-maven-plugin/1.0-alpha-2/groovy-maven-plugin-1.0-alpha-2.pom
and
http://repo1.maven.org/maven2/org/codehaus/mojo/groovy-maven-plugin/1.0-alpha-2/groovy-maven-plugin-1.0-alpha-2.jar
although I already have version 1.0-beta-2 in my local repository.
2. It tells me
----------- snip -------------
[...]
[INFO] One or more required plugin parameters are invalid/missing for
'groovy:execute'
[0] inside the definition for plugin: 'groovy-maven-plugin'specify the
following:
<configuration>
...
<source>VALUE</source>
</configuration>.
[...]
----------- snip -------------
what am I doing wrong?
Regards,
Dirk
PS: Search and links to answers in the thread-view on
http://archive.mojo.codehaus.org/user
are not working
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email