Re: Trouble with Surefire plugin

2006-06-01 Thread Carlos Sanchez

3.8.1

On 5/31/06, Sharma, Jaikumar [EMAIL PROTECTED] wrote:

Surefire plugin version 2.1.3 has binding to Junit 4.0/4.1 or still
3.8.1 ?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos
Sanchez
Sent: Thursday, June 01, 2006 11:19 AM
To: Maven Users List; Sean McNamara
Subject: Re: Trouble with Surefire plugin


Try setting a 2.1.3 version for the surefire plugin. You can later try
with 2.2 and see what's the problem.

On 5/31/06, Sean McNamara [EMAIL PROTECTED] wrote:
 I'm running into a build error with a project that was previously
 working properly, an am wondering if anyone has any idea how to fix
 this.  It's fairly critical I get this project rebuilt so any help is
 appreciated.

 Thanks!

 --
 


 [INFO]


 [ERROR] BUILD ERROR
 [INFO]

 [INFO] Internal error in the plugin manager executing goal
'org.apache.maven.plu
 gins:maven-surefire-plugin:2.2:test': Unable to find the mojo
'org.apache.maven.
 plugins:maven-surefire-plugin:2.2:test' in the plugin
'org.apache.maven.plugins:
 maven-surefire-plugin'
 org/apache/maven/surefire/booter/SurefireExecutionException
 [INFO]

 [INFO] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: Internal error
in the pl
 ugin manager executing goal
'org.apache.maven.plugins:maven-surefire-plugin:2.2:
 test': Unable to find the mojo
'org.apache.maven.plugins:maven-surefire-plugin:2
 .2:test' in the plugin
'org.apache.maven.plugins:maven-surefire-plugin'
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
 ultLifecycleExecutor.java:538)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
 fecycle(DefaultLifecycleExecutor.java:475)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
 ltLifecycleExecutor.java:454)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
 dleFailures(DefaultLifecycleExecutor.java:306)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
 ts(DefaultLifecycleExecutor.java:273)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
 fecycleExecutor.java:140)
 at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
 at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
 java:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
 at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
 at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
 at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
 Caused by: org.apache.maven.plugin.PluginManagerException: Unable to
find the mo
 jo 'org.apache.maven.plugins:maven-surefire-plugin:2.2:test' in the
plugin 'org.
 apache.maven.plugins:maven-surefire-plugin'
 at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul
 tPluginManager.java:533)
 at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
 nManager.java:390)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
 ultLifecycleExecutor.java:534)
 ... 16 more
 Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLookupExc
 eption: Unable to lookup component
'org.apache.maven.plugin.Mojoorg.apache.maven
 .plugins:maven-surefire-plugin:2.2:test', it could not be created
 at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
 ner.java:335)
 at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
 ner.java:440)
 at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul
 tPluginManager.java:524)
 ... 18 more
 Caused by:
org.codehaus.plexus.component.factory.ComponentInstantiationException
 : Could not instanciate component: role: 'null', implementation:
'org.apache.mav
 en.plugin.surefire.SurefirePlugin'
 at
org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeE
 xception(JavaComponentFactory.java:77)
 at
