Re: Surefire forking using junit 3 even with junit 4 dependency?

2009-04-08 Thread Jörg Schaible
Hi Tim,

Tim wrote at Mittwoch, 8. April 2009 14:05:

 Unfortunately not. It seems however that surefire is actually giving the
 wrong stacktrace.
 When I run this via the cli using the classpath that surefire says it is
 using I get a different exception.
 It seems that a dependency was missing at that point. When I added it, I
 got a new exception instead so it seems to be moving along.

are you running surefire in a multi project where some modules use still
JUnit 3 and the others JUnit 4? Remember, that a plugin is always loaded
only once. So if you add for one module JUnit 4 as dep to the plugin, it
does not help if the plugin has already be loaded elsewhere ...

- Jörg


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Surefire forking using junit 3 even with junit 4 dependency?

2009-04-08 Thread Tim
Unfortunately not. It seems however that surefire is actually giving the
wrong stacktrace.
When I run this via the cli using the classpath that surefire says it is
using I get a different exception.
It seems that a dependency was missing at that point. When I added it, I got
a new exception instead so it seems to be moving along.

On Tue, Apr 7, 2009 at 7:54 PM, Brett Porter br...@apache.org wrote:

 Is there more of a trace supplied from within Surefire? Have you searched
 to see if anyone else encountered this problem?

 Thanks,
 Brett



 On 08/04/2009, at 10:47 AM, Tim wrote:

  yea the tmp files look fine. In fact I see the correct junit jar version
 and
 all the dependency jars correctly in them.Still, I have no clue why it
 can't
 find a test class directly in it's classpath.

 On Tue, Apr 7, 2009 at 7:35 PM, Brett Porter br...@apache.org wrote:

  That sounds like a separate problem, however I can't tell what is wrong
 from the info here. Are you able to check the surefire temporary files to
 see if the arguments look reasonable?

 - Brett


 On 08/04/2009, at 10:27 AM, Tim wrote:

 It doesn't show the junit 3 jar but has the same problem:


 Forking command line: /bin/sh -c cd /home/tich/data/bps_trunk/bps-api 
 /usr/lib/jvm/jdk1.6.0_13/jre/bin/java -jar
 /tmp/surefirebooter2137625950913122347.jar
 /tmp/surefire4278370938049229367tmp /tmp/surefire3389360321643705255tmp
 org.apache.maven.surefire.booter.SurefireExecutionException:
 com.bps.test.PricingTestSetTestCase; nested exception is
 java.lang.NoClassDefFoundError: com.bps.test.PricingTestSetTestCase

 find -name PricingTestSetTestCase.class
 ./target/test-classes/com/bps/test/PricingTestSetTestCase.class

 On Tue, Apr 7, 2009 at 7:18 PM, Brett Porter br...@apache.org wrote:

 Can you try the latest version of the surefire plugin? (v2.4.3)



 On 08/04/2009, at 10:15 AM, Tim wrote:

 Yea. It's showing up as [INFO]junit:junit:jar:4.4:test with no
 version

  3
 in the list.This is with maven 2.1.0 AND 2.0.10 btw.
 The reason that I noticed this was because I have a base test class in
 a
 dependency that surefire was not able to find. But compilation was
 fine.

 On Tue, Apr 7, 2009 at 6:26 PM, Brett Porter br...@apache.org
 wrote:

 have you confirmed that dependency:list only shows junit 4?



 On 08/04/2009, at 9:18 AM, Tim wrote:

 Why do I see


  Forking command line: /usr/lib/jvm/jdk1.6.0_13/jre/bin/java
 -classpath




 /home/tich/.m2/repository/org/apache/maven/surefire/surefire-booter/2.3/surefire-booter-2.3.jar:/home/tich/.m2/repository/org/apache/maven/surefire/surefire-api/2.3/surefire-api-2.3.jar:/home/tich/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar:/home/tich/.m2/repository/commons-lang/commons-lang/2.1/commons-lang-2.1.jar:/home/tich/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar:/home/tich/.m2/repository/org/codehaus/plexus/plexus-container-default/1.0-alpha-8/plexus-container-default-1.0-alpha-8.jar:/home/tich/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar:/home/tich/.m2/repository/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.jar
 org.apache.maven.surefire.booter.SurefireBooter /tmp/surefire72
 Even when I am using junit 4.4 as a dependency?

 --

 Emo Philips 
 http://www.brainyquote.com/quotes/authors/e/emo_philips.html


  - A computer once beat me at chess, but it was no match for me at

  kick
 boxing.



 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




  --

 Fred Allen 
 http://www.brainyquote.com/quotes/authors/f/fred_allen.html


  -
 Washington is no place for a good actor. The competition from bad
 actors
 is
 too great.



 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




 --

 George Burns 
 http://www.brainyquote.com/quotes/authors/g/george_burns.html
 - I spent a year in that town, one Sunday.



 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




 --

 Fred Allen http://www.brainyquote.com/quotes/authors/f/fred_allen.html
  -
 Washington is no place for a good actor. The competition from bad actors
 is
 too great.



 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




