Failed to execute goal org.codehaus.groovy.maven:gmaven-plugin:1.0:execute.
Getting ClasCastException.
------------------------------------------------------------------------------------------------------
Key: MNG-4863
URL: http://jira.codehaus.org/browse/MNG-4863
Project: Maven 2 & 3
Issue Type: Bug
Components: Plugins and Lifecycle
Affects Versions: 3.0
Environment: Windows XP, Jdk 1.6.0_20
Reporter: Bodhayan Chakraborty
Hi,
I am getting the below error after I upgrade Maven 2.2.1 to Maven 3.0.
...........................
[ERROR] Failed to execute goal
org.codehaus.groovy.maven:gmaven-plugin:1.0:execute (set-bastion-credentials)
on project esb-parent-pom: java.lang.ClassCastException: script1286984516651
cannot be cast to groovy.lang.GroovyObject -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
...........................
This is the plugin that I am using.
<plugin>
<groupId>org.codehaus.groovy.maven</groupId>
<artifactId>gmaven-plugin</artifactId>
....
....
</plugin>
But if I change the plugin like below, it is working.
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>gmaven-plugin</artifactId>
<version>1.3</version>
....
....
</plugin>
Is it mandatory to change the Gmaven plugin if I upgrade from maven 2.2.1 to
3.0?
Please let me know,
Thanks,
Bodhayan.
--
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