org.codehaus.plexus.component.factory.java.JavaComponentFactory.newIn
 stance(JavaComponentFactory.java:62

RE: Trouble with Surefire plugin

2006-06-01 Thread Sharma, Jaikumar
Thanks Carloss. I am not sure, if it means that it not is possible to
use Junit 4.0/4.1 using Maven for running tests ? 
Regards, Jaikumar

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos
Sanchez
Sent: Thursday, June 01, 2006 11:36 AM
To: Maven Users List
Subject: Re: Trouble with Surefire plugin


3.8.1

On 5/31/06, Sharma, Jaikumar [EMAIL PROTECTED] wrote:
 Surefire plugin version 2.1.3 has binding to Junit 4.0/4.1 or still 
 3.8.1 ?

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of 
 Carlos Sanchez
 Sent: Thursday, June 01, 2006 11:19 AM
 To: Maven Users List; Sean McNamara
 Subject: Re: Trouble with Surefire plugin


 Try setting a 2.1.3 version for the surefire plugin. You can later try

 with 2.2 and see what's the problem.

 On 5/31/06, Sean McNamara [EMAIL PROTECTED] wrote:
  I'm running into a build error with a project that was previously 
  working properly, an am wondering if anyone has any idea how to fix 
  this.  It's fairly critical I get this project rebuilt so any help 
  is appreciated.
 
  Thanks!
 
  
  --
  
 
 
  [INFO]
 
 --
 --
  [ERROR] BUILD ERROR
  [INFO]
 --
 --
  [INFO] Internal error in the plugin manager executing goal
 'org.apache.maven.plu
  gins:maven-surefire-plugin:2.2:test': Unable to find the mojo
 'org.apache.maven.
  plugins:maven-surefire-plugin:2.2:test' in the plugin
 'org.apache.maven.plugins:
  maven-surefire-plugin' 
  org/apache/maven/surefire/booter/SurefireExecutionException
  [INFO]
 --
 --
  [INFO] Trace
  org.apache.maven.lifecycle.LifecycleExecutionException: Internal 
  error
 in the pl
  ugin manager executing goal
 'org.apache.maven.plugins:maven-surefire-plugin:2.2:
  test': Unable to find the mojo
 'org.apache.maven.plugins:maven-surefire-plugin:2
  .2:test' in the plugin
 'org.apache.maven.plugins:maven-surefire-plugin'
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
  ultLifecycleExecutor.java:538)
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
  fecycle(DefaultLifecycleExecutor.java:475)
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
  ltLifecycleExecutor.java:454)
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
  dleFailures(DefaultLifecycleExecutor.java:306)
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
  ts(DefaultLifecycleExecutor.java:273)
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
  fecycleExecutor.java:140)
  at
 org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
  at
 org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
  at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
  at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  java:39)
  at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  sorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at
 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
  at
org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
  at
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
  at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
  Caused by: org.apache.maven.plugin.PluginManagerException: Unable to
 find the mo
  jo 'org.apache.maven.plugins:maven-surefire-plugin:2.2:test' in the
 plugin 'org.
  apache.maven.plugins:maven-surefire-plugin'
  at
 org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul
  tPluginManager.java:533)
  at
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
  nManager.java:390)
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
  ultLifecycleExecutor.java:534)
  ... 16 more
  Caused by:
 org.codehaus.plexus.component.repository.exception.ComponentLookupExc
  eption: Unable to lookup component
 'org.apache.maven.plugin.Mojoorg.apache.maven
  .plugins:maven-surefire-plugin:2.2:test', it could not be created
  at
 org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
  ner.java:335)
  at
 org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
  ner.java:440)
  at
 org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul
  tPluginManager.java:524)
  ... 18 more
  Caused

Re: Trouble with Surefire plugin

2006-06-01 Thread Carlos Sanchez

surefire plugin 2.2 allows you to use junit 4.x and testng

On 5/31/06, Sharma, Jaikumar [EMAIL PROTECTED] wrote:

Thanks Carloss. I am not sure, if it means that it not is possible to
use Junit 4.0/4.1 using Maven for running tests ?
Regards, Jaikumar

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos
Sanchez
Sent: Thursday, June 01, 2006 11:36 AM
To: Maven Users List
Subject: Re: Trouble with Surefire plugin


3.8.1

On 5/31/06, Sharma, Jaikumar [EMAIL PROTECTED] wrote:
 Surefire plugin version 2.1.3 has binding to Junit 4.0/4.1 or still
 3.8.1 ?

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
 Carlos Sanchez
 Sent: Thursday, June 01, 2006 11:19 AM
 To: Maven Users List; Sean McNamara
 Subject: Re: Trouble with Surefire plugin


 Try setting a 2.1.3 version for the surefire plugin. You can later try

 with 2.2 and see what's the problem.

 On 5/31/06, Sean McNamara [EMAIL PROTECTED] wrote:
  I'm running into a build error with a project that was previously
  working properly, an am wondering if anyone has any idea how to fix
  this.  It's fairly critical I get this project rebuilt so any help
  is appreciated.
 
  Thanks!
 
  
  --
  
 
 
  [INFO]
 
 --
 --
  [ERROR] BUILD ERROR
  [INFO]
 --
 --
  [INFO] Internal error in the plugin manager executing goal
 'org.apache.maven.plu
  gins:maven-surefire-plugin:2.2:test': Unable to find the mojo
 'org.apache.maven.
  plugins:maven-surefire-plugin:2.2:test' in the plugin
 'org.apache.maven.plugins:
  maven-surefire-plugin'
  org/apache/maven/surefire/booter/SurefireExecutionException
  [INFO]
 --
 --
  [INFO] Trace
  org.apache.maven.lifecycle.LifecycleExecutionException: Internal
  error
 in the pl
  ugin manager executing goal
 'org.apache.maven.plugins:maven-surefire-plugin:2.2:
  test': Unable to find the mojo
 'org.apache.maven.plugins:maven-surefire-plugin:2
  .2:test' in the plugin
 'org.apache.maven.plugins:maven-surefire-plugin'
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
  ultLifecycleExecutor.java:538)
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
  fecycle(DefaultLifecycleExecutor.java:475)
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
  ltLifecycleExecutor.java:454)
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
  dleFailures(DefaultLifecycleExecutor.java:306)
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
  ts(DefaultLifecycleExecutor.java:273)
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
  fecycleExecutor.java:140)
  at
 org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
  at
 org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
  at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
  at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  java:39)
  at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  sorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at
 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
  at