-- 

Andy Warhol http://www.brainyquote.com/quotes/authors/a/andy_warhol.html
- I am a deeply superficial person.


Re: Surefire forking using junit 3 even with junit 4 dependency?

2009-04-08 Thread Tim
That's good to know :)
I can double check but that is probably not what is happening here since it
is defined in the parent pom as junit 4.

On Wed, Apr 8, 2009 at 7:15 AM, Jörg Schaible joerg.schai...@gmx.de wrote:

 Hi Tim,

 Tim wrote at Mittwoch, 8. April 2009 14:05:

  Unfortunately not. It seems however that surefire is actually giving the
  wrong stacktrace.
  When I run this via the cli using the classpath that surefire says it is
  using I get a different exception.
  It seems that a dependency was missing at that point. When I added it, I
  got a new exception instead so it seems to be moving along.

 are you running surefire in a multi project where some modules use still
 JUnit 3 and the others JUnit 4? Remember, that a plugin is always loaded
 only once. So if you add for one module JUnit 4 as dep to the plugin, it
 does not help if the plugin has already be loaded elsewhere ...

 - Jörg


 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




-- 

Andy Warhol http://www.brainyquote.com/quotes/authors/a/andy_warhol.html
- I am a deeply superficial person.


Re: Surefire forking using junit 3 even with junit 4 dependency?

2009-04-08 Thread Tim
My coworker just found out that version 2.0 of surefire shows the correct
error msgs.So it seems that error handling was changed between them and now
it swallows the correct exceptions :-/
That would have saved a lot of time debugging this lol.

On Wed, Apr 8, 2009 at 7:45 AM, Tim che...@gmail.com wrote:

 That's good to know :)
 I can double check but that is probably not what is happening here since it
 is defined in the parent pom as junit 4.


 On Wed, Apr 8, 2009 at 7:15 AM, Jörg Schaible joerg.schai...@gmx.dewrote:

 Hi Tim,

 Tim wrote at Mittwoch, 8. April 2009 14:05:

  Unfortunately not. It seems however that surefire is actually giving the
  wrong stacktrace.
  When I run this via the cli using the classpath that surefire says it is
  using I get a different exception.
  It seems that a dependency was missing at that point. When I added it, I
  got a new exception instead so it seems to be moving along.

 are you running surefire in a multi project where some modules use still
 JUnit 3 and the others JUnit 4? Remember, that a plugin is always loaded
 only once. So if you add for one module JUnit 4 as dep to the plugin, it
 does not help if the plugin has already be loaded elsewhere ...

 - Jörg


 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




 --

 Andy Warhol http://www.brainyquote.com/quotes/authors/a/andy_warhol.html - 
 I am a deeply superficial person.




-- 

Fred Allen http://www.brainyquote.com/quotes/authors/f/fred_allen.html  -
Washington is no place for a good actor. The competition from bad actors is
too great.


Re: Surefire forking using junit 3 even with junit 4 dependency?

