documentation on how to execute a Groovy script is wrong
--------------------------------------------------------
Key: MGROOVY-78
URL: http://jira.codehaus.org/browse/MGROOVY-78
Project: Maven 2.x Groovy Integration
Issue Type: Bug
Components: site
Reporter: Jim Sellers
Assignee: Jason Dillon
The documentation on the page:
http://mojo.codehaus.org/groovy/groovy-maven-plugin/examples/executing.html
does not work under the section "Execute a Local Groovy Script" (and I suspect
that the "remote" and "inline" are wrong as well).
When you run it you get the following exception:
Downloading: http://domain/repository/groovy/groovy-all/1.0/groovy-all-1.0.pom
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to configure plugin parameters for:
org.codehaus.mojo:groovy-maven-plugin:1.0-alpha-2-SNAPSHOT
(found static expression:
'/my/path/to/file/src/main/script/myscript.groovy' which may act as a default
value).
Cause: Cannot assign configuration entry 'source' to 'class
org.codehaus.mojo.groovy.CodeSource' from
'/my/path/to/file/src/main/script/myscript.groovy', which is of type class
java.lang.String
For the inline, in the <source> ... </source> it should be <source> <body> ...
</body> </source>
For the local, it should be <source> <file> ... </file> </source>
and for the remote it looks like it should be <source> <url> ... </url>
</source>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email