org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
  at
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
  at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
  Caused by: org.apache.maven.plugin.PluginManagerException: Unable to
 find the mo
  jo 'org.apache.maven.plugins:maven-surefire-plugin:2.2:test' in the
 plugin 'org.
  apache.maven.plugins:maven-surefire-plugin'
  at
 org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul
  tPluginManager.java:533)
  at
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
  nManager.java:390)
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
  ultLifecycleExecutor.java:534)
  ... 16 more
  Caused by:
 org.codehaus.plexus.component.repository.exception.ComponentLookupExc
  eption: Unable to lookup component
 'org.apache.maven.plugin.Mojoorg.apache.maven
  .plugins:maven-surefire-plugin:2.2:test', it could not be created
  at
 org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
  ner.java:335)
  at
 org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
  ner.java:440

Re: Trouble with Surefire plugin

2006-06-01 Thread Franz Fehringer
Only 4.0 can be used, because 
http://www.ibiblio.org/maven2/junit/junit/4.1/ is empty.

Who can correct this?

Greetings

Franz

Carlos Sanchez schrieb:

surefire plugin 2.2 allows you to use junit 4.x and testng

On 5/31/06, Sharma, Jaikumar [EMAIL PROTECTED] wrote:

Thanks Carloss. I am not sure, if it means that it not is possible to
use Junit 4.0/4.1 using Maven for running tests ?
Regards, Jaikumar

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos
Sanchez
Sent: Thursday, June 01, 2006 11:36 AM
To: Maven Users List
Subject: Re: Trouble with Surefire plugin


3.8.1

On 5/31/06, Sharma, Jaikumar [EMAIL PROTECTED] wrote:
 Surefire plugin version 2.1.3 has binding to Junit 4.0/4.1 or still
 3.8.1 ?

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
 Carlos Sanchez
 Sent: Thursday, June 01, 2006 11:19 AM
 To: Maven Users List; Sean McNamara
 Subject: Re: Trouble with Surefire plugin


 Try setting a 2.1.3 version for the surefire plugin. You can later try

 with 2.2 and see what's the problem.

 On 5/31/06, Sean McNamara [EMAIL PROTECTED] wrote:
  I'm running into a build error with a project that was previously
  working properly, an am wondering if anyone has any idea how to fix
  this.  It's fairly critical I get this project rebuilt so any help
  is appreciated.
 
  Thanks!
 
  
  --
  
 
 
  [INFO]
 
 --
 --
  [ERROR] BUILD ERROR
  [INFO]
 --
 --
  [INFO] Internal error in the plugin manager executing goal
 'org.apache.maven.plu
  gins:maven-surefire-plugin:2.2:test': Unable to find the mojo
 'org.apache.maven.
  plugins:maven-surefire-plugin:2.2:test' in the plugin
 'org.apache.maven.plugins:
  maven-surefire-plugin'
  org/apache/maven/surefire/booter/SurefireExecutionException
  [INFO]
 --
 --
  [INFO] Trace
  org.apache.maven.lifecycle.LifecycleExecutionException: Internal
  error
 in the pl
  ugin manager executing goal
 'org.apache.maven.plugins:maven-surefire-plugin:2.2:
  test': Unable to find the mojo
 'org.apache.maven.plugins:maven-surefire-plugin:2
  .2:test' in the plugin
 'org.apache.maven.plugins:maven-surefire-plugin'
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
  ultLifecycleExecutor.java:538)
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
  fecycle(DefaultLifecycleExecutor.java:475)
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
  ltLifecycleExecutor.java:454)
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
  dleFailures(DefaultLifecycleExecutor.java:306)
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
  ts(DefaultLifecycleExecutor.java:273)
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
  fecycleExecutor.java:140)
  at
 org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
  at
 org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
  at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
  at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  java:39)
  at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  sorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at
 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
  at
