[jira] Commented: (MGROOVY-144) NoSuchMethodError during generateStubs from maven embedder
Rae Egli (JIRA <jira <at> codehaus.org>
2008-07-02 02:45:26 GMT
[
http://jira.codehaus.org/browse/MGROOVY-144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=140143#action_140143
]
Rae Egli commented on MGROOVY-144:
----------------------------------
I encountered the same error in Eclipse: java.lang.NoSuchMethodError, and started searching for an
answer which is why I landed here. Finding no immediate answer, I then tried to find out why.
I somehow had omitted the static clause from:
public static void main(String[] args)
i.e.
public void main(String[] args)
As soon as I put it back, the error disappeared. Just thought you might want to know.
> NoSuchMethodError during generateStubs from maven embedder
> ----------------------------------------------------------
>
> Key: MGROOVY-144
> URL: http://jira.codehaus.org/browse/MGROOVY-144
> Project: GMaven
> Issue Type: Bug
> Components: stub generation
> Affects Versions: 1.0-rc-2
> 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
> Reporter: Jason Mihalick
> Assignee: Jason Dillon
> Fix For: 1.0-rc-4
>
>
> 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.
--
--
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