Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0-rc-2
-
Fix Version/s: 1.0-rc-4
-
Component/s: stub generation
-
Labels:None
-
Environment:Windows XP, Eclipse 3.3, q4e plugin (version 0.6.1.200804212151), eclipse running under Java 6, project targeting Java 1.4, groovy version 1.5.4
-
Number of attachments :
Description
I get the following exception within our maven build in multiple IDEs (Eclipse 3.3 with both the m2eclipse plugin and q4e plugin, Netbeans 6.1, and IntelliJ 7.0.3) which all use the Maven embedder that's based on the maven 2.1 code base. I have a project that contains both groovy and several Java classes that import groovy classes. Everything works fine from the command line using maven 2.0.7 and the gmaven plugin version 1.0-rc-2. Here is my configuration for the gmaven plugin:
<plugin>
<groupId>org.codehaus.groovy.maven</groupId>
<artifactId>gmaven-plugin</artifactId>
<version>1.0-rc-2</version>
<executions>
<execution>
<goals>
<goal>generateStubs</goal>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
From within eclipse 3.3 using the q4e plugin for maven integration I get this stack trace when the generateStubs goal is triggered:
1:04:23 PM EDT info ------------------------------------------------------------------------
1:04:23 PM EDT info Building TEP Core
1:04:23 PM EDT info task-segment: [process-resources]
1:04:23 PM EDT info ------------------------------------------------------------------------
1:04:23 PM EDT Starting Starting projectExecution org.acspubs:TEPCore:jar:0.8.1 ( task-segment: [process-resources] )
1:04:23 PM EDT Starting Starting mojoExecution groovy:generateStubs
1:04:23 PM EDT fatal org.codehaus.groovy.maven.plugin.stubgen.GenerateStubsMojo#execute() caused a linkage error (java.lang.NoSuchMethodError) and may be out-of-date. Check the realms:
1:04:23 PM EDT fatal Plugin realm =
8<------------------ snip 8<---------------------
1:04:23 PM EDT fatal Container realm = plexus.core
1:04:23 PM EDT Error An error occurred in phase mojoExecution with the exception java.lang.NoSuchMethodError: org.codehaus.plexus.PlexusContainer.createChildContainer(Ljava/lang/String;Ljava/util/List;Ljava/util/Map;)Lorg/codehaus/plexus/PlexusContainer;
I am seeing it in any IDE that uses the maven 2.1 embedder. I found a thread (http://www.nabble.com/Re%3A-New-groovy-maven-plugin-1.0-beta-3-SNAPSHOUT-p13503564.html) on the dev list where someone else had the same problem late last year.
If you need additional information, please let me know. Thanks for the help.
I have the exact same issue with Eclipse 3.3 on Linux, Groovy 1.5.6, targeting Java 1.6