2009-04-07 Thread Brett Porter

have you confirmed that dependency:list only shows junit 4?

On 08/04/2009, at 9:18 AM, Tim wrote:


Why do I see

Forking command line: /usr/lib/jvm/jdk1.6.0_13/jre/bin/java -classpath
/home/tich/.m2/repository/org/apache/maven/surefire/surefire-booter/ 
2.3/surefire-booter-2.3.jar:/home/tich/.m2/repository/org/apache/ 
maven/surefire/surefire-api/2.3/surefire-api-2.3.jar:/home/tich/.m2/ 
repository/org/codehaus/plexus/plexus-utils/1.1/plexus- 
utils-1.1.jar:/home/tich/.m2/repository/commons-lang/commons-lang/ 
2.1/commons-lang-2.1.jar:/home/tich/.m2/repository/org/codehaus/ 
plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar:/ 
home/tich/.m2/repository/org/codehaus/plexus/plexus-container- 
default/1.0-alpha-8/plexus-container-default-1.0-alpha-8.jar:/home/ 
tich/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar:/home/tich/.m2/ 
repository/classworlds/classworlds/1.1-alpha-2/classworlds-1.1- 
alpha-2.jar

org.apache.maven.surefire.booter.SurefireBooter /tmp/surefire72
Even when I am using junit 4.4 as a dependency?

--

Emo Philips http://www.brainyquote.com/quotes/authors/e/emo_philips.html 


- A computer once beat me at chess, but it was no match for me at
kick
boxing.



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Surefire forking using junit 3 even with junit 4 dependency?

2009-04-07 Thread Tim
Yea. It's showing up as [INFO]junit:junit:jar:4.4:test with no version 3
in the list.This is with maven 2.1.0 AND 2.0.10 btw.
The reason that I noticed this was because I have a base test class in a
dependency that surefire was not able to find. But compilation was fine.

On Tue, Apr 7, 2009 at 6:26 PM, Brett Porter br...@apache.org wrote:

 have you confirmed that dependency:list only shows junit 4?


 On 08/04/2009, at 9:18 AM, Tim wrote:

  Why do I see

 Forking command line: /usr/lib/jvm/jdk1.6.0_13/jre/bin/java -classpath

 /home/tich/.m2/repository/org/apache/maven/surefire/surefire-booter/2.3/surefire-booter-2.3.jar:/home/tich/.m2/repository/org/apache/maven/surefire/surefire-api/2.3/surefire-api-2.3.jar:/home/tich/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar:/home/tich/.m2/repository/commons-lang/commons-lang/2.1/commons-lang-2.1.jar:/home/tich/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar:/home/tich/.m2/repository/org/codehaus/plexus/plexus-container-default/1.0-alpha-8/plexus-container-default-1.0-alpha-8.jar:/home/tich/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar:/home/tich/.m2/repository/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.jar
 org.apache.maven.surefire.booter.SurefireBooter /tmp/surefire72
 Even when I am using junit 4.4 as a dependency?

 --

 Emo Philips http://www.brainyquote.com/quotes/authors/e/emo_philips.html
 
 - A computer once beat me at chess, but it was no match for me at
 kick
 boxing.



 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




-- 

Fred Allen http://www.brainyquote.com/quotes/authors/f/fred_allen.html  -
Washington is no place for a good actor. The competition from bad actors is
too great.


Re: Surefire forking using junit 3 even with junit 4 dependency?

2009-04-07 Thread Brett Porter

Can you try the latest version of the surefire plugin? (v2.4.3)

On 08/04/2009, at 10:15 AM, Tim wrote:

Yea. It's showing up as [INFO]junit:junit:jar:4.4:test with no  
version 3

in the list.This is with maven 2.1.0 AND 2.0.10 btw.
The reason that I noticed this was because I have a base test class  
in a
dependency that surefire was not able to find. But compilation was  
fine.


On Tue, Apr 7, 2009 at 6:26 PM, Brett Porter br...@apache.org wrote:


