Re: [mevenide-user] NB6-RC2 mevenide test error

Russ Tremain <Russ.Tremain-UdXhSnd/[email protected]>
Newsgroups gmane.comp.jakarta.turbine.maven.mevenide.user
Message-ID <p06240802c3720f7f4e20@[204.68.225.24]>
Hi Milos,

We are stuck on maven 2.0.5, as we have other problems if we upgrade 
to 2.0.6 or 2.0.7.

Ran into the same error.

I was able to fix by specifiying:

	<artifactId>maven-surefire-plugin</artifactId>
         <version>2.3.1-SNAPSHOT</version>

Used to require 2.4-SNAPSHOT to work around 
http://jira.codehaus.org/browse/SUREFIRE-229,
but this appears to be fixed in the current 2.3.1 SNAPSHOT.

-Russ

At 9:30 AM +0100 11/26/07, Milos Kleint wrote:
>That's an issue with the fact that we use a maven-embedder that is 
>close to 2.0.4.
>The surefire plugin trunk claims that it works with 2.0, but the 
>actual dependencies make 2.0.6 a prerequisite. I've updated the 
>surefire plugin to require 2.0.6 from now on. The build should 
>recognize that and fallback to the last version that works with 
>2.0.4 (if the plugin is correctly setup, which is not the case of 
>current surefire however)
>
><http://mevenide.codehaus.org/m2-site/faq.html#question4> 
>http://mevenide.codehaus.org/m2-site/faq.html#question4
>
>The only workaround is to declare a plugin version to be used with 
>the project or build with external version of maven.
>
>Milos
>
>On 11/26/07, mutchd 
><<mailto:[email protected]>[email protected]> 
>wrote:
>
>
>
>I'm seeing the same thing. Something changed over the weekend. Everything is
>fine if i switch to external build using 2.0.7
>
>Dan
>
>
>LightGuard wrote:
>>
>>  -----BEGIN PGP SIGNED MESSAGE-----
>>  Hash: SHA256
>>
>>  This was working earlier (last night... go fig).  I have a project with
>>  Surefire 2.4-SNAPSHOT and TestNG 5.7.  Here's the output I get when
>>  running a test inside of NetBeans.  From the command line everything is
>>  fine.  I'm using my install of maven 2.0.6 and my local repo.
>>
>>  [surefire:test]
>>  Surefire report directory:
>>  /home/jason/NetBeansProjects/ClassResourceBundle/target/surefire-reports
>>  - ------------------------------------------------------------------------
>>  [ERROR]FATAL ERROR
>>  - ------------------------------------------------------------------------
>>  org.codehaus.plexus.util.cli.Commandline.createArg 
>>()Lorg/codehaus/plexus/util/cli/Arg;
>>  - ------------------------------------------------------------------------
>>  Trace
>>  java.lang.NoSuchMethodError:
>>  org.codehaus.plexus.util.cli.Commandline.createArg 
>>()Lorg/codehaus/plexus/util/cli/Arg;
>>          at
>> 
>>org.apache.maven.surefire.booter.ForkConfiguration.createCommandLine(ForkConfiguration.java:206)
>>          at
>>  org.apache.maven.surefire.booter.SurefireBooter.fork 
>>(SurefireBooter.java:625)
>>          at
>> 
>>org.apache.maven.surefire.booter.SurefireBooter.forkSuites(SurefireBooter.java:466)
>>          at
>>  org.apache.maven.surefire.booter.SurefireBooter.runSuitesForkOnce 
>>(SurefireBooter.java:366)
>>          at
>>  org.apache.maven.surefire.booter.SurefireBooter.run(SurefireBooter.java:239)
>>          at
>> 
>>org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java 
>>:451)
>>          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)
>>  - --
>>
>>  - -Jason Porter
>>  Real Programmers think better when playing Adventure or Rogue.
>>
>>  PGP key id: 926CCFF5
>>  PGP fingerprint: 64C2 C078 13A9 5B23 7738 F7E5 1046 C39B 926C CFF5
>>  PGP key available at: <http://keyserver.net>keyserver.net, 
>><http://pgp.mit.edu>pgp.mit.edu
>>  -----BEGIN PGP SIGNATURE-----
>>  Version: GnuPG v1.4.6 (GNU/Linux)
>>  Comment: Using GnuPG with Mozilla - 
>><http://enigmail.mozdev.org>http://enigmail.mozdev.org
>>
>>  iD8DBQFHSgkeEEbDm5Jsz/URCMuUAJ0aSxV9ANWuFecELd+W2Dxq1pCLaACg4K/P
>>  vjy5eShakmDmm6f81S7J5NI=
>>  =oYb7
>>  -----END PGP SIGNATURE-----
>>
>>  ---------------------------------------------------------------------
>>  To unsubscribe from this list please visit:
>>
>> 
>><http://xircles.codehaus.org/manage_email>http://xircles.codehaus.org/manage_email
>>
>>
>>
>
>--
>View this message in context: 
><http://www.nabble.com/NB6-RC2-mevenide-test-error-tf4872122.html#a13942578>http://www.nabble.com/NB6-RC2-mevenide-test-error-tf4872122.html#a13942578
>Sent from the mevenide - user mailing list archive at 
><http://Nabble.com>Nabble.com.
>
>
>---------------------------------------------------------------------
>To unsubscribe from this list please visit:
>
> 
>   <http://xircles.codehaus.org/manage_email>http://xircles.codehaus.org/manage_email
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.