org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
  at
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
  at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
  Caused by: org.apache.maven.plugin.PluginManagerException: Unable to
 find the mo
  jo 'org.apache.maven.plugins:maven-surefire-plugin:2.2:test' in the
 plugin 'org.
  apache.maven.plugins:maven-surefire-plugin'
  at
 org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul
  tPluginManager.java:533)
  at
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
  nManager.java:390)
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
  ultLifecycleExecutor.java:534)
  ... 16 more
  Caused by:
 org.codehaus.plexus.component.repository.exception.ComponentLookupExc
  eption: Unable to lookup component
 'org.apache.maven.plugin.Mojoorg.apache.maven
  .plugins:maven-surefire-plugin:2.2:test', it could not be created
  at
 org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
  ner.java

Re: Trouble with Surefire plugin

2006-06-01 Thread Carlos Sanchez

http://maven.apache.org/guides/mini/guide-ibiblio-upload.html

On 6/1/06, Franz Fehringer [EMAIL PROTECTED] wrote:

Only 4.0 can be used, because
http://www.ibiblio.org/maven2/junit/junit/4.1/ is empty.
Who can correct this?

Greetings

Franz

Carlos Sanchez schrieb:
 surefire plugin 2.2 allows you to use junit 4.x and testng

 On 5/31/06, Sharma, Jaikumar [EMAIL PROTECTED] wrote:
 Thanks Carloss. I am not sure, if it means that it not is possible to
 use Junit 4.0/4.1 using Maven for running tests ?
 Regards, Jaikumar

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos
 Sanchez
 Sent: Thursday, June 01, 2006 11:36 AM
 To: Maven Users List
 Subject: Re: Trouble with Surefire plugin


 3.8.1

 On 5/31/06, Sharma, Jaikumar [EMAIL PROTECTED] wrote:
  Surefire plugin version 2.1.3 has binding to Junit 4.0/4.1 or still
  3.8.1 ?
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
  Carlos Sanchez
  Sent: Thursday, June 01, 2006 11:19 AM
  To: Maven Users List; Sean McNamara
  Subject: Re: Trouble with Surefire plugin
 
 
  Try setting a 2.1.3 version for the surefire plugin. You can later try

  with 2.2 and see what's the problem.
 
  On 5/31/06, Sean McNamara [EMAIL PROTECTED] wrote:
   I'm running into a build error with a project that was previously
   working properly, an am wondering if anyone has any idea how to fix
   this.  It's fairly critical I get this project rebuilt so any help
   is appreciated.
  
   Thanks!
  
   
   --
   
  
  
   [INFO]
  
  --
  --
   [ERROR] BUILD ERROR
   [INFO]
  --
  --
   [INFO] Internal error in the plugin manager executing goal
  'org.apache.maven.plu
   gins:maven-surefire-plugin:2.2:test': Unable to find the mojo
  'org.apache.maven.
   plugins:maven-surefire-plugin:2.2:test' in the plugin
  'org.apache.maven.plugins:
   maven-surefire-plugin'
   org/apache/maven/surefire/booter/SurefireExecutionException
   [INFO]
  --
  --
   [INFO] Trace
   org.apache.maven.lifecycle.LifecycleExecutionException: Internal
   error
  in the pl
   ugin manager executing goal
  'org.apache.maven.plugins:maven-surefire-plugin:2.2:
   test': Unable to find the mojo
  'org.apache.maven.plugins:maven-surefire-plugin:2
   .2:test' in the plugin
  'org.apache.maven.plugins:maven-surefire-plugin'
   at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
   ultLifecycleExecutor.java:538)
   at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
   fecycle(DefaultLifecycleExecutor.java:475)
   at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
   ltLifecycleExecutor.java:454)
   at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
   dleFailures(DefaultLifecycleExecutor.java:306)
   at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
   ts(DefaultLifecycleExecutor.java:273)
   at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
   fecycleExecutor.java:140)
   at
  org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
   at
  org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
 Method)
   at
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
   java:39)
   at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
   sorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at
  org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
   at
 org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
   at
  org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
   Caused by: org.apache.maven.plugin.PluginManagerException: Unable to
  find the mo
   jo 'org.apache.maven.plugins:maven-surefire-plugin:2.2:test' in the
  plugin 'org.
   apache.maven.plugins:maven-surefire-plugin'
   at
  org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul
   tPluginManager.java:533)
   at
  org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
   nManager.java:390)
   at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
   ultLifecycleExecutor.java:534)
   ... 16 more
   Caused by:
  org.codehaus.plexus.component.repository.exception.ComponentLookupExc
   eption