have you confirmed that dependency:list only shows junit 4?


On 08/04/2009, at 9:18 AM, Tim wrote:

Why do I see


Forking command line: /usr/lib/jvm/jdk1.6.0_13/jre/bin/java - 
classpath


/home/tich/.m2/repository/org/apache/maven/surefire/surefire- 
booter/2.3/surefire-booter-2.3.jar:/home/tich/.m2/repository/org/ 
apache/maven/surefire/surefire-api/2.3/surefire-api-2.3.jar:/home/ 
tich/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus- 
utils-1.1.jar:/home/tich/.m2/repository/commons-lang/commons-lang/ 
2.1/commons-lang-2.1.jar:/home/tich/.m2/repository/org/codehaus/ 
plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0- 
alpha-7.jar:/home/tich/.m2/repository/org/codehaus/plexus/plexus- 
container-default/1.0-alpha-8/plexus-container-default-1.0- 
alpha-8.jar:/home/tich/.m2/repository/junit/junit/3.8.1/ 
junit-3.8.1.jar:/home/tich/.m2/repository/classworlds/classworlds/ 
1.1-alpha-2/classworlds-1.1-alpha-2.jar

org.apache.maven.surefire.booter.SurefireBooter /tmp/surefire72
Even when I am using junit 4.4 as a dependency?

--

Emo Philips http://www.brainyquote.com/quotes/authors/e/emo_philips.html



- A computer once beat me at chess, but it was no match for me at
kick
boxing.




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org





--

Fred Allen http://www.brainyquote.com/quotes/authors/f/fred_allen.html 
  -
Washington is no place for a good actor. The competition from bad  
actors is

too great.



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Surefire forking using junit 3 even with junit 4 dependency?

2009-04-07 Thread Tim
It doesn't show the junit 3 jar but has the same problem:

Forking command line: /bin/sh -c cd /home/tich/data/bps_trunk/bps-api 
/usr/lib/jvm/jdk1.6.0_13/jre/bin/java -jar
/tmp/surefirebooter2137625950913122347.jar
/tmp/surefire4278370938049229367tmp /tmp/surefire3389360321643705255tmp
org.apache.maven.surefire.booter.SurefireExecutionException:
com.bps.test.PricingTestSetTestCase; nested exception is
java.lang.NoClassDefFoundError: com.bps.test.PricingTestSetTestCase

find -name PricingTestSetTestCase.class
./target/test-classes/com/bps/test/PricingTestSetTestCase.class

On Tue, Apr 7, 2009 at 7:18 PM, Brett Porter br...@apache.org wrote:

 Can you try the latest version of the surefire plugin? (v2.4.3)


 On 08/04/2009, at 10:15 AM, Tim wrote:

  Yea. It's showing up as [INFO]junit:junit:jar:4.4:test with no version
 3
 in the list.This is with maven 2.1.0 AND 2.0.10 btw.
 The reason that I noticed this was because I have a base test class in a
 dependency that surefire was not able to find. But compilation was fine.

 On Tue, Apr 7, 2009 at 6:26 PM, Brett Porter br...@apache.org wrote:

  have you confirmed that dependency:list only shows junit 4?


 On 08/04/2009, at 9:18 AM, Tim wrote:

 Why do I see


 Forking command line: /usr/lib/jvm/jdk1.6.0_13/jre/bin/java -classpath


 /home/tich/.m2/repository/org/apache/maven/surefire/surefire-booter/2.3/surefire-booter-2.3.jar:/home/tich/.m2/repository/org/apache/maven/surefire/surefire-api/2.3/surefire-api-2.3.jar:/home/tich/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar:/home/tich/.m2/repository/commons-lang/commons-lang/2.1/commons-lang-2.1.jar:/home/tich/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar:/home/tich/.m2/repository/org/codehaus/plexus/plexus-container-default/1.0-alpha-8/plexus-container-default-1.0-alpha-8.jar:/home/tich/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar:/home/tich/.m2/repository/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.jar
 org.apache.maven.surefire.booter.SurefireBooter /tmp/surefire72
 Even when I am using junit 4.4 as a dependency?

 --

 Emo Philips 
 http://www.brainyquote.com/quotes/authors/e/emo_philips.html


  - A computer once beat me at chess, but it was no match for me at
 kick
 boxing.



 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




 --

 Fred Allen http://www.brainyquote.com/quotes/authors/f/fred_allen.html
  -
 Washington is no place for a good actor. The competition from bad actors
 is
 too great.



 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




