Re: [mevenide-user] NoSuchMethodError ... CommandLineUtils

"Milos Kleint" <[email protected]> Mon, 10 Mar 2008 08:22:31 +0100
Newsgroups gmane.comp.jakarta.turbine.maven.mevenide.user
Message-ID <[email protected]>
Ok, this is caused by 2 things.

1. our maven embedder in 3.0.11 is 2.0.4 version of maven (actually
not the same but very close to it)
2. the plugin com.totsp.mavenplugin.gwt.CompileMojo has wrong
mavenPrerequisite section in it's pom. I suppose it claims to work in
2.0 of maven but is actually using classes that are only available in
later versions (like in 2.0.8).

if the plugin did specify the correct version, the build would fail
with a more descriptive message ("YOu need at least 2.0.6 but are
using 2.0.4)

the solution to the problem is either setup the project to be built
with the command line version of Maven (in project's customizer and
Tools/Options dialog)
or use the latest snapshot of mevenide (3.1-SNAPSHOT) which has a
current 2.1-SNAPSHOT of maven embedder.. However that one might not be
stable either..
(http://deadlock.netbeans.org/hudson/job/mevenide/)

Milos

PS: it would be nice filing a bug report with the plugin in question..



On Sat, Mar 8, 2008 at 8:44 PM, Aaron Metzger <ametzger-cr0wSWX93UX2eFz/[email protected]> wrote:
> I'm relatively new to both NetBeans and Maven so forgive me if I'm
>  trying to do something beyond what MevenIDE is designed to do.
>
>  I have an existing Maven 2 project (multi-module) which builds fine from
>  the command line using Maven 2.0.9.
>
>  Using NetBeans 6.0.1 OR 6.1Beta with MevenIDE 3.0.11 the same project
>  fails to build with the following error.  What area should I be looking
>  at to debug this?  Any ideas on what I might be able to change in my
>  build configuration to get past this would be greatly appreciated.
>
>  Thanks.
>
>  > ------------------------------------------------------------------------
>  > [ERROR]FATAL ERROR
>  > ------------------------------------------------------------------------
>  > org.codehaus.plexus.util.cli.CommandLineUtils.translateCommandline(Ljava/lang/String;)[Ljava/lang/String;
>  > ------------------------------------------------------------------------
>  > Trace
>  > java.lang.NoSuchMethodError: org.codehaus.plexus.util.cli.CommandLineUtils.translateCommandline(Ljava/lang/String;)[Ljava/lang/String;
>  >         at com.totsp.mavenplugin.gwt.CompileMojo.execute(CompileMojo.java:98)
>  >         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:417)
>  >         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:610)
>  >         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:551)
>  >         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:530)
>  >         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:309)
>  >         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:276)
>  >         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
>  >         at org.codehaus.mevenide.netbeans.embedder.exec.MyLifecycleExecutor.execute(MyLifecycleExecutor.java:92)
>  >         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:393)
>  >         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:182)
>  >         at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:760)
>  >         at org.codehaus.mevenide.netbeans.execute.MavenJavaExecutor.run(MavenJavaExecutor.java:196)
>  >         at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
>  > ~
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email