Trouble with Surefire plugin

2006-05-31 Thread Sean McNamara
I'm running into a build error with a project that was previously working 
properly, an am wondering if anyone has any idea how to fix this.  It's fairly 
critical I get this project rebuilt so any help is appreciated.
 
Thanks!
 
--
 
 
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plu
gins:maven-surefire-plugin:2.2:test': Unable to find the mojo 'org.apache.maven.
plugins:maven-surefire-plugin:2.2:test' in the plugin 'org.apache.maven.plugins:
maven-surefire-plugin'
org/apache/maven/surefire/booter/SurefireExecutionException
[INFO] 
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the pl
ugin manager executing goal 'org.apache.maven.plugins:maven-surefire-plugin:2.2:
test': Unable to find the mojo 'org.apache.maven.plugins:maven-surefire-plugin:2
.2:test' in the plugin 'org.apache.maven.plugins:maven-surefire-plugin'
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:538)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:475)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:454)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:306)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:273)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.PluginManagerException: Unable to find the mo
jo 'org.apache.maven.plugins:maven-surefire-plugin:2.2:test' in the plugin 'org.
apache.maven.plugins:maven-surefire-plugin'
at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul
tPluginManager.java:533)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:390)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:534)
... 16 more
Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupExc
eption: Unable to lookup component 'org.apache.maven.plugin.Mojoorg.apache.maven
.plugins:maven-surefire-plugin:2.2:test', it could not be created
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
ner.java:335)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
ner.java:440)
at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul
tPluginManager.java:524)
... 18 more
Caused by: org.codehaus.plexus.component.factory.ComponentInstantiationException
: Could not instanciate component: role: 'null', implementation: 'org.apache.mav
en.plugin.surefire.SurefirePlugin'
at org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeE
xception(JavaComponentFactory.java:77)
at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newIn
stance(JavaComponentFactory.java:62)
at org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(De
faultPlexusContainer.java:1464)
at org.codehaus.plexus.component.manager.AbstractComponentManager.create
ComponentInstance(AbstractComponentManager.java:93)
at org.codehaus.plexus.component.manager.PerLookupComponentManager.getCo
mponent(PerLookupComponentManager.java:48)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
ner.java:331)
... 20 more
Caused by: java.lang.NoClassDefFoundError: org/apache/maven/surefire/booter/Sure
fireExecutionException
at java.lang.Class.getDeclaredConstructors0(Native Method)
 

Re: Trouble with Surefire plugin

2006-05-31 Thread Carlos Sanchez

Try setting a 2.1.3 version for the surefire plugin. You can later try
with 2.2 and see what's the problem.

On 5/31/06, Sean McNamara [EMAIL PROTECTED] wrote:

I'm running into a build error with a project that was previously working 
properly, an am wondering if anyone has any idea how to fix this.  It's fairly 
critical I get this project rebuilt so any help is appreciated.

Thanks!

--