-- 

George Burns http://www.brainyquote.com/quotes/authors/g/george_burns.html
- I spent a year in that town, one Sunday.


Re: Surefire forking using junit 3 even with junit 4 dependency?

2009-04-07 Thread Brett Porter
That sounds like a separate problem, however I can't tell what is  
wrong from the info here. Are you able to check the surefire temporary  
files to see if the arguments look reasonable?


- Brett

On 08/04/2009, at 10:27 AM, Tim wrote:


It doesn't show the junit 3 jar but has the same problem:

Forking command line: /bin/sh -c cd /home/tich/data/bps_trunk/bps- 
api 

/usr/lib/jvm/jdk1.6.0_13/jre/bin/java -jar
/tmp/surefirebooter2137625950913122347.jar
/tmp/surefire4278370938049229367tmp /tmp/ 
surefire3389360321643705255tmp

org.apache.maven.surefire.booter.SurefireExecutionException:
com.bps.test.PricingTestSetTestCase; nested exception is
java.lang.NoClassDefFoundError: com.bps.test.PricingTestSetTestCase

find -name PricingTestSetTestCase.class
./target/test-classes/com/bps/test/PricingTestSetTestCase.class

On Tue, Apr 7, 2009 at 7:18 PM, Brett Porter br...@apache.org wrote:


Can you try the latest version of the surefire plugin? (v2.4.3)


On 08/04/2009, at 10:15 AM, Tim wrote:

Yea. It's showing up as [INFO]junit:junit:jar:4.4:test with no  
version

3
in the list.This is with maven 2.1.0 AND 2.0.10 btw.
The reason that I noticed this was because I have a base test  
class in a
dependency that surefire was not able to find. But compilation was  
fine.


On Tue, Apr 7, 2009 at 6:26 PM, Brett Porter br...@apache.org  
wrote:


have you confirmed that dependency:list only shows junit 4?



On 08/04/2009, at 9:18 AM, Tim wrote:

Why do I see



Forking command line: /usr/lib/jvm/jdk1.6.0_13/jre/bin/java - 
classpath



/home/tich/.m2/repository/org/apache/maven/surefire/surefire- 
booter/2.3/surefire-booter-2.3.jar:/home/tich/.m2/repository/org/ 
apache/maven/surefire/surefire-api/2.3/surefire-api-2.3.jar:/ 
home/tich/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/ 
plexus-utils-1.1.jar:/home/tich/.m2/repository/commons-lang/ 
commons-lang/2.1/commons-lang-2.1.jar:/home/tich/.m2/repository/ 
org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus- 
archiver-1.0-alpha-7.jar:/home/tich/.m2/repository/org/codehaus/ 
plexus/plexus-container-default/1.0-alpha-8/plexus-container- 
default-1.0-alpha-8.jar:/home/tich/.m2/repository/junit/junit/ 
3.8.1/junit-3.8.1.jar:/home/tich/.m2/repository/classworlds/ 
classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.jar

org.apache.maven.surefire.booter.SurefireBooter /tmp/surefire72
Even when I am using junit 4.4 as a dependency?

--

Emo Philips 
http://www.brainyquote.com/quotes/authors/e/emo_philips.html



- A computer once beat me at chess, but it was no match for me  
at

kick
boxing.




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org





--

Fred Allen http://www.brainyquote.com/quotes/authors/f/fred_allen.html 


-
Washington is no place for a good actor. The competition from bad  
actors

is
too great.




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org





--