[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plu
gins:maven-surefire-plugin:2.2:test': Unable to find the mojo 'org.apache.maven.
plugins:maven-surefire-plugin:2.2:test' in the plugin 'org.apache.maven.plugins:
maven-surefire-plugin'
org/apache/maven/surefire/booter/SurefireExecutionException
[INFO] 
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the pl
ugin manager executing goal 'org.apache.maven.plugins:maven-surefire-plugin:2.2:
test': Unable to find the mojo 'org.apache.maven.plugins:maven-surefire-plugin:2
.2:test' in the plugin 'org.apache.maven.plugins:maven-surefire-plugin'
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:538)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:475)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:454)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:306)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:273)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.PluginManagerException: Unable to find the mo
jo 'org.apache.maven.plugins:maven-surefire-plugin:2.2:test' in the plugin 'org.
apache.maven.plugins:maven-surefire-plugin'
at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul
tPluginManager.java:533)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:390)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:534)
... 16 more
Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupExc
eption: Unable to lookup component 'org.apache.maven.plugin.Mojoorg.apache.maven
.plugins:maven-surefire-plugin:2.2:test', it could not be created
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
ner.java:335)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
ner.java:440)
at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul
tPluginManager.java:524)
... 18 more
Caused by: org.codehaus.plexus.component.factory.ComponentInstantiationException
: Could not instanciate component: role: 'null', implementation: 'org.apache.mav
en.plugin.surefire.SurefirePlugin'
at org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeE
xception(JavaComponentFactory.java:77)
at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newIn
stance(JavaComponentFactory.java:62)
at org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(De
faultPlexusContainer.java:1464)
at org.codehaus.plexus.component.manager.AbstractComponentManager.create
ComponentInstance(AbstractComponentManager.java:93)
at org.codehaus.plexus.component.manager.PerLookupComponentManager.getCo
mponent(PerLookupComponentManager.java:48)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
ner.java:331)
... 20 more
Caused by: 

RE: Trouble with Surefire plugin

2006-05-31 Thread Sharma, Jaikumar
Surefire plugin version 2.1.3 has binding to Junit 4.0/4.1 or still
3.8.1 ? 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos
Sanchez
Sent: Thursday, June 01, 2006 11:19 AM
To: Maven Users List; Sean McNamara
Subject: Re: Trouble with Surefire plugin


Try setting a 2.1.3 version for the surefire plugin. You can later try
with 2.2 and see what's the problem.

On 5/31/06, Sean McNamara [EMAIL PROTECTED] wrote:
 I'm running into a build error with a project that was previously 
 working properly, an am wondering if anyone has any idea how to fix 
 this.  It's fairly critical I get this project rebuilt so any help is 
 appreciated.

 Thanks!

 --
 


 [INFO] 


 [ERROR] BUILD ERROR
 [INFO]

 [INFO] Internal error in the plugin manager executing goal
'org.apache.maven.plu
 gins:maven-surefire-plugin:2.2:test': Unable to find the mojo
'org.apache.maven.
 plugins:maven-surefire-plugin:2.2:test' in the plugin
'org.apache.maven.plugins:
 maven-surefire-plugin'
 org/apache/maven/surefire/booter/SurefireExecutionException
 [INFO]

 [INFO] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: Internal error
in the pl
 ugin manager executing goal
'org.apache.maven.plugins:maven-surefire-plugin:2.2:
 test': Unable to find the mojo
'org.apache.maven.plugins:maven-surefire-plugin:2
 .2:test' in the plugin
'org.apache.maven.plugins:maven-surefire-plugin'
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
 ultLifecycleExecutor.java:538)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
 fecycle(DefaultLifecycleExecutor.java:475)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
 ltLifecycleExecutor.java:454)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
 dleFailures(DefaultLifecycleExecutor.java:306)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
 ts(DefaultLifecycleExecutor.java:273)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
 fecycleExecutor.java:140)
 at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
 at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
 java:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
 at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
 at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
 at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
 Caused by: org.apache.maven.plugin.PluginManagerException: Unable to
find the mo
 jo 'org.apache.maven.plugins:maven-surefire-plugin:2.2:test' in the
plugin 'org.
 apache.maven.plugins:maven-surefire-plugin'
 at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul
 tPluginManager.java:533)
 at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
 nManager.java:390)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
 ultLifecycleExecutor.java:534)
 ... 16 more
 Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLookupExc
 eption: Unable to lookup component
'org.apache.maven.plugin.Mojoorg.apache.maven
 .plugins:maven-surefire-plugin:2.2:test', it could not be created
 at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
 ner.java:335)
 at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
 ner.java:440)
 at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul
 tPluginManager.java:524)
 ... 18 more
 Caused by:
org.codehaus.plexus.component.factory.ComponentInstantiationException
 : Could not instanciate component: role: 'null', implementation:
'org.apache.mav
 en.plugin.surefire.SurefirePlugin'
 at
org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeE
 xception(JavaComponentFactory.java:77)
 at
org.codehaus.plexus.component.factory.java.JavaComponentFactory.newIn
 stance(JavaComponentFactory.java:62)
 at
org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(De
 faultPlexusContainer.java:1464