George Burns http://www.brainyquote.com/quotes/authors/g/george_burns.html 


- I spent a year in that town, one Sunday.



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Surefire forking using junit 3 even with junit 4 dependency?

2009-04-07 Thread Tim
yea the tmp files look fine. In fact I see the correct junit jar version and
all the dependency jars correctly in them.Still, I have no clue why it can't
find a test class directly in it's classpath.

On Tue, Apr 7, 2009 at 7:35 PM, Brett Porter br...@apache.org wrote:

 That sounds like a separate problem, however I can't tell what is wrong
 from the info here. Are you able to check the surefire temporary files to
 see if the arguments look reasonable?

 - Brett


 On 08/04/2009, at 10:27 AM, Tim wrote:

  It doesn't show the junit 3 jar but has the same problem:

 Forking command line: /bin/sh -c cd /home/tich/data/bps_trunk/bps-api 
 /usr/lib/jvm/jdk1.6.0_13/jre/bin/java -jar
 /tmp/surefirebooter2137625950913122347.jar
 /tmp/surefire4278370938049229367tmp /tmp/surefire3389360321643705255tmp
 org.apache.maven.surefire.booter.SurefireExecutionException:
 com.bps.test.PricingTestSetTestCase; nested exception is
 java.lang.NoClassDefFoundError: com.bps.test.PricingTestSetTestCase

 find -name PricingTestSetTestCase.class
 ./target/test-classes/com/bps/test/PricingTestSetTestCase.class

 On Tue, Apr 7, 2009 at 7:18 PM, Brett Porter br...@apache.org wrote:

  Can you try the latest version of the surefire plugin? (v2.4.3)


 On 08/04/2009, at 10:15 AM, Tim wrote:

 Yea. It's showing up as [INFO]junit:junit:jar:4.4:test with no
 version

 3
 in the list.This is with maven 2.1.0 AND 2.0.10 btw.
 The reason that I noticed this was because I have a base test class in a
 dependency that surefire was not able to find. But compilation was fine.

 On Tue, Apr 7, 2009 at 6:26 PM, Brett Porter br...@apache.org wrote:

 have you confirmed that dependency:list only shows junit 4?



 On 08/04/2009, at 9:18 AM, Tim wrote:

 Why do I see


 Forking command line: /usr/lib/jvm/jdk1.6.0_13/jre/bin/java -classpath



 /home/tich/.m2/repository/org/apache/maven/surefire/surefire-booter/2.3/surefire-booter-2.3.jar:/home/tich/.m2/repository/org/apache/maven/surefire/surefire-api/2.3/surefire-api-2.3.jar:/home/tich/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar:/home/tich/.m2/repository/commons-lang/commons-lang/2.1/commons-lang-2.1.jar:/home/tich/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar:/home/tich/.m2/repository/org/codehaus/plexus/plexus-container-default/1.0-alpha-8/plexus-container-default-1.0-alpha-8.jar:/home/tich/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar:/home/tich/.m2/repository/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.jar
 org.apache.maven.surefire.booter.SurefireBooter /tmp/surefire72
 Even when I am using junit 4.4 as a dependency?

 --

 Emo Philips 
 http://www.brainyquote.com/quotes/authors/e/emo_philips.html


 - A computer once beat me at chess, but it was no match for me at

 kick
 boxing.



 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




 --

 Fred Allen http://www.brainyquote.com/quotes/authors/f/fred_allen.html
 
 -
 Washington is no place for a good actor. The competition from bad
 actors
 is
 too great.



 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




 --

 George Burns 
 http://www.brainyquote.com/quotes/authors/g/george_burns.html
 - I spent a year in that town, one Sunday.



 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




-- 

Fred Allen http://www.brainyquote.com/quotes/authors/f/fred_allen.html  -
Washington is no place for a good actor. The competition from bad actors is
too great.


Re: Surefire forking using junit 3 even with junit 4 dependency?

2009-04-07 Thread Brett Porter
Is there more of a trace supplied from within Surefire? Have you  
searched to see if anyone else encountered this problem?


Thanks,
Brett


On 08/04/2009, at 10:47 AM, Tim wrote:

yea the tmp files look fine. In fact I see the correct junit jar  
version and
all the dependency jars correctly in them.Still, I have no clue why  
it can't

find a test class directly in it's classpath.

On Tue, Apr 7, 2009 at 7:35 PM, Brett Porter br...@apache.org wrote:

That sounds like a separate problem, however I can't tell what is  
wrong
from the info here. Are you able to check the surefire temporary  
files to

see if the arguments look reasonable?

- Brett


On 08/04/2009, at 10:27 AM, Tim wrote:

It doesn't show the junit 3 jar but has the same problem:


Forking command line: /bin/sh -c cd /home/tich/data/bps_trunk/bps- 
api 

/usr/lib/jvm/jdk1.6.0_13/jre/bin/java -jar
/tmp/surefirebooter2137625950913122347.jar
/tmp/surefire4278370938049229367tmp /tmp/ 
surefire3389360321643705255tmp

org.apache.maven.surefire.booter.SurefireExecutionException:
com.bps.test.PricingTestSetTestCase; nested exception is
java.lang.NoClassDefFoundError: com.bps.test.PricingTestSetTestCase

find -name PricingTestSetTestCase.class
./target/test-classes/com/bps/test/PricingTestSetTestCase.class

On Tue, Apr 7, 2009 at 7:18 PM, Brett Porter br...@apache.org  
wrote:


Can you try the latest version of the surefire plugin? (v2.4.3)



On 08/04/2009, at 10:15 AM, Tim wrote:

Yea. It's showing up as [INFO]junit:junit:jar:4.4:test with no
version


3
in the list.This is with maven 2.1.0 AND 2.0.10 btw.
The reason that I noticed this was because I have a base test  
class in a
dependency that surefire was not able to find. But compilation  
was fine.


On Tue, Apr 7, 2009 at 6:26 PM, Brett Porter br...@apache.org  
wrote:


have you confirmed that dependency:list only shows junit 4?




On 08/04/2009, at 9:18 AM, Tim wrote:

Why do I see


Forking command line: /usr/lib/jvm/jdk1.6.0_13/jre/bin/java - 
classpath




/home/tich/.m2/repository/org/apache/maven/surefire/surefire- 
booter/2.3/surefire-booter-2.3.jar:/home/tich/.m2/repository/ 
org/apache/maven/surefire/surefire-api/2.3/surefire- 
api-2.3.jar:/home/tich/.m2/repository/org/codehaus/plexus/ 
plexus-utils/1.1/plexus-utils-1.1.jar:/home/tich/.m2/ 
repository/commons-lang/commons-lang/2.1/commons-lang-2.1.jar:/ 
home/tich/.m2/repository/org/codehaus/plexus/plexus-archiver/ 
1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar:/home/tich/.m2/ 
repository/org/codehaus/plexus/plexus-container-default/1.0- 
alpha-8/plexus-container-default-1.0-alpha-8.jar:/home/ 
tich/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar:/home/ 
tich/.m2/repository/classworlds/classworlds/1.1-alpha-2/ 
classworlds-1.1-alpha-2.jar

org.apache.maven.surefire.booter.SurefireBooter /tmp/surefire72
Even when I am using junit 4.4 as a dependency?

--

Emo Philips 
http://www.brainyquote.com/quotes/authors/e/emo_philips.html


- A computer once beat me at chess, but it was no match for  
me at



kick
boxing.




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org





--

Fred Allen http://www.brainyquote.com/quotes/authors/f/fred_allen.html



-
Washington is no place for a good actor. The competition from bad
actors
is
too great.




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org





--

George Burns 
http://www.brainyquote.com/quotes/authors/g/george_burns.html
- I spent a year in that town, one Sunday.




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org





--

Fred Allen http://www.brainyquote.com/quotes/authors/f/fred_allen.html 
  -
Washington is no place for a good actor. The competition from bad  
actors is

too great.



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org