You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Lageson,Thomas M" <TL...@travelers.com> on 2007/01/10 16:56:18 UTC

M2 & Junit4.1: Problems using the 2.3 Snapshot of maven-surefire-plugin

I have noticed a couple of things in my testing of the 2.3 Snapshot of
the maven-surefire-plugin when going against JUnit 4.1 with Maven2.

 

1)        It does not recognize the setup (@Before annotation).

2)           It did not recognize test method names (@Test annotation)
that didn't have a method name beginning with test (according to the
Junit docs, the method names no longer have to be named
test<methodname>.

3)           It only runs one test file.  I have tried forking.  No
matter what I try, simply running "mvn clean test" will only run one
test file.  Running "mvn clean test
-Dtest=MyAppTest,MyAppTest1,MyAppTest2" will run all three tests.  I
expected that "mvn clean test" would run all the tests in the project.

 

Any ideas, obvious things I am overlooking?

 

Thanks.

 

My pom.xml is:

<project xmlns="http://maven.apache.org/POM/4.0.0"

      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">

      <modelVersion>4.0.0</modelVersion>

      <groupId>com.lageson.sample</groupId>

      <artifactId>TestJavaJunit4</artifactId>

      <packaging>jar</packaging>

      <version>1.0-SNAPSHOT</version>

      <name>TestJavaJunit4</name>

      <url>http://maven.apache.org</url>

      <dependencies>

            <dependency>

                  <groupId>junit</groupId>

                  <artifactId>junit</artifactId>

                  <version>4.1</version>

                  <scope>test</scope>

            </dependency>

      </dependencies>

      <build>

            <plugins>

                  <plugin>

                        <groupId>org.apache.maven.plugins</groupId>

                        <artifactId>maven-compiler-plugin</artifactId>

                        <configuration>

                              <source>1.5</source>

                              <target>1.5</target>

                              <!--
<compilerArgument>-verbose</compilerArgument> -->

 

                        </configuration>

                  </plugin>

                  <plugin>

                        <groupId>org.apache.maven.plugins</groupId>

                        <artifactId>maven-surefire-plugin</artifactId>

                        <configuration>

                              <source>1.5</source>

                              <target>1.5</target>

                              <!-- <forkMode>pertest</forkMode> -->

                              <!-- <forkMode>always</forkMode>-->

                              <argLine>-enableassertions</argLine>

                        </configuration>

 

                  </plugin>

                  

            </plugins>

      </build>

</project>

 

My output is:

C:\IBMRAD70\myworkspace\TestJavaJunit4>mvn clean test

[INFO] Scanning for projects...

[INFO]
------------------------------------------------------------------------
-

---

[INFO] Building TestJavaJunit4

[INFO]    task-segment: [clean, test]

[INFO]
------------------------------------------------------------------------
-

---

[INFO] [clean:clean]

[INFO] Deleting directory C:\IBMRAD70\myworkspace\TestJavaJunit4\target

[INFO] Deleting directory
C:\IBMRAD70\myworkspace\TestJavaJunit4\target\classes

[INFO] Deleting directory
C:\IBMRAD70\myworkspace\TestJavaJunit4\target\test-cla

sses

[INFO] [resources:resources]

[INFO] Using default encoding to copy filtered resources.

[INFO] [compiler:compile]

Compiling 1 source file to
C:\IBMRAD70\myworkspace\TestJavaJunit4\target\classes

 

[INFO] [resources:testResources]

[INFO] Using default encoding to copy filtered resources.

[INFO] [compiler:testCompile]

Compiling 3 source files to
C:\IBMRAD70\myworkspace\TestJavaJunit4\target\test-c

lasses

[INFO] [surefire:test]

[INFO] Surefire report directory:
C:\IBMRAD70\myworkspace\TestJavaJunit4\target\

surefire-reports

 

-------------------------------------------------------

 T E S T S

-------------------------------------------------------

Running com.lageson.sample.MyAppTest

Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.04 sec

 

Results :

Tests run: 3, Failures: 0, Errors: 0, Skipped: 0

 

[INFO]
------------------------------------------------------------------------

[INFO] BUILD SUCCESSFUL

[INFO]
------------------------------------------------------------------------

[INFO] Total time: 4 seconds

[INFO] Finished at: Wed Jan 10 09:50:46 CST 2007

[INFO] Final Memory: 4M/7M

[INFO]
------------------------------------------------------------------------

 


==============================================================================
This communication, together with any attachments hereto or links contained herein, is for the sole use of the intended recipient(s) and may contain information that is confidential or legally protected. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, dissemination, distribution or use of this communication is STRICTLY PROHIBITED.  If you have received this communication in error, please notify the sender immediately by return e-mail message and delete the original and all copies of the communication, along with any attachments hereto or links herein, from your system.

==============================================================================
The St. Paul Travelers e-mail system made this annotation on 01/10/07, 10:56:23.


RE: M2 & Junit4.1: Problems using the 2.3 Snapshot of maven-surefire-plugin

Posted by "Lageson,Thomas M" <TL...@travelers.com>.
I got my surefire plugin updated to 2.3-SNAPSHOT.  This clears up the
first two problems (not recognizing setup() and requiring
test<methodname> rather than just <methodname>).

However, I am still seeing where only one test (of the three) is run
when I do "mvn test" or "mvn install".  I would expect all three of the
tests to run.

Any ideas?  My -X output is below and the pom I am using is below that.
Let me know if you need more information.

Thanks.

- Tom


My output is:

C:\IBMRAD70\myworkspace\TestJavaJunit4>mvn -X test
+ Error stacktraces are turned on.
Maven version: 2.0.4
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents
and Settin
gs\tlageson\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from:
'C:\maven-2.0.4\conf\p
lugin-registry.xml'
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
-
---
[INFO] Building TestJavaJunit4
[INFO]    task-segment: [test]
[INFO]
------------------------------------------------------------------------
-
---
[DEBUG] Skipping disabled repository apache.org
[DEBUG] maven-resources-plugin: resolved to version 2.2 from repository
central
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1
for pro
ject: null:maven-resources-plugin:maven-plugin:2.2 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
project: org
.apache.maven.plugins:maven-plugins:pom:1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
org.apache.mave
n:maven-parent:pom:1 from the repository.
[DEBUG] Skipping disabled repository apache.org
[DEBUG] maven-compiler-plugin: resolved to version 2.0.1 from repository
central

[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1
for pro
ject: null:maven-compiler-plugin:maven-plugin:2.0.1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
project: org
.apache.maven.plugins:maven-plugins:pom:1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
org.apache.mave
n:maven-parent:pom:1 from the repository.
[DEBUG] Skipping disabled repository central
[DEBUG] Skipping disabled repository central
[DEBUG] maven-surefire-plugin: resolved to version 2.3-20070110.211241-9
from re
pository apache.org
[DEBUG] Retrieving parent-POM:
org.apache.maven.surefire:surefire::2.1-SNAPSHOT
for project:
org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.3-200
70110.211241-9 from the repository.
[DEBUG] Skipping disabled repository central
[DEBUG] Skipping disabled repository central
[DEBUG] surefire: resolved to version 2.1-20070108.094711-11 from
repository apa
che.org
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::4 for
project: org
.apache.maven.surefire:surefire:pom:2.1-SNAPSHOT from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.mave
n:maven-parent:pom:4 from the repository.
[DEBUG] maven-surefire-plugin: resolved to version 2.3-20070110.211241-9
from re
pository apache.org
[DEBUG] maven-surefire-plugin: resolved to version 2.3-20070110.211241-9
from re
pository apache.org
[DEBUG] Retrieving parent-POM:
org.apache.maven.surefire:surefire::2.1-SNAPSHOT
for project:
org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.3-200
70110.211241-9 from the repository.
[DEBUG] surefire: resolved to version 2.1-20070108.094711-11 from
repository apa
che.org
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::4 for
project: org
.apache.maven.surefire:surefire:pom:2.1-SNAPSHOT from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.mave
n:maven-parent:pom:4 from the repository.
[DEBUG] maven-surefire-plugin: resolved to version 2.3-20070110.211241-9
from re
pository apache.org
[DEBUG]
org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.2:runtime
 (selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
org.apac
he.maven:maven-model:jar:2.0 from the repository.
[DEBUG]   org.apache.maven:maven-model:jar:2.0:runtime (selected for
runtime)
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected
for run
time)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
null:mav
en-project:jar:2.0 from the repository.
[DEBUG]   org.apache.maven:maven-project:jar:2.0:runtime (selected for
runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime
 (selected for runtime)
[DEBUG]       classworlds:classworlds:jar:1.1-alpha-2:runtime (selected
for runt
ime)
[DEBUG]       junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
org.apac
he.maven:maven-artifact:jar:2.0 from the repository.
[DEBUG]     org.apache.maven:maven-artifact:jar:2.0:runtime (selected
for runtim
e)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
org.apac
he.maven:maven-artifact-manager:jar:2.0 from the repository.
[DEBUG]     org.apache.maven:maven-artifact-manager:jar:2.0:runtime
(selected fo
r runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
org.apac
he.maven:maven-repository-metadata:jar:2.0 from the repository.
[DEBUG]       org.apache.maven:maven-repository-metadata:jar:2.0:runtime
(select
ed for runtime)
[DEBUG]
org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
null:mav
en-profile:jar:2.0 from the repository.
[DEBUG]     org.apache.maven:maven-profile:jar:2.0:runtime (selected for
runtime
)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
org.apac
he.maven:maven-plugin-api:jar:2.0 from the repository.
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected
for runtim
e)
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-resources-plugin:2.2:re
sources' -->
[DEBUG]   (f) filters = []
[DEBUG]   (f) outputDirectory =
C:\IBMRAD70\myworkspace\TestJavaJunit4\target\cl
asses
[DEBUG]   (f) project = org.apache.maven.project.MavenProject@1dc21e69
[DEBUG]   (f) resources = [org.apache.maven.model.Resource@1dfc547]
[DEBUG] -- end configuration --
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[DEBUG] com.lageson.sample:TestJavaJunit4:jar:1.0-SNAPSHOT (selected for
null)
[DEBUG]   junit:junit:jar:4.1:runtime (selected for runtime)
[DEBUG] maven-surefire-plugin: resolved to version 2.3-20070110.211241-9
from re
pository apache.org
[DEBUG] Retrieving parent-POM:
org.apache.maven.surefire:surefire::2.1-SNAPSHOT
for project:
org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.3-200
70110.211241-9 from the repository.
[DEBUG] surefire: resolved to version 2.1-20070108.094711-11 from
repository apa
che.org
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::4 for
project: org
.apache.maven.surefire:surefire:pom:2.1-SNAPSHOT from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.mave
n:maven-parent:pom:4 from the repository.
[DEBUG]
org.apache.maven.plugins:maven-surefire-plugin:jar:2.3-SNAPSHOT:runtim
e (selected for runtime)
[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for
project: nu
ll:plexus-utils:jar:1.1 from the repository.
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected
for runti
me)
[DEBUG]     org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected
for runt
ime)
[DEBUG]     org.apache.maven:maven-artifact:jar:2.0:runtime (selected
for runtim
e)
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
(removed - near
er found: 1.1)
[DEBUG] Skipping disabled repository central
[DEBUG] surefire-booter: resolved to version 2.1-20070108.094711-10 from
reposit
ory apache.org
[DEBUG] Retrieving parent-POM:
org.apache.maven.surefire:surefire::2.1-SNAPSHOT
for project: null:surefire-booter:jar:2.1-20070108.094711-10 from the
repository
.
[DEBUG] surefire: resolved to version 2.1-20070108.094711-11 from
repository apa
che.org
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::4 for
project: org
.apache.maven.surefire:surefire:pom:2.1-SNAPSHOT from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.mave
n:maven-parent:pom:4 from the repository.
[DEBUG]
org.apache.maven.surefire:surefire-booter:jar:2.1-SNAPSHOT:runtime (
selected for runtime)
[DEBUG] Skipping disabled repository central
[DEBUG] surefire-api: resolved to version 2.1-20070108.094711-10 from
repository
 apache.org
[DEBUG] Retrieving parent-POM:
org.apache.maven.surefire:surefire::2.1-SNAPSHOT
for project: null:surefire-api:jar:2.1-20070108.094711-10 from the
repository.
[DEBUG] surefire: resolved to version 2.1-20070108.094711-11 from
repository apa
che.org
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::4 for
project: org
.apache.maven.surefire:surefire:pom:2.1-SNAPSHOT from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.mave
n:maven-parent:pom:4 from the repository.
[DEBUG]
org.apache.maven.surefire:surefire-api:jar:2.1-SNAPSHOT:runtime (s
elected for runtime)
[DEBUG]         commons-lang:commons-lang:jar:2.1:runtime (selected for
runtime)

[DEBUG] Retrieving parent-POM:
org.codehaus.plexus:plexus-components::1.1.6 for
project: null:plexus-archiver:jar:1.0-alpha-7 from the repository.
[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.8 for
project: or
g.codehaus.plexus:plexus-components:pom:1.1.6 from the repository.
[DEBUG]
org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-7:runtime (selec
ted for runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:run
time (selected for runtime)
[DEBUG]           org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
(removed -
nearer found: 1.1)
[DEBUG]           classworlds:classworlds:jar:1.1-alpha-2:runtime
(selected for
runtime)
[DEBUG]           junit:junit:jar:3.8.1:runtime (removed - nearer found:
4.1)
[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.5 for
project: nu
ll:plexus-utils:jar:1.2 from the repository.
[DEBUG]         org.codehaus.plexus:plexus-utils:jar:1.2:runtime
(removed - near
er found: 1.1)
[DEBUG]
org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.0.1:runtim
e (selected for runtime)
[DEBUG] Retrieving parent-POM:
org.codehaus.plexus:plexus-compiler::1.5.2 for pr
oject: null:plexus-compiler-api:jar:1.5.2 from the repository.
[DEBUG] Retrieving parent-POM:
org.codehaus.plexus:plexus-components::1.1.5 for
project: null:plexus-compiler:pom:1.5.2 from the repository.
[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.5 for
project: or
g.codehaus.plexus:plexus-components:pom:1.1.5 from the repository.
[DEBUG]   org.codehaus.plexus:plexus-compiler-api:jar:1.5.2:runtime
(selected fo
r runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime
 (selected for runtime)
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
(selected for r
untime)
[DEBUG]       classworlds:classworlds:jar:1.1-alpha-2:runtime (selected
for runt
ime)
[DEBUG]       junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected
for runti
me)
[DEBUG] Retrieving parent-POM:
org.codehaus.plexus:plexus-compiler::1.5.2 for pr
oject: null:plexus-compiler-manager:jar:1.5.2 from the repository.
[DEBUG] Retrieving parent-POM:
org.codehaus.plexus:plexus-components::1.1.5 for
project: null:plexus-compiler:pom:1.5.2 from the repository.
[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.5 for
project: or
g.codehaus.plexus:plexus-components:pom:1.1.5 from the repository.
[DEBUG]   org.codehaus.plexus:plexus-compiler-manager:jar:1.5.2:runtime
(selecte
d for runtime)
[DEBUG] Retrieving parent-POM:
org.codehaus.plexus:plexus-compilers::1.5.2 for p
roject: null:plexus-compiler-javac:jar:1.5.2 from the repository.
[DEBUG] Retrieving parent-POM:
org.codehaus.plexus:plexus-compiler::1.5.2 for pr
oject: org.codehaus.plexus:plexus-compilers:pom:1.5.2 from the
repository.
[DEBUG] Retrieving parent-POM:
org.codehaus.plexus:plexus-components::1.1.5 for
project: null:plexus-compiler:pom:1.5.2 from the repository.
[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.5 for
project: or
g.codehaus.plexus:plexus-components:pom:1.1.5 from the repository.
[DEBUG]   org.codehaus.plexus:plexus-compiler-javac:jar:1.5.2:runtime
(selected
for runtime)
[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for
project: nu
ll:plexus-utils:jar:1.0.5 from the repository.
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.5:runtime (removed
- nearer
 found: 1.0.4)
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected
for runtim
e)
[DEBUG]   org.apache.maven:maven-artifact:jar:2.0:runtime (selected for
runtime)

[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-compiler-plugin:2.0.1:c
ompile' -->
[DEBUG]   (f) basedir = C:\IBMRAD70\myworkspace\TestJavaJunit4
[DEBUG]   (f) buildDirectory =
C:\IBMRAD70\myworkspace\TestJavaJunit4\target
[DEBUG]   (f) classpathElements =
[C:\IBMRAD70\myworkspace\TestJavaJunit4\target
\classes]
[DEBUG]   (f) compileSourceRoots =
[C:\IBMRAD70\myworkspace\TestJavaJunit4\src\m
ain\java]
[DEBUG]   (f) compilerId = javac
[DEBUG]   (f) debug = true
[DEBUG]   (f) fork = false
[DEBUG]   (f) optimize = false
[DEBUG]   (f) outputDirectory =
C:\IBMRAD70\myworkspace\TestJavaJunit4\target\cl
asses
[DEBUG]   (f) outputFileName = TestJavaJunit4-1.0-SNAPSHOT
[DEBUG]   (f) projectArtifact =
com.lageson.sample:TestJavaJunit4:jar:1.0-SNAPSH
OT
[DEBUG]   (f) showDeprecation = false
[DEBUG]   (f) showWarnings = false
[DEBUG]   (f) source = 1.5
[DEBUG]   (f) staleMillis = 0
[DEBUG]   (f) target = 1.5
[DEBUG]   (f) verbose = false
[DEBUG] -- end configuration --
[INFO] [compiler:compile]
[DEBUG] Using compiler 'javac'.
[DEBUG] Source directories:
[C:\IBMRAD70\myworkspace\TestJavaJunit4\src\main\jav
a]
[DEBUG] Classpath:
[C:\IBMRAD70\myworkspace\TestJavaJunit4\target\classes]
[DEBUG] Output directory:
C:\IBMRAD70\myworkspace\TestJavaJunit4\target\classes
[DEBUG] Classpath:
[DEBUG]  C:\IBMRAD70\myworkspace\TestJavaJunit4\target\classes
[DEBUG] Source roots:
[DEBUG]  C:\IBMRAD70\myworkspace\TestJavaJunit4\src\main\java
Compiling 1 source file to
C:\IBMRAD70\myworkspace\TestJavaJunit4\target\classes

[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-resources-plugin:2.2:te
stResources' -->
[DEBUG]   (f) filters = []
[DEBUG]   (f) outputDirectory =
C:\IBMRAD70\myworkspace\TestJavaJunit4\target\te
st-classes
[DEBUG]   (f) project = org.apache.maven.project.MavenProject@1dc21e69
[DEBUG]   (f) resources = [org.apache.maven.model.Resource@1581593]
[DEBUG] -- end configuration --
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[DEBUG] com.lageson.sample:TestJavaJunit4:jar:1.0-SNAPSHOT (selected for
null)
[DEBUG]   junit:junit:jar:4.1:runtime (selected for runtime)
[DEBUG] maven-surefire-plugin: resolved to version 2.3-20070110.211241-9
from re
pository apache.org
[DEBUG] Retrieving parent-POM:
org.apache.maven.surefire:surefire::2.1-SNAPSHOT
for project:
org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.3-200
70110.211241-9 from the repository.
[DEBUG] surefire: resolved to version 2.1-20070108.094711-11 from
repository apa
che.org
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::4 for
project: org
.apache.maven.surefire:surefire:pom:2.1-SNAPSHOT from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.mave
n:maven-parent:pom:4 from the repository.
[DEBUG]
org.apache.maven.plugins:maven-surefire-plugin:jar:2.3-SNAPSHOT:runtim
e (selected for runtime)
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected
for runti
me)
[DEBUG]     org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected
for runt
ime)
[DEBUG]     org.apache.maven:maven-artifact:jar:2.0:runtime (selected
for runtim
e)
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
(removed - near
er found: 1.1)
[DEBUG] surefire-booter: resolved to version 2.1-20070108.094711-10 from
reposit
ory apache.org
[DEBUG] Retrieving parent-POM:
org.apache.maven.surefire:surefire::2.1-SNAPSHOT
for project: null:surefire-booter:jar:2.1-20070108.094711-10 from the
repository
.
[DEBUG] surefire: resolved to version 2.1-20070108.094711-11 from
repository apa
che.org
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::4 for
project: org
.apache.maven.surefire:surefire:pom:2.1-SNAPSHOT from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.mave
n:maven-parent:pom:4 from the repository.
[DEBUG]
org.apache.maven.surefire:surefire-booter:jar:2.1-SNAPSHOT:runtime (
selected for runtime)
[DEBUG] surefire-api: resolved to version 2.1-20070108.094711-10 from
repository
 apache.org
[DEBUG] Retrieving parent-POM:
org.apache.maven.surefire:surefire::2.1-SNAPSHOT
for project: null:surefire-api:jar:2.1-20070108.094711-10 from the
repository.
[DEBUG] surefire: resolved to version 2.1-20070108.094711-11 from
repository apa
che.org
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::4 for
project: org
.apache.maven.surefire:surefire:pom:2.1-SNAPSHOT from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.mave
n:maven-parent:pom:4 from the repository.
[DEBUG]
org.apache.maven.surefire:surefire-api:jar:2.1-SNAPSHOT:runtime (s
elected for runtime)
[DEBUG]         commons-lang:commons-lang:jar:2.1:runtime (selected for
runtime)

[DEBUG]
org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-7:runtime (selec
ted for runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:run
time (selected for runtime)
[DEBUG]           org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
(removed -
nearer found: 1.1)
[DEBUG]           classworlds:classworlds:jar:1.1-alpha-2:runtime
(selected for
runtime)
[DEBUG]           junit:junit:jar:3.8.1:runtime (removed - nearer found:
4.1)
[DEBUG]         org.codehaus.plexus:plexus-utils:jar:1.2:runtime
(removed - near
er found: 1.1)
[DEBUG] surefire-booter: resolved to version 2.1-20070108.094711-10 from
reposit
ory apache.org
[DEBUG] surefire-api: resolved to version 2.1-20070108.094711-10 from
repository
 apache.org
[DEBUG] maven-surefire-plugin: resolved to version 2.3-20070110.211241-9
from re
pository apache.org
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-compiler-plugin:2.0.1:t
estCompile' -->
[DEBUG]   (f) basedir = C:\IBMRAD70\myworkspace\TestJavaJunit4
[DEBUG]   (f) buildDirectory =
C:\IBMRAD70\myworkspace\TestJavaJunit4\target
[DEBUG]   (f) classpathElements =
[C:\IBMRAD70\myworkspace\TestJavaJunit4\target
\classes, C:\IBMRAD70\myworkspace\TestJavaJunit4\target\test-classes,
c:\mavenre
pository\junit\junit\4.1\junit-4.1.jar,
c:\mavenrepository\org\codehaus\plexus\p
lexus-archiver\1.0-alpha-7\plexus-archiver-1.0-alpha-7.jar,
c:\mavenrepository\o
rg\apache\maven\plugins\maven-surefire-plugin\2.3-SNAPSHOT\maven-surefir
e-plugin
-2.3-SNAPSHOT.jar,
c:\mavenrepository\org\apache\maven\surefire\surefire-api\2.1
-SNAPSHOT\surefire-api-2.1-SNAPSHOT.jar,
c:\mavenrepository\org\codehaus\plexus\
plexus-container-default\1.0-alpha-8\plexus-container-default-1.0-alpha-
8.jar, c
:\mavenrepository\classworlds\classworlds\1.1-alpha-2\classworlds-1.1-al
pha-2.ja
r,
c:\mavenrepository\org\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.1
.jar,
 
c:\mavenrepository\org\apache\maven\maven-plugin-api\2.0\maven-plugin-ap
i-2.0.j
ar,
c:\mavenrepository\org\apache\maven\maven-artifact\2.0\maven-artifact-2.
0.ja
r,
c:\mavenrepository\commons-lang\commons-lang\2.1\commons-lang-2.1.jar,
c:\mav
enrepository\org\apache\maven\surefire\surefire-booter\2.1-SNAPSHOT\sure
fire-boo
ter-2.1-SNAPSHOT.jar]
[DEBUG]   (f) compileSourceRoots =
[C:\IBMRAD70\myworkspace\TestJavaJunit4\src\t
est\java]
[DEBUG]   (f) compilerId = javac
[DEBUG]   (f) debug = true
[DEBUG]   (f) fork = false
[DEBUG]   (f) optimize = false
[DEBUG]   (f) outputDirectory =
C:\IBMRAD70\myworkspace\TestJavaJunit4\target\te
st-classes
[DEBUG]   (f) outputFileName = TestJavaJunit4-1.0-SNAPSHOT
[DEBUG]   (f) showDeprecation = false
[DEBUG]   (f) showWarnings = false
[DEBUG]   (f) source = 1.5
[DEBUG]   (f) staleMillis = 0
[DEBUG]   (f) target = 1.5
[DEBUG]   (f) verbose = false
[DEBUG] -- end configuration --
[INFO] [compiler:testCompile]
[DEBUG] Using compiler 'javac'.
[DEBUG] Source directories:
[C:\IBMRAD70\myworkspace\TestJavaJunit4\src\test\jav
a]
[DEBUG] Classpath:
[C:\IBMRAD70\myworkspace\TestJavaJunit4\target\classes
 C:\IBMRAD70\myworkspace\TestJavaJunit4\target\test-classes
 c:\mavenrepository\junit\junit\4.1\junit-4.1.jar
 
c:\mavenrepository\org\codehaus\plexus\plexus-archiver\1.0-alpha-7\plexu
s-archi
ver-1.0-alpha-7.jar
 
c:\mavenrepository\org\apache\maven\plugins\maven-surefire-plugin\2.3-SN
APSHOT\
maven-surefire-plugin-2.3-SNAPSHOT.jar
 
c:\mavenrepository\org\apache\maven\surefire\surefire-api\2.1-SNAPSHOT\s
urefire
-api-2.1-SNAPSHOT.jar
 
c:\mavenrepository\org\codehaus\plexus\plexus-container-default\1.0-alph
a-8\ple
xus-container-default-1.0-alpha-8.jar
 
c:\mavenrepository\classworlds\classworlds\1.1-alpha-2\classworlds-1.1-a
lpha-2.
jar
 
c:\mavenrepository\org\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.1
.jar
 
c:\mavenrepository\org\apache\maven\maven-plugin-api\2.0\maven-plugin-ap
i-2.0.j
ar
 
c:\mavenrepository\org\apache\maven\maven-artifact\2.0\maven-artifact-2.
0.jar
 c:\mavenrepository\commons-lang\commons-lang\2.1\commons-lang-2.1.jar
 
c:\mavenrepository\org\apache\maven\surefire\surefire-booter\2.1-SNAPSHO
T\suref
ire-booter-2.1-SNAPSHOT.jar]
[DEBUG] Output directory:
C:\IBMRAD70\myworkspace\TestJavaJunit4\target\test-cla
sses
[DEBUG] Classpath:
[DEBUG]  C:\IBMRAD70\myworkspace\TestJavaJunit4\target\classes
[DEBUG]  C:\IBMRAD70\myworkspace\TestJavaJunit4\target\test-classes
[DEBUG]  c:\mavenrepository\junit\junit\4.1\junit-4.1.jar
[DEBUG]
c:\mavenrepository\org\codehaus\plexus\plexus-archiver\1.0-alpha-7\plex
us-archiver-1.0-alpha-7.jar
[DEBUG]
c:\mavenrepository\org\apache\maven\plugins\maven-surefire-plugin\2.3-S
NAPSHOT\maven-surefire-plugin-2.3-SNAPSHOT.jar
[DEBUG]
c:\mavenrepository\org\apache\maven\surefire\surefire-api\2.1-SNAPSHOT\
surefire-api-2.1-SNAPSHOT.jar
[DEBUG]
c:\mavenrepository\org\codehaus\plexus\plexus-container-default\1.0-alp
ha-8\plexus-container-default-1.0-alpha-8.jar
[DEBUG]
c:\mavenrepository\classworlds\classworlds\1.1-alpha-2\classworlds-1.1-
alpha-2.jar
[DEBUG]
c:\mavenrepository\org\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.
1.jar
[DEBUG]
c:\mavenrepository\org\apache\maven\maven-plugin-api\2.0\maven-plugin-a
pi-2.0.jar
[DEBUG]
c:\mavenrepository\org\apache\maven\maven-artifact\2.0\maven-artifact-2
.0.jar
[DEBUG]
c:\mavenrepository\commons-lang\commons-lang\2.1\commons-lang-2.1.jar
[DEBUG]
c:\mavenrepository\org\apache\maven\surefire\surefire-booter\2.1-SNAPSH
OT\surefire-booter-2.1-SNAPSHOT.jar
[DEBUG] Source roots:
[DEBUG]  C:\IBMRAD70\myworkspace\TestJavaJunit4\src\test\java
Compiling 3 source files to
C:\IBMRAD70\myworkspace\TestJavaJunit4\target\test-c
lasses
[DEBUG] com.lageson.sample:TestJavaJunit4:jar:1.0-SNAPSHOT (selected for
null)
[DEBUG]   junit:junit:jar:4.1:runtime (selected for runtime)
[DEBUG]
org.apache.maven.plugins:maven-surefire-plugin:jar:2.3-20070110.211241
-9:runtime (selected for runtime)
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected
for runti
me)
[DEBUG]     org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected
for runt
ime)
[DEBUG]     org.apache.maven:maven-artifact:jar:2.0:runtime (selected
for runtim
e)
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
(removed - near
er found: 1.1)
[DEBUG] surefire-booter: resolved to version 2.1-20070108.094711-10 from
reposit
ory apache.org
[DEBUG] Retrieving parent-POM:
org.apache.maven.surefire:surefire::2.1-SNAPSHOT
for project: null:surefire-booter:jar:2.1-20070108.094711-10 from the
repository
.
[DEBUG] surefire: resolved to version 2.1-20070108.094711-11 from
repository apa
che.org
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::4 for
project: org
.apache.maven.surefire:surefire:pom:2.1-SNAPSHOT from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.mave
n:maven-parent:pom:4 from the repository.
[DEBUG]
org.apache.maven.surefire:surefire-booter:jar:2.1-SNAPSHOT:runtime (
selected for runtime)
[DEBUG] surefire-api: resolved to version 2.1-20070108.094711-10 from
repository
 apache.org
[DEBUG] Retrieving parent-POM:
org.apache.maven.surefire:surefire::2.1-SNAPSHOT
for project: null:surefire-api:jar:2.1-20070108.094711-10 from the
repository.
[DEBUG] surefire: resolved to version 2.1-20070108.094711-11 from
repository apa
che.org
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::4 for
project: org
.apache.maven.surefire:surefire:pom:2.1-SNAPSHOT from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.mave
n:maven-parent:pom:4 from the repository.
[DEBUG]
org.apache.maven.surefire:surefire-api:jar:2.1-SNAPSHOT:runtime (s
elected for runtime)
[DEBUG]         commons-lang:commons-lang:jar:2.1:runtime (selected for
runtime)

[DEBUG]
org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-7:runtime (selec
ted for runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:run
time (selected for runtime)
[DEBUG]           org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
(removed -
nearer found: 1.1)
[DEBUG]           classworlds:classworlds:jar:1.1-alpha-2:runtime
(selected for
runtime)
[DEBUG]           junit:junit:jar:3.8.1:runtime (removed - nearer found:
4.1)
[DEBUG]         org.codehaus.plexus:plexus-utils:jar:1.2:runtime
(removed - near
er found: 1.1)
[DEBUG] surefire-booter: resolved to version 2.1-20070108.094711-10 from
reposit
ory apache.org
[DEBUG] surefire-api: resolved to version 2.1-20070108.094711-10 from
repository
 apache.org
[DEBUG]
org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.3-20070110
.211241-9:runtime (selected for runtime)
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected for
runtime
)
[DEBUG]   org.apache.maven:maven-artifact:jar:2.0:runtime (selected for
runtime)

[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed
- nearer
 found: 1.1)
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected
for runtim
e)
[DEBUG] surefire-booter: resolved to version 2.1-20070108.094711-10 from
reposit
ory apache.org
[DEBUG] Retrieving parent-POM:
org.apache.maven.surefire:surefire::2.1-SNAPSHOT
for project: null:surefire-booter:jar:2.1-20070108.094711-10 from the
repository
.
[DEBUG] surefire: resolved to version 2.1-20070108.094711-11 from
repository apa
che.org
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::4 for
project: org
.apache.maven.surefire:surefire:pom:2.1-SNAPSHOT from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.mave
n:maven-parent:pom:4 from the repository.
[DEBUG]
org.apache.maven.surefire:surefire-booter:jar:2.1-SNAPSHOT:runtime (se
lected for runtime)
[DEBUG] surefire-api: resolved to version 2.1-20070108.094711-10 from
repository
 apache.org
[DEBUG] Retrieving parent-POM:
org.apache.maven.surefire:surefire::2.1-SNAPSHOT
for project: null:surefire-api:jar:2.1-20070108.094711-10 from the
repository.
[DEBUG] surefire: resolved to version 2.1-20070108.094711-11 from
repository apa
che.org
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::4 for
project: org
.apache.maven.surefire:surefire:pom:2.1-SNAPSHOT from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.mave
n:maven-parent:pom:4 from the repository.
[DEBUG]
org.apache.maven.surefire:surefire-api:jar:2.1-SNAPSHOT:runtime (sel
ected for runtime)
[DEBUG]       commons-lang:commons-lang:jar:2.1:runtime (selected for
runtime)
[DEBUG]     org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-7:runtime
(selecte
d for runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runti
me (selected for runtime)
[DEBUG]         org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
(removed - ne
arer found: 1.1)
[DEBUG]         classworlds:classworlds:jar:1.1-alpha-2:runtime
(selected for ru
ntime)
[DEBUG]         junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.2:runtime (removed
- nearer
 found: 1.1)
[DEBUG] surefire-api: resolved to version 2.1-20070108.094711-10 from
repository
 apache.org
[DEBUG] surefire-booter: resolved to version 2.1-20070108.094711-10 from
reposit
ory apache.org
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-surefire-plugin:2.3-SNA
PSHOT:test' -->
[DEBUG]   (f) argLine = -enableassertions
[DEBUG]   (f) basedir = C:\IBMRAD70\myworkspace\TestJavaJunit4
[DEBUG]   (f) childDelegation = false
[DEBUG]   (f) classesDirectory =
C:\IBMRAD70\myworkspace\TestJavaJunit4\target\c
lasses
[DEBUG]   (f) classpathElements =
[C:\IBMRAD70\myworkspace\TestJavaJunit4\target
\classes, C:\IBMRAD70\myworkspace\TestJavaJunit4\target\test-classes,
c:\mavenre
pository\junit\junit\4.1\junit-4.1.jar,
c:\mavenrepository\org\codehaus\plexus\p
lexus-archiver\1.0-alpha-7\plexus-archiver-1.0-alpha-7.jar,
c:\mavenrepository\o
rg\apache\maven\plugins\maven-surefire-plugin\2.3-SNAPSHOT\maven-surefir
e-plugin
-2.3-SNAPSHOT.jar,
c:\mavenrepository\org\apache\maven\surefire\surefire-api\2.1
-SNAPSHOT\surefire-api-2.1-SNAPSHOT.jar,
c:\mavenrepository\org\codehaus\plexus\
plexus-container-default\1.0-alpha-8\plexus-container-default-1.0-alpha-
8.jar, c
:\mavenrepository\classworlds\classworlds\1.1-alpha-2\classworlds-1.1-al
pha-2.ja
r,
c:\mavenrepository\org\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.1
.jar,
 
c:\mavenrepository\org\apache\maven\maven-plugin-api\2.0\maven-plugin-ap
i-2.0.j
ar,
c:\mavenrepository\org\apache\maven\maven-artifact\2.0\maven-artifact-2.
0.ja
r,
c:\mavenrepository\commons-lang\commons-lang\2.1\commons-lang-2.1.jar,
c:\mav
enrepository\org\apache\maven\surefire\surefire-booter\2.1-SNAPSHOT\sure
fire-boo
ter-2.1-SNAPSHOT.jar]
[DEBUG]   (f) disableXmlReport = false
[DEBUG]   (f) forkMode = always
[DEBUG]   (f) localRepository = [local] -> file://c:/mavenrepository
[DEBUG]   (f) parallel = false
[DEBUG]   (f) pluginArtifactMap =
{org.codehaus.plexus:plexus-utils=org.codehaus
.plexus:plexus-utils:jar:1.1:runtime,
org.apache.maven.surefire:surefire-api=org
.apache.maven.surefire:surefire-api:jar:2.1-20070108.094711-10:runtime,
org.code
haus.plexus:plexus-archiver=org.codehaus.plexus:plexus-archiver:jar:1.0-
alpha-7:
runtime,
org.apache.maven:maven-artifact=org.apache.maven:maven-artifact:jar:2.0
:runtime,
org.apache.maven:maven-plugin-api=org.apache.maven:maven-plugin-api:ja
r:2.0:runtime,
org.apache.maven.surefire:surefire-booter=org.apache.maven.surefi
re:surefire-booter:jar:2.1-20070108.094711-10:runtime,
commons-lang:commons-lang
=commons-lang:commons-lang:jar:2.1:runtime}
[DEBUG]   (f) printSummary = true
[DEBUG]   (f) projectArtifactMap =
{org.codehaus.plexus:plexus-container-default
=org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime,
classworl
ds:classworlds=classworlds:classworlds:jar:1.1-alpha-2:runtime,
org.codehaus.ple
xus:plexus-utils=org.codehaus.plexus:plexus-utils:jar:1.1:runtime,
org.apache.ma
ven.plugins:maven-surefire-plugin=org.apache.maven.plugins:maven-surefir
e-plugin
:jar:2.3-20070110.211241-9:runtime,
junit:junit=junit:junit:jar:4.1:runtime, org
.apache.maven.surefire:surefire-api=org.apache.maven.surefire:surefire-a
pi:jar:2
.1-20070108.094711-10:runtime,
org.codehaus.plexus:plexus-archiver=org.codehaus.
plexus:plexus-archiver:jar:1.0-alpha-7:runtime,
org.apache.maven:maven-artifact=
org.apache.maven:maven-artifact:jar:2.0:runtime,
org.apache.maven:maven-plugin-a
pi=org.apache.maven:maven-plugin-api:jar:2.0:runtime,
org.apache.maven.surefire:
surefire-booter=org.apache.maven.surefire:surefire-booter:jar:2.1-200701
08.09471
1-10:runtime,
commons-lang:commons-lang=commons-lang:commons-lang:jar:2.1:runtim
e}
[DEBUG]   (f) redirectTestOutputToFile = false
[DEBUG]   (f) remoteRepositories = [[apache.org] ->
http://people.apache.org/rep
o/m2-snapshot-repository, [central] -> http://repo1.maven.org/maven2]
[DEBUG]   (f) reportFormat = brief
[DEBUG]   (f) reportsDirectory =
C:\IBMRAD70\myworkspace\TestJavaJunit4\target\s
urefire-reports
[DEBUG]   (f) testClassesDirectory =
C:\IBMRAD70\myworkspace\TestJavaJunit4\targ
et\test-classes
[DEBUG]   (f) testSourceDirectory =
C:\IBMRAD70\myworkspace\TestJavaJunit4\src\t
est\java
[DEBUG]   (f) threadCount = 5
[DEBUG]   (f) trimStackTrace = true
[DEBUG]   (f) useFile = true
[DEBUG]   (f) useSystemClassLoader = false
[DEBUG] -- end configuration --
[INFO] [surefire:test]
[DEBUG] dummy:dummy:jar:1.0 (selected for null)
[DEBUG]
org.apache.maven.surefire:surefire-booter:jar:2.1-SNAPSHOT:runtime (se
lected for runtime)
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected
for runti
me)
[DEBUG] surefire-api: resolved to version 2.1-20070108.094711-10 from
repository
 apache.org
[DEBUG] Retrieving parent-POM:
org.apache.maven.surefire:surefire::2.1-SNAPSHOT
for project: null:surefire-api:jar:2.1-20070108.094711-10 from the
repository.
[DEBUG] surefire: resolved to version 2.1-20070108.094711-11 from
repository apa
che.org
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::4 for
project: org
.apache.maven.surefire:surefire:pom:2.1-SNAPSHOT from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.mave
n:maven-parent:pom:4 from the repository.
[DEBUG]
org.apache.maven.surefire:surefire-api:jar:2.1-SNAPSHOT:runtime (sel
ected for runtime)
[DEBUG]       commons-lang:commons-lang:jar:2.1:runtime (selected for
runtime)
[DEBUG]     org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-7:runtime
(selecte
d for runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runti
me (selected for runtime)
[DEBUG]         org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
(removed - ne
arer found: 1.1)
[DEBUG]         classworlds:classworlds:jar:1.1-alpha-2:runtime
(selected for ru
ntime)
[DEBUG]         junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.2:runtime (removed
- nearer
 found: 1.1)
[DEBUG] surefire-api: resolved to version 2.1-20070108.094711-10 from
repository
 apache.org
[DEBUG] Adding to surefire booter test classpath:
c:\mavenrepository\org\codehau
s\plexus\plexus-archiver\1.0-alpha-7\plexus-archiver-1.0-alpha-7.jar
[DEBUG] Adding to surefire booter test classpath:
c:\mavenrepository\junit\junit
\3.8.1\junit-3.8.1.jar
[DEBUG] Adding to surefire booter test classpath:
c:\mavenrepository\org\apache\
maven\surefire\surefire-api\2.1-SNAPSHOT\surefire-api-2.1-SNAPSHOT.jar
[DEBUG] Adding to surefire booter test classpath:
c:\mavenrepository\org\codehau
s\plexus\plexus-container-default\1.0-alpha-8\plexus-container-default-1
.0-alpha
-8.jar
[DEBUG] Adding to surefire booter test classpath:
c:\mavenrepository\classworlds
\classworlds\1.1-alpha-2\classworlds-1.1-alpha-2.jar
[DEBUG] Adding to surefire booter test classpath:
c:\mavenrepository\org\codehau
s\plexus\plexus-utils\1.1\plexus-utils-1.1.jar
[DEBUG] Adding to surefire booter test classpath:
c:\mavenrepository\org\apache\
maven\surefire\surefire-booter\2.1-SNAPSHOT\surefire-booter-2.1-SNAPSHOT
.jar
[DEBUG] Adding to surefire booter test classpath:
c:\mavenrepository\commons-lan
g\commons-lang\2.1\commons-lang-2.1.jar
[DEBUG] dummy:dummy:jar:1.0 (selected for null)
[DEBUG] Skipping disabled repository central
[DEBUG] surefire-junit4: resolved to version 2.1-20070108.094711-1 from
reposito
ry apache.org
[DEBUG] Retrieving parent-POM:
org.apache.maven.surefire:surefire-providers::2.1
-SNAPSHOT for project: null:surefire-junit4:jar:2.1-20070108.094711-1
from the r
epository.
[DEBUG] Skipping disabled repository central
[DEBUG] surefire-providers: resolved to version 2.1-20070108.094711-7
from repos
itory apache.org
[DEBUG] Retrieving parent-POM:
org.apache.maven.surefire:surefire::2.1-SNAPSHOT
for project: null:surefire-providers:pom:null from the repository.
[DEBUG] surefire: resolved to version 2.1-20070108.094711-11 from
repository apa
che.org
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::4 for
project: org
.apache.maven.surefire:surefire:pom:2.1-SNAPSHOT from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.mave
n:maven-parent:pom:4 from the repository.
[DEBUG]   org.apache.maven.surefire:surefire-junit4:jar:2.1-SNAPSHOT
(selected f
or null)
[DEBUG]     junit:junit:jar:4.0:compile (selected for compile)
[DEBUG] surefire-api: resolved to version 2.1-20070108.094711-10 from
repository
 apache.org
[DEBUG] Retrieving parent-POM:
org.apache.maven.surefire:surefire::2.1-SNAPSHOT
for project: null:surefire-api:jar:2.1-20070108.094711-10 from the
repository.
[DEBUG] surefire: resolved to version 2.1-20070108.094711-11 from
repository apa
che.org
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::4 for
project: org
.apache.maven.surefire:surefire:pom:2.1-SNAPSHOT from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.mave
n:maven-parent:pom:4 from the repository.
[DEBUG]
org.apache.maven.surefire:surefire-api:jar:2.1-SNAPSHOT:compile (sel
ected for compile)
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.1:compile (selected
for com
pile)
[DEBUG]       commons-lang:commons-lang:jar:2.1:compile (selected for
compile)
[DEBUG] surefire-junit4: resolved to version 2.1-20070108.094711-1 from
reposito
ry apache.org
[DEBUG] surefire-api: resolved to version 2.1-20070108.094711-10 from
repository
 apache.org
[DEBUG] Adding to surefire test classpath:
c:\mavenrepository\org\apache\maven\s
urefire\surefire-api\2.1-SNAPSHOT\surefire-api-2.1-SNAPSHOT.jar
[DEBUG] Adding to surefire test classpath:
c:\mavenrepository\junit\junit\4.0\ju
nit-4.0.jar
[DEBUG] Adding to surefire test classpath:
c:\mavenrepository\org\codehaus\plexu
s\plexus-utils\1.1\plexus-utils-1.1.jar
[DEBUG] Adding to surefire test classpath:
c:\mavenrepository\org\apache\maven\s
urefire\surefire-junit4\2.1-SNAPSHOT\surefire-junit4-2.1-SNAPSHOT.jar
[DEBUG] Adding to surefire test classpath:
c:\mavenrepository\commons-lang\commo
ns-lang\2.1\commons-lang-2.1.jar
[DEBUG] Test Classpath :
[DEBUG]   C:\IBMRAD70\myworkspace\TestJavaJunit4\target\classes
[DEBUG]   C:\IBMRAD70\myworkspace\TestJavaJunit4\target\test-classes
[DEBUG]   c:\mavenrepository\junit\junit\4.1\junit-4.1.jar
[DEBUG]
c:\mavenrepository\org\codehaus\plexus\plexus-archiver\1.0-alpha-7\ple
xus-archiver-1.0-alpha-7.jar
[DEBUG]
c:\mavenrepository\org\apache\maven\plugins\maven-surefire-plugin\2.3-
SNAPSHOT\maven-surefire-plugin-2.3-SNAPSHOT.jar
[DEBUG]
c:\mavenrepository\org\apache\maven\surefire\surefire-api\2.1-SNAPSHOT
\surefire-api-2.1-SNAPSHOT.jar
[DEBUG]
c:\mavenrepository\org\codehaus\plexus\plexus-container-default\1.0-al
pha-8\plexus-container-default-1.0-alpha-8.jar
[DEBUG]
c:\mavenrepository\classworlds\classworlds\1.1-alpha-2\classworlds-1.1
-alpha-2.jar
[DEBUG]
c:\mavenrepository\org\codehaus\plexus\plexus-utils\1.1\plexus-utils-1
.1.jar
[DEBUG]
c:\mavenrepository\org\apache\maven\maven-plugin-api\2.0\maven-plugin-
api-2.0.jar
[DEBUG]
c:\mavenrepository\org\apache\maven\maven-artifact\2.0\maven-artifact-
2.0.jar
[DEBUG]
c:\mavenrepository\commons-lang\commons-lang\2.1\commons-lang-2.1.jar
[DEBUG]
c:\mavenrepository\org\apache\maven\surefire\surefire-booter\2.1-SNAPS
HOT\surefire-booter-2.1-SNAPSHOT.jar
[DEBUG] Setting system property [localRepository]=[c:/mavenrepository]
[DEBUG] Setting system property
[basedir]=[C:\IBMRAD70\myworkspace\TestJavaJunit
4]
[DEBUG] Using JVM: C:\Program Files\Java\jdk1.5.0_09\jre\bin\java
[INFO] Surefire report directory:
C:\IBMRAD70\myworkspace\TestJavaJunit4\target\
surefire-reports
Forking command line: "C:\Program Files\Java\jdk1.5.0_09\jre\bin\java"
-enableas
sertions -classpath
c:\mavenrepository\org\codehaus\plexus\plexus-archiver\1.0-a
lpha-7\plexus-archiver-1.0-alpha-7.jar;c:\mavenrepository\junit\junit\3.
8.1\juni
t-3.8.1.jar;c:\mavenrepository\org\apache\maven\surefire\surefire-api\2.
1-SNAPSH
OT\surefire-api-2.1-SNAPSHOT.jar;c:\mavenrepository\org\codehaus\plexus\
plexus-c
ontainer-default\1.0-alpha-8\plexus-container-default-1.0-alpha-8.jar;c:
\mavenre
pository\classworlds\classworlds\1.1-alpha-2\classworlds-1.1-alpha-2.jar
;c:\mave
nrepository\org\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.1.jar;c:
\mavenre
pository\org\apache\maven\surefire\surefire-booter\2.1-SNAPSHOT\surefire
-booter-
2.1-SNAPSHOT.jar;c:\mavenrepository\commons-lang\commons-lang\2.1\common
s-lang-2
.1.jar org.apache.maven.surefire.booter.SurefireBooter
C:\DOCUME~1\tlageson\LOCA
LS~1\Temp\surefire26769tmp
C:\DOCUME~1\tlageson\LOCALS~1\Temp\surefire26770tmp

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.lageson.sample.MyAppTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.06 sec

Results :

Tests run: 3, Failures: 0, Errors: 0, Skipped: 0

[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Thu Jan 11 08:17:06 CST 2007
[INFO] Final Memory: 4M/10M
[INFO]
------------------------------------------------------------------------


My pom is:
<project xmlns="http://maven.apache.org/POM/4.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<groupId>com.lageson.sample</groupId>
	<artifactId>TestJavaJunit4</artifactId>
	<packaging>jar</packaging>
	<version>1.0-SNAPSHOT</version>
	<name>TestJavaJunit4</name>
	<url>http://maven.apache.org</url>
	<repositories>
		<repository>
			<id>apache.org</id>
			<name>Maven Snapshots</name>
			<url>
	
http://people.apache.org/repo/m2-snapshot-repository
			</url>
			<releases>
				<enabled>false</enabled>
			</releases>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
		</repository>
	</repositories>
	<pluginRepositories>
		<pluginRepository>
			<id>apache.org</id>
			<name>Maven Plugin Snapshots</name>
			<url>
	
http://people.apache.org/repo/m2-snapshot-repository
			</url>
			<releases>
				<enabled>false</enabled>
			</releases>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
		</pluginRepository>
	</pluginRepositories>
	<dependencies>
		<dependency>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-surefire-plugin</artifactId>
			<version>2.3-SNAPSHOT</version>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.1</version>
			<scope>runtime</scope>
		</dependency>
	</dependencies>
	<build>
		<plugins>
			<plugin>
	
<groupId>org.apache.maven.plugins</groupId>
	
<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.5</source>
					<target>1.5</target>
					<!--
<compilerArgument>-verbose</compilerArgument> -->

				</configuration>
			</plugin>
			<plugin>
	
<groupId>org.apache.maven.plugins</groupId>
	
<artifactId>maven-surefire-plugin</artifactId>
				<version>2.3-SNAPSHOT</version>
				<configuration>
					<source>1.5</source>
					<target>1.5</target>
					<forkMode>always</forkMode>
					<!--
<forkMode>pertest</forkMode> -->
					<!-- <forkMode>always</forkMode>
-->
	
<argLine>-enableassertions</argLine>
				</configuration>

			</plugin>

		</plugins>
	</build>
</project>

>>>>>>>>>>>>>>>>>>>>>>>>>

-----Original Message-----
From: Tom Huybrechts [mailto:tom.huybrechts@gmail.com] 
Sent: Wednesday, January 10, 2007 1:00 PM
To: Maven Users List
Subject: Re: M2 & Junit4.1: Problems using the 2.3 Snapshot of
maven-surefire-plugin

You're using surefire-plugin 2.2, not 2.3-SNAPSHOT.
Try specifying this version explicitly, or run with -U.
Did you add the apache snapshot repository ?

tom

On 1/10/07, Lageson,Thomas M <TL...@travelers.com> wrote:
> Here is the output you requested.   Let me know if you need more
> information.
>
> - Tom
>
> C:\IBMRAD70\myworkspace\TestJavaJunit4>mvn -X test
> + Error stacktraces are turned on.
> Maven version: 2.0.4
> [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents
> and Settin
> gs\tlageson\.m2\plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from:
> 'C:\maven-2.0.4\conf\p
> lugin-registry.xml'
> [INFO] Scanning for projects...
> [INFO]
>
------------------------------------------------------------------------
> -
> ---
> [INFO] Building TestJavaJunit4
> [INFO]    task-segment: [test]
> [INFO]
>
------------------------------------------------------------------------
> -
> ---
> [DEBUG] maven-resources-plugin: resolved to version 2.2 from
repository
> central
> [DEBUG] Retrieving parent-POM:
org.apache.maven.plugins:maven-plugins::1
> for pro
> ject: null:maven-resources-plugin:maven-plugin:2.2 from the
repository.
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
> project: org
> .apache.maven.plugins:maven-plugins:pom:1 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
> org.apache.mave
> n:maven-parent:pom:1 from the repository.
> [DEBUG] maven-compiler-plugin: resolved to version 2.0.1 from
repository
> central
>
> [DEBUG] Retrieving parent-POM:
org.apache.maven.plugins:maven-plugins::1
> for pro
> ject: null:maven-compiler-plugin:maven-plugin:2.0.1 from the
repository.
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
> project: org
> .apache.maven.plugins:maven-plugins:pom:1 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
> org.apache.mave
> n:maven-parent:pom:1 from the repository.
> [DEBUG] maven-surefire-plugin: resolved to version 2.2 from repository
> central
> [DEBUG] Retrieving parent-POM:
org.apache.maven.plugins:maven-plugins::1
> for pro
> ject: null:maven-surefire-plugin:maven-plugin:2.2 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
> project: org
> .apache.maven.plugins:maven-plugins:pom:1 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
> org.apache.mave
> n:maven-parent:pom:1 from the repository.
> [DEBUG]
>
org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.2:runtime
>  (selected for runtime)
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for
project:
> org.apac
> he.maven:maven-model:jar:2.0 from the repository.
> [DEBUG]   org.apache.maven:maven-model:jar:2.0:runtime (selected for
> runtime)
> [DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
(selected
> for run
> time)
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for
project:
> null:mav
> en-project:jar:2.0 from the repository.
> [DEBUG]   org.apache.maven:maven-project:jar:2.0:runtime (selected for
> runtime)
> [DEBUG]
> org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime
>  (selected for runtime)
> [DEBUG]       classworlds:classworlds:jar:1.1-alpha-2:runtime
(selected
> for runt
> ime)
> [DEBUG]       junit:junit:jar:3.8.1:runtime (selected for runtime)
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for
project:
> org.apac
> he.maven:maven-artifact:jar:2.0 from the repository.
> [DEBUG]     org.apache.maven:maven-artifact:jar:2.0:runtime (selected
> for runtim
> e)
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for
project:
> org.apac
> he.maven:maven-artifact-manager:jar:2.0 from the repository.
> [DEBUG]     org.apache.maven:maven-artifact-manager:jar:2.0:runtime
> (selected fo
> r runtime)
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for
project:
> org.apac
> he.maven:maven-repository-metadata:jar:2.0 from the repository.
> [DEBUG]
org.apache.maven:maven-repository-metadata:jar:2.0:runtime
> (select
> ed for runtime)
> [DEBUG]
> org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime
> (selected for runtime)
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for
project:
> null:mav
> en-profile:jar:2.0 from the repository.
> [DEBUG]     org.apache.maven:maven-profile:jar:2.0:runtime (selected
for
> runtime
> )
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for
project:
> org.apac
> he.maven:maven-plugin-api:jar:2.0 from the repository.
> [DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected
> for runtim
> e)
> [DEBUG] Configuring mojo
> 'org.apache.maven.plugins:maven-resources-plugin:2.2:re
> sources' -->
> [DEBUG]   (f) filters = []
> [DEBUG]   (f) outputDirectory =
> C:\IBMRAD70\myworkspace\TestJavaJunit4\target\cl
> asses
> [DEBUG]   (f) project = org.apache.maven.project.MavenProject@1dc21e69
> [DEBUG]   (f) resources = [org.apache.maven.model.Resource@861f24]
> [DEBUG] -- end configuration --
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [DEBUG] com.lageson.sample:TestJavaJunit4:jar:1.0-SNAPSHOT (selected
for
> null)
> [DEBUG]   junit:junit:jar:4.1:test (selected for test)
> [DEBUG]
>
org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.0.1:runtim
> e (selected for runtime)
> [DEBUG] Retrieving parent-POM:
> org.codehaus.plexus:plexus-compiler::1.5.2 for pr
> oject: null:plexus-compiler-api:jar:1.5.2 from the repository.
> [DEBUG] Retrieving parent-POM:
> org.codehaus.plexus:plexus-components::1.1.5 for
> project: null:plexus-compiler:pom:1.5.2 from the repository.
> [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.5 for
> project: or
> g.codehaus.plexus:plexus-components:pom:1.1.5 from the repository.
> [DEBUG]   org.codehaus.plexus:plexus-compiler-api:jar:1.5.2:runtime
> (selected fo
> r runtime)
> [DEBUG]
> org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime
>  (selected for runtime)
> [DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
> (selected for r
> untime)
> [DEBUG]       classworlds:classworlds:jar:1.1-alpha-2:runtime
(selected
> for runt
> ime)
> [DEBUG]       junit:junit:jar:3.8.1:runtime (selected for runtime)
> [DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected
> for runti
> me)
> [DEBUG] Retrieving parent-POM:
> org.codehaus.plexus:plexus-compiler::1.5.2 for pr
> oject: null:plexus-compiler-manager:jar:1.5.2 from the repository.
> [DEBUG] Retrieving parent-POM:
> org.codehaus.plexus:plexus-components::1.1.5 for
> project: null:plexus-compiler:pom:1.5.2 from the repository.
> [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.5 for
> project: or
> g.codehaus.plexus:plexus-components:pom:1.1.5 from the repository.
> [DEBUG]
org.codehaus.plexus:plexus-compiler-manager:jar:1.5.2:runtime
> (selecte
> d for runtime)
> [DEBUG] Retrieving parent-POM:
> org.codehaus.plexus:plexus-compilers::1.5.2 for p
> roject: null:plexus-compiler-javac:jar:1.5.2 from the repository.
> [DEBUG] Retrieving parent-POM:
> org.codehaus.plexus:plexus-compiler::1.5.2 for pr
> oject: org.codehaus.plexus:plexus-compilers:pom:1.5.2 from the
> repository.
> [DEBUG] Retrieving parent-POM:
> org.codehaus.plexus:plexus-components::1.1.5 for
> project: null:plexus-compiler:pom:1.5.2 from the repository.
> [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.5 for
> project: or
> g.codehaus.plexus:plexus-components:pom:1.1.5 from the repository.
> [DEBUG]   org.codehaus.plexus:plexus-compiler-javac:jar:1.5.2:runtime
> (selected
> for runtime)
> [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for
> project: nu
> ll:plexus-utils:jar:1.0.5 from the repository.
> [DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.5:runtime
(removed
> - nearer
>  found: 1.0.4)
> [DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected
> for runtim
> e)
> [DEBUG]   org.apache.maven:maven-artifact:jar:2.0:runtime (selected
for
> runtime)
>
> [DEBUG] Configuring mojo
> 'org.apache.maven.plugins:maven-compiler-plugin:2.0.1:c
> ompile' -->
> [DEBUG]   (f) basedir = C:\IBMRAD70\myworkspace\TestJavaJunit4
> [DEBUG]   (f) buildDirectory =
> C:\IBMRAD70\myworkspace\TestJavaJunit4\target
> [DEBUG]   (f) classpathElements =
> [C:\IBMRAD70\myworkspace\TestJavaJunit4\target
> \classes]
> [DEBUG]   (f) compileSourceRoots =
> [C:\IBMRAD70\myworkspace\TestJavaJunit4\src\m
> ain\java]
> [DEBUG]   (f) compilerId = javac
> [DEBUG]   (f) debug = true
> [DEBUG]   (f) fork = false
> [DEBUG]   (f) optimize = false
> [DEBUG]   (f) outputDirectory =
> C:\IBMRAD70\myworkspace\TestJavaJunit4\target\cl
> asses
> [DEBUG]   (f) outputFileName = TestJavaJunit4-1.0-SNAPSHOT
> [DEBUG]   (f) projectArtifact =
> com.lageson.sample:TestJavaJunit4:jar:1.0-SNAPSH
> OT
> [DEBUG]   (f) showDeprecation = false
> [DEBUG]   (f) showWarnings = false
> [DEBUG]   (f) source = 1.5
> [DEBUG]   (f) staleMillis = 0
> [DEBUG]   (f) target = 1.5
> [DEBUG]   (f) verbose = false
> [DEBUG] -- end configuration --
> [INFO] [compiler:compile]
> [DEBUG] Using compiler 'javac'.
> [DEBUG] Source directories:
> [C:\IBMRAD70\myworkspace\TestJavaJunit4\src\main\jav
> a]
> [DEBUG] Classpath:
> [C:\IBMRAD70\myworkspace\TestJavaJunit4\target\classes]
> [DEBUG] Output directory:
> C:\IBMRAD70\myworkspace\TestJavaJunit4\target\classes
> [INFO] Nothing to compile - all classes are up to date
> [DEBUG] Configuring mojo
> 'org.apache.maven.plugins:maven-resources-plugin:2.2:te
> stResources' -->
> [DEBUG]   (f) filters = []
> [DEBUG]   (f) outputDirectory =
> C:\IBMRAD70\myworkspace\TestJavaJunit4\target\te
> st-classes
> [DEBUG]   (f) project = org.apache.maven.project.MavenProject@1dc21e69
> [DEBUG]   (f) resources = [org.apache.maven.model.Resource@d02b51]
> [DEBUG] -- end configuration --
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [DEBUG] com.lageson.sample:TestJavaJunit4:jar:1.0-SNAPSHOT (selected
for
> null)
> [DEBUG]   junit:junit:jar:4.1:test (selected for test)
> [DEBUG] Configuring mojo
> 'org.apache.maven.plugins:maven-compiler-plugin:2.0.1:t
> estCompile' -->
> [DEBUG]   (f) basedir = C:\IBMRAD70\myworkspace\TestJavaJunit4
> [DEBUG]   (f) buildDirectory =
> C:\IBMRAD70\myworkspace\TestJavaJunit4\target
> [DEBUG]   (f) classpathElements =
> [C:\IBMRAD70\myworkspace\TestJavaJunit4\target
> \classes, C:\IBMRAD70\myworkspace\TestJavaJunit4\target\test-classes,
> c:\mavenre
> pository\junit\junit\4.1\junit-4.1.jar]
> [DEBUG]   (f) compileSourceRoots =
> [C:\IBMRAD70\myworkspace\TestJavaJunit4\src\t
> est\java]
> [DEBUG]   (f) compilerId = javac
> [DEBUG]   (f) debug = true
> [DEBUG]   (f) fork = false
> [DEBUG]   (f) optimize = false
> [DEBUG]   (f) outputDirectory =
> C:\IBMRAD70\myworkspace\TestJavaJunit4\target\te
> st-classes
> [DEBUG]   (f) outputFileName = TestJavaJunit4-1.0-SNAPSHOT
> [DEBUG]   (f) showDeprecation = false
> [DEBUG]   (f) showWarnings = false
> [DEBUG]   (f) source = 1.5
> [DEBUG]   (f) staleMillis = 0
> [DEBUG]   (f) target = 1.5
> [DEBUG]   (f) verbose = false
> [DEBUG] -- end configuration --
> [INFO] [compiler:testCompile]
> [DEBUG] Using compiler 'javac'.
> [DEBUG] Source directories:
> [C:\IBMRAD70\myworkspace\TestJavaJunit4\src\test\jav
> a]
> [DEBUG] Classpath:
> [C:\IBMRAD70\myworkspace\TestJavaJunit4\target\classes
>  C:\IBMRAD70\myworkspace\TestJavaJunit4\target\test-classes
>  c:\mavenrepository\junit\junit\4.1\junit-4.1.jar]
> [DEBUG] Output directory:
> C:\IBMRAD70\myworkspace\TestJavaJunit4\target\test-cla
> sses
> [INFO] Nothing to compile - all classes are up to date
> [DEBUG] com.lageson.sample:TestJavaJunit4:jar:1.0-SNAPSHOT (selected
for
> null)
> [DEBUG]   junit:junit:jar:4.1:test (selected for test)
> [DEBUG]
>
org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.2:runtime
> (selected for runtime)
> [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for
> project: nu
> ll:plexus-utils:jar:1.1 from the repository.
> [DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected
for
> runtime
> )
> [DEBUG]   org.apache.maven:maven-artifact:jar:2.0:runtime (selected
for
> runtime)
>
> [DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
(removed
> - nearer
>  found: 1.1)
> [DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected
> for runtim
> e)
> [DEBUG] Retrieving parent-POM: org.apache.maven.surefire:surefire::2.0
> for proje
> ct: null:surefire-booter:jar:2.0 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
> project: org
> .apache.maven.surefire:surefire:pom:2.0 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
> org.apache.mave
> n:maven-parent:pom:1 from the repository.
> [DEBUG]   org.apache.maven.surefire:surefire-booter:jar:2.0:runtime
> (selected fo
> r runtime)
> [DEBUG] Retrieving parent-POM: org.apache.maven.surefire:surefire::2.0
> for proje
> ct: null:surefire-api:jar:2.0 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
> project: org
> .apache.maven.surefire:surefire:pom:2.0 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
> org.apache.mave
> n:maven-parent:pom:1 from the repository.
> [DEBUG]     org.apache.maven.surefire:surefire-api:jar:2.0:runtime
> (selected for
>  runtime)
> [DEBUG] Configuring mojo
> 'org.apache.maven.plugins:maven-surefire-plugin:2.2:tes
> t' -->
> [DEBUG]   (f) argLine = -enableassertions
> [DEBUG]   (f) basedir = C:\IBMRAD70\myworkspace\TestJavaJunit4
> [DEBUG]   (f) childDelegation = false
> [DEBUG]   (f) classesDirectory =
> C:\IBMRAD70\myworkspace\TestJavaJunit4\target\c
> lasses
> [DEBUG]   (f) classpathElements =
> [C:\IBMRAD70\myworkspace\TestJavaJunit4\target
> \classes, C:\IBMRAD70\myworkspace\TestJavaJunit4\target\test-classes,
> c:\mavenre
> pository\junit\junit\4.1\junit-4.1.jar]
> [DEBUG]   (f) disableXmlReport = false
> [DEBUG]   (f) forkMode = once
> [DEBUG]   (f) jvm = java
> [DEBUG]   (f) localRepository = [local] -> file://c:/mavenrepository
> [DEBUG]   (f) parallel = false
> [DEBUG]   (f) pluginArtifactMap =
> {org.codehaus.plexus:plexus-utils=org.codehaus
> .plexus:plexus-utils:jar:1.1:runtime,
> org.apache.maven.surefire:surefire-api=org
> .apache.maven.surefire:surefire-api:jar:2.0:runtime,
> org.apache.maven:maven-arti
> fact=org.apache.maven:maven-artifact:jar:2.0:runtime,
> org.apache.maven:maven-plu
> gin-api=org.apache.maven:maven-plugin-api:jar:2.0:runtime,
> org.apache.maven.sure
>
fire:surefire-booter=org.apache.maven.surefire:surefire-booter:jar:2.0:r
> untime}
> [DEBUG]   (f) printSummary = true
> [DEBUG]   (f) projectArtifactMap =
> {junit:junit=junit:junit:jar:4.1:test}
> [DEBUG]   (f) remoteRepositories = [[central] ->
> http://repo1.maven.org/maven2]
> [DEBUG]   (f) reportFormat = brief
> [DEBUG]   (f) reportsDirectory =
> C:\IBMRAD70\myworkspace\TestJavaJunit4\target\s
> urefire-reports
> [DEBUG]   (f) testClassesDirectory =
> C:\IBMRAD70\myworkspace\TestJavaJunit4\targ
> et\test-classes
> [DEBUG]   (f) testSourceDirectory =
> C:\IBMRAD70\myworkspace\TestJavaJunit4\src\t
> est\java
> [DEBUG]   (f) threadCount = 5
> [DEBUG]   (f) trimStackTrace = true
> [DEBUG]   (f) useFile = true
> [DEBUG] -- end configuration --
> [INFO] [surefire:test]
> [DEBUG] dummy:dummy:jar:1.0 (selected for null)
> [DEBUG]   org.apache.maven.surefire:surefire-booter:jar:2.0:runtime
> (selected fo
> r runtime)
> [DEBUG]     org.apache.maven.surefire:surefire-api:jar:2.0:runtime
> (selected for
>  runtime)
> [DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.1:runtime
(selected
> for run
> time)
> [DEBUG] Adding to surefire booter test classpath:
> c:\mavenrepository\org\apache\
> maven\surefire\surefire-api\2.0\surefire-api-2.0.jar
> [DEBUG] Adding to surefire booter test classpath:
> c:\mavenrepository\org\codehau
> s\plexus\plexus-utils\1.1\plexus-utils-1.1.jar
> [DEBUG] Adding to surefire booter test classpath:
> c:\mavenrepository\org\apache\
> maven\surefire\surefire-booter\2.0\surefire-booter-2.0.jar
> [DEBUG] dummy:dummy:jar:1.0 (selected for null)
> [DEBUG] Retrieving parent-POM:
> org.apache.maven.surefire:surefire-providers::2.0
>  for project: null:surefire-junit:jar:2.0 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache.maven.surefire:surefire::2.0
> for proje
> ct: null:surefire-providers:pom:null from the repository.
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
> project: org
> .apache.maven.surefire:surefire:pom:2.0 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
> org.apache.mave
> n:maven-parent:pom:1 from the repository.
> [DEBUG]   org.apache.maven.surefire:surefire-junit:jar:2.0 (selected
for
> null)
> [DEBUG]     org.apache.maven.surefire:surefire-api:jar:2.0:compile
> (selected for
>  compile)
> [DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.1:compile
(selected
> for com
> pile)
> [DEBUG]     junit:junit:jar:3.8.1:compile (selected for compile)
> [DEBUG] Adding to surefire test classpath:
> c:\mavenrepository\junit\junit\3.8.1\
> junit-3.8.1.jar
> [DEBUG] Adding to surefire test classpath:
> c:\mavenrepository\org\apache\maven\s
> urefire\surefire-junit\2.0\surefire-junit-2.0.jar
> [DEBUG] Adding to surefire test classpath:
> c:\mavenrepository\org\apache\maven\s
> urefire\surefire-api\2.0\surefire-api-2.0.jar
> [DEBUG] Adding to surefire test classpath:
> c:\mavenrepository\org\codehaus\plexu
> s\plexus-utils\1.1\plexus-utils-1.1.jar
> [DEBUG] Test Classpath :
> [DEBUG]   C:\IBMRAD70\myworkspace\TestJavaJunit4\target\classes
> [DEBUG]   C:\IBMRAD70\myworkspace\TestJavaJunit4\target\test-classes
> [DEBUG]   c:\mavenrepository\junit\junit\4.1\junit-4.1.jar
> [DEBUG] Setting system property [localRepository]=[c:/mavenrepository]
> [DEBUG] Setting system property
> [basedir]=[C:\IBMRAD70\myworkspace\TestJavaJunit
> 4]
> [INFO] Surefire report directory:
> C:\IBMRAD70\myworkspace\TestJavaJunit4\target\
> surefire-reports
> Forking command line: java -enableassertions -classpath
> c:\mavenrepository\org\a
>
pache\maven\surefire\surefire-api\2.0\surefire-api-2.0.jar;c:\mavenrepos
> itory\or
>
g\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.1.jar;c:\mavenreposito
> ry\org\a
> pache\maven\surefire\surefire-booter\2.0\surefire-booter-2.0.jar
> org.apache.mave
> n.surefire.booter.SurefireBooter
> C:\DOCUME~1\tlageson\LOCALS~1\Temp\surefire2862
> 2tmp C:\DOCUME~1\tlageson\LOCALS~1\Temp\surefire28623tmp
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running com.lageson.sample.MyAppTest
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.04
sec
>
> Results :
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0
>
> [INFO]
>
------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
>
------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Wed Jan 10 11:49:24 CST 2007
> [INFO] Final Memory: 3M/6M
> [INFO]
>
------------------------------------------------------------------------
>
> C:\IBMRAD70\myworkspace\TestJavaJunit4>
>
> -----Original Message-----
> From: Tom Huybrechts [mailto:tom.huybrechts@gmail.com]
> Sent: Wednesday, January 10, 2007 10:09 AM
> To: Maven Users List
> Subject: Re: M2 & Junit4.1: Problems using the 2.3 Snapshot of
> maven-surefire-plugin
>
> Can you run with -X to see if the junit4 provider is being used ?
>
> Tom
>
> On 1/10/07, Lageson,Thomas M <TL...@travelers.com> wrote:
> > I have noticed a couple of things in my testing of the 2.3 Snapshot
of
> > the maven-surefire-plugin when going against JUnit 4.1 with Maven2.
> >
> >
> >
> > 1)        It does not recognize the setup (@Before annotation).
> >
> > 2)           It did not recognize test method names (@Test
annotation)
> > that didn't have a method name beginning with test (according to the
> > Junit docs, the method names no longer have to be named
> > test<methodname>.
> >
> > 3)           It only runs one test file.  I have tried forking.  No
> > matter what I try, simply running "mvn clean test" will only run one
> > test file.  Running "mvn clean test
> > -Dtest=MyAppTest,MyAppTest1,MyAppTest2" will run all three tests.  I
> > expected that "mvn clean test" would run all the tests in the
project.
> >
> >
> >
> > Any ideas, obvious things I am overlooking?
> >
> >
> >
> > Thanks.
> >
> >
> >
> > My pom.xml is:
> >
> > <project xmlns="http://maven.apache.org/POM/4.0.0"
> >
> >       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >
> >       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > http://maven.apache.org/maven-v4_0_0.xsd">
> >
> >       <modelVersion>4.0.0</modelVersion>
> >
> >       <groupId>com.lageson.sample</groupId>
> >
> >       <artifactId>TestJavaJunit4</artifactId>
> >
> >       <packaging>jar</packaging>
> >
> >       <version>1.0-SNAPSHOT</version>
> >
> >       <name>TestJavaJunit4</name>
> >
> >       <url>http://maven.apache.org</url>
> >
> >       <dependencies>
> >
> >             <dependency>
> >
> >                   <groupId>junit</groupId>
> >
> >                   <artifactId>junit</artifactId>
> >
> >                   <version>4.1</version>
> >
> >                   <scope>test</scope>
> >
> >             </dependency>
> >
> >       </dependencies>
> >
> >       <build>
> >
> >             <plugins>
> >
> >                   <plugin>
> >
> >                         <groupId>org.apache.maven.plugins</groupId>
> >
> >
<artifactId>maven-compiler-plugin</artifactId>
> >
> >                         <configuration>
> >
> >                               <source>1.5</source>
> >
> >                               <target>1.5</target>
> >
> >                               <!--
> > <compilerArgument>-verbose</compilerArgument> -->
> >
> >
> >
> >                         </configuration>
> >
> >                   </plugin>
> >
> >                   <plugin>
> >
> >                         <groupId>org.apache.maven.plugins</groupId>
> >
> >
<artifactId>maven-surefire-plugin</artifactId>
> >
> >                         <configuration>
> >
> >                               <source>1.5</source>
> >
> >                               <target>1.5</target>
> >
> >                               <!-- <forkMode>pertest</forkMode> -->
> >
> >                               <!-- <forkMode>always</forkMode>-->
> >
> >                               <argLine>-enableassertions</argLine>
> >
> >                         </configuration>
> >
> >
> >
> >                   </plugin>
> >
> >
> >
> >             </plugins>
> >
> >       </build>
> >
> > </project>
> >
> >
> >
> > My output is:
> >
> > C:\IBMRAD70\myworkspace\TestJavaJunit4>mvn clean test
> >
> > [INFO] Scanning for projects...
> >
> > [INFO]
> >
>
------------------------------------------------------------------------
> > -
> >
> > ---
> >
> > [INFO] Building TestJavaJunit4
> >
> > [INFO]    task-segment: [clean, test]
> >
> > [INFO]
> >
>
------------------------------------------------------------------------
> > -
> >
> > ---
> >
> > [INFO] [clean:clean]
> >
> > [INFO] Deleting directory
> C:\IBMRAD70\myworkspace\TestJavaJunit4\target
> >
> > [INFO] Deleting directory
> > C:\IBMRAD70\myworkspace\TestJavaJunit4\target\classes
> >
> > [INFO] Deleting directory
> > C:\IBMRAD70\myworkspace\TestJavaJunit4\target\test-cla
> >
> > sses
> >
> > [INFO] [resources:resources]
> >
> > [INFO] Using default encoding to copy filtered resources.
> >
> > [INFO] [compiler:compile]
> >
> > Compiling 1 source file to
> > C:\IBMRAD70\myworkspace\TestJavaJunit4\target\classes
> >
> >
> >
> > [INFO] [resources:testResources]
> >
> > [INFO] Using default encoding to copy filtered resources.
> >
> > [INFO] [compiler:testCompile]
> >
> > Compiling 3 source files to
> > C:\IBMRAD70\myworkspace\TestJavaJunit4\target\test-c
> >
> > lasses
> >
> > [INFO] [surefire:test]
> >
> > [INFO] Surefire report directory:
> > C:\IBMRAD70\myworkspace\TestJavaJunit4\target\
> >
> > surefire-reports
> >
> >
> >
> > -------------------------------------------------------
> >
> >  T E S T S
> >
> > -------------------------------------------------------
> >
> > Running com.lageson.sample.MyAppTest
> >
> > Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.04
> sec
> >
> >
> >
> > Results :
> >
> > Tests run: 3, Failures: 0, Errors: 0, Skipped: 0
> >
> >
> >
> > [INFO]
> >
>
------------------------------------------------------------------------
> >
> > [INFO] BUILD SUCCESSFUL
> >
> > [INFO]
> >
>
------------------------------------------------------------------------
> >
> > [INFO] Total time: 4 seconds
> >
> > [INFO] Finished at: Wed Jan 10 09:50:46 CST 2007
> >
> > [INFO] Final Memory: 4M/7M
> >
> > [INFO]
> >
>
------------------------------------------------------------------------
> >
> >
> >
> >
> >
>
========================================================================
> ======
> > This communication, together with any attachments hereto or links
> contained herein, is for the sole use of the intended recipient(s) and
> may contain information that is confidential or legally protected. If
> you are not the intended recipient, you are hereby notified that any
> review, disclosure, copying, dissemination, distribution or use of
this
> communication is STRICTLY PROHIBITED.  If you have received this
> communication in error, please notify the sender immediately by return
> e-mail message and delete the original and all copies of the
> communication, along with any attachments hereto or links herein, from
> your system.
> >
> >
>
========================================================================
> ======
> > The St. Paul Travelers e-mail system made this annotation on
01/10/07,
> 10:56:23.
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>
========================================================================
======
> This communication, together with any attachments hereto or links
contained herein, is for the sole use of the intended recipient(s) and
may contain information that is confidential or legally protected. If
you are not the intended recipient, you are hereby notified that any
review, disclosure, copying, dissemination, distribution or use of this
communication is STRICTLY PROHIBITED.  If you have received this
communication in error, please notify the sender immediately by return
e-mail message and delete the original and all copies of the
communication, along with any attachments hereto or links herein, from
your system.
>
>
========================================================================
======
> The St. Paul Travelers e-mail system made this annotation on 01/10/07,
12:55:56.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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



==============================================================================
This communication, together with any attachments hereto or links contained herein, is for the sole use of the intended recipient(s) and may contain information that is confidential or legally protected. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, dissemination, distribution or use of this communication is STRICTLY PROHIBITED.  If you have received this communication in error, please notify the sender immediately by return e-mail message and delete the original and all copies of the communication, along with any attachments hereto or links herein, from your system.

==============================================================================
The St. Paul Travelers e-mail system made this annotation on 01/11/07, 09:25:56.



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


Re: M2 & Junit4.1: Problems using the 2.3 Snapshot of maven-surefire-plugin

Posted by Tom Huybrechts <to...@gmail.com>.
You're using surefire-plugin 2.2, not 2.3-SNAPSHOT.
Try specifying this version explicitly, or run with -U.
Did you add the apache snapshot repository ?

tom

On 1/10/07, Lageson,Thomas M <TL...@travelers.com> wrote:
> Here is the output you requested.   Let me know if you need more
> information.
>
> - Tom
>
> C:\IBMRAD70\myworkspace\TestJavaJunit4>mvn -X test
> + Error stacktraces are turned on.
> Maven version: 2.0.4
> [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents
> and Settin
> gs\tlageson\.m2\plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from:
> 'C:\maven-2.0.4\conf\p
> lugin-registry.xml'
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> -
> ---
> [INFO] Building TestJavaJunit4
> [INFO]    task-segment: [test]
> [INFO]
> ------------------------------------------------------------------------
> -
> ---
> [DEBUG] maven-resources-plugin: resolved to version 2.2 from repository
> central
> [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1
> for pro
> ject: null:maven-resources-plugin:maven-plugin:2.2 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
> project: org
> .apache.maven.plugins:maven-plugins:pom:1 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
> org.apache.mave
> n:maven-parent:pom:1 from the repository.
> [DEBUG] maven-compiler-plugin: resolved to version 2.0.1 from repository
> central
>
> [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1
> for pro
> ject: null:maven-compiler-plugin:maven-plugin:2.0.1 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
> project: org
> .apache.maven.plugins:maven-plugins:pom:1 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
> org.apache.mave
> n:maven-parent:pom:1 from the repository.
> [DEBUG] maven-surefire-plugin: resolved to version 2.2 from repository
> central
> [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1
> for pro
> ject: null:maven-surefire-plugin:maven-plugin:2.2 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
> project: org
> .apache.maven.plugins:maven-plugins:pom:1 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
> org.apache.mave
> n:maven-parent:pom:1 from the repository.
> [DEBUG]
> org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.2:runtime
>  (selected for runtime)
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
> org.apac
> he.maven:maven-model:jar:2.0 from the repository.
> [DEBUG]   org.apache.maven:maven-model:jar:2.0:runtime (selected for
> runtime)
> [DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected
> for run
> time)
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
> null:mav
> en-project:jar:2.0 from the repository.
> [DEBUG]   org.apache.maven:maven-project:jar:2.0:runtime (selected for
> runtime)
> [DEBUG]
> org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime
>  (selected for runtime)
> [DEBUG]       classworlds:classworlds:jar:1.1-alpha-2:runtime (selected
> for runt
> ime)
> [DEBUG]       junit:junit:jar:3.8.1:runtime (selected for runtime)
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
> org.apac
> he.maven:maven-artifact:jar:2.0 from the repository.
> [DEBUG]     org.apache.maven:maven-artifact:jar:2.0:runtime (selected
> for runtim
> e)
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
> org.apac
> he.maven:maven-artifact-manager:jar:2.0 from the repository.
> [DEBUG]     org.apache.maven:maven-artifact-manager:jar:2.0:runtime
> (selected fo
> r runtime)
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
> org.apac
> he.maven:maven-repository-metadata:jar:2.0 from the repository.
> [DEBUG]       org.apache.maven:maven-repository-metadata:jar:2.0:runtime
> (select
> ed for runtime)
> [DEBUG]
> org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime
> (selected for runtime)
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
> null:mav
> en-profile:jar:2.0 from the repository.
> [DEBUG]     org.apache.maven:maven-profile:jar:2.0:runtime (selected for
> runtime
> )
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
> org.apac
> he.maven:maven-plugin-api:jar:2.0 from the repository.
> [DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected
> for runtim
> e)
> [DEBUG] Configuring mojo
> 'org.apache.maven.plugins:maven-resources-plugin:2.2:re
> sources' -->
> [DEBUG]   (f) filters = []
> [DEBUG]   (f) outputDirectory =
> C:\IBMRAD70\myworkspace\TestJavaJunit4\target\cl
> asses
> [DEBUG]   (f) project = org.apache.maven.project.MavenProject@1dc21e69
> [DEBUG]   (f) resources = [org.apache.maven.model.Resource@861f24]
> [DEBUG] -- end configuration --
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [DEBUG] com.lageson.sample:TestJavaJunit4:jar:1.0-SNAPSHOT (selected for
> null)
> [DEBUG]   junit:junit:jar:4.1:test (selected for test)
> [DEBUG]
> org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.0.1:runtim
> e (selected for runtime)
> [DEBUG] Retrieving parent-POM:
> org.codehaus.plexus:plexus-compiler::1.5.2 for pr
> oject: null:plexus-compiler-api:jar:1.5.2 from the repository.
> [DEBUG] Retrieving parent-POM:
> org.codehaus.plexus:plexus-components::1.1.5 for
> project: null:plexus-compiler:pom:1.5.2 from the repository.
> [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.5 for
> project: or
> g.codehaus.plexus:plexus-components:pom:1.1.5 from the repository.
> [DEBUG]   org.codehaus.plexus:plexus-compiler-api:jar:1.5.2:runtime
> (selected fo
> r runtime)
> [DEBUG]
> org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime
>  (selected for runtime)
> [DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
> (selected for r
> untime)
> [DEBUG]       classworlds:classworlds:jar:1.1-alpha-2:runtime (selected
> for runt
> ime)
> [DEBUG]       junit:junit:jar:3.8.1:runtime (selected for runtime)
> [DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected
> for runti
> me)
> [DEBUG] Retrieving parent-POM:
> org.codehaus.plexus:plexus-compiler::1.5.2 for pr
> oject: null:plexus-compiler-manager:jar:1.5.2 from the repository.
> [DEBUG] Retrieving parent-POM:
> org.codehaus.plexus:plexus-components::1.1.5 for
> project: null:plexus-compiler:pom:1.5.2 from the repository.
> [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.5 for
> project: or
> g.codehaus.plexus:plexus-components:pom:1.1.5 from the repository.
> [DEBUG]   org.codehaus.plexus:plexus-compiler-manager:jar:1.5.2:runtime
> (selecte
> d for runtime)
> [DEBUG] Retrieving parent-POM:
> org.codehaus.plexus:plexus-compilers::1.5.2 for p
> roject: null:plexus-compiler-javac:jar:1.5.2 from the repository.
> [DEBUG] Retrieving parent-POM:
> org.codehaus.plexus:plexus-compiler::1.5.2 for pr
> oject: org.codehaus.plexus:plexus-compilers:pom:1.5.2 from the
> repository.
> [DEBUG] Retrieving parent-POM:
> org.codehaus.plexus:plexus-components::1.1.5 for
> project: null:plexus-compiler:pom:1.5.2 from the repository.
> [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.5 for
> project: or
> g.codehaus.plexus:plexus-components:pom:1.1.5 from the repository.
> [DEBUG]   org.codehaus.plexus:plexus-compiler-javac:jar:1.5.2:runtime
> (selected
> for runtime)
> [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for
> project: nu
> ll:plexus-utils:jar:1.0.5 from the repository.
> [DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.5:runtime (removed
> - nearer
>  found: 1.0.4)
> [DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected
> for runtim
> e)
> [DEBUG]   org.apache.maven:maven-artifact:jar:2.0:runtime (selected for
> runtime)
>
> [DEBUG] Configuring mojo
> 'org.apache.maven.plugins:maven-compiler-plugin:2.0.1:c
> ompile' -->
> [DEBUG]   (f) basedir = C:\IBMRAD70\myworkspace\TestJavaJunit4
> [DEBUG]   (f) buildDirectory =
> C:\IBMRAD70\myworkspace\TestJavaJunit4\target
> [DEBUG]   (f) classpathElements =
> [C:\IBMRAD70\myworkspace\TestJavaJunit4\target
> \classes]
> [DEBUG]   (f) compileSourceRoots =
> [C:\IBMRAD70\myworkspace\TestJavaJunit4\src\m
> ain\java]
> [DEBUG]   (f) compilerId = javac
> [DEBUG]   (f) debug = true
> [DEBUG]   (f) fork = false
> [DEBUG]   (f) optimize = false
> [DEBUG]   (f) outputDirectory =
> C:\IBMRAD70\myworkspace\TestJavaJunit4\target\cl
> asses
> [DEBUG]   (f) outputFileName = TestJavaJunit4-1.0-SNAPSHOT
> [DEBUG]   (f) projectArtifact =
> com.lageson.sample:TestJavaJunit4:jar:1.0-SNAPSH
> OT
> [DEBUG]   (f) showDeprecation = false
> [DEBUG]   (f) showWarnings = false
> [DEBUG]   (f) source = 1.5
> [DEBUG]   (f) staleMillis = 0
> [DEBUG]   (f) target = 1.5
> [DEBUG]   (f) verbose = false
> [DEBUG] -- end configuration --
> [INFO] [compiler:compile]
> [DEBUG] Using compiler 'javac'.
> [DEBUG] Source directories:
> [C:\IBMRAD70\myworkspace\TestJavaJunit4\src\main\jav
> a]
> [DEBUG] Classpath:
> [C:\IBMRAD70\myworkspace\TestJavaJunit4\target\classes]
> [DEBUG] Output directory:
> C:\IBMRAD70\myworkspace\TestJavaJunit4\target\classes
> [INFO] Nothing to compile - all classes are up to date
> [DEBUG] Configuring mojo
> 'org.apache.maven.plugins:maven-resources-plugin:2.2:te
> stResources' -->
> [DEBUG]   (f) filters = []
> [DEBUG]   (f) outputDirectory =
> C:\IBMRAD70\myworkspace\TestJavaJunit4\target\te
> st-classes
> [DEBUG]   (f) project = org.apache.maven.project.MavenProject@1dc21e69
> [DEBUG]   (f) resources = [org.apache.maven.model.Resource@d02b51]
> [DEBUG] -- end configuration --
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [DEBUG] com.lageson.sample:TestJavaJunit4:jar:1.0-SNAPSHOT (selected for
> null)
> [DEBUG]   junit:junit:jar:4.1:test (selected for test)
> [DEBUG] Configuring mojo
> 'org.apache.maven.plugins:maven-compiler-plugin:2.0.1:t
> estCompile' -->
> [DEBUG]   (f) basedir = C:\IBMRAD70\myworkspace\TestJavaJunit4
> [DEBUG]   (f) buildDirectory =
> C:\IBMRAD70\myworkspace\TestJavaJunit4\target
> [DEBUG]   (f) classpathElements =
> [C:\IBMRAD70\myworkspace\TestJavaJunit4\target
> \classes, C:\IBMRAD70\myworkspace\TestJavaJunit4\target\test-classes,
> c:\mavenre
> pository\junit\junit\4.1\junit-4.1.jar]
> [DEBUG]   (f) compileSourceRoots =
> [C:\IBMRAD70\myworkspace\TestJavaJunit4\src\t
> est\java]
> [DEBUG]   (f) compilerId = javac
> [DEBUG]   (f) debug = true
> [DEBUG]   (f) fork = false
> [DEBUG]   (f) optimize = false
> [DEBUG]   (f) outputDirectory =
> C:\IBMRAD70\myworkspace\TestJavaJunit4\target\te
> st-classes
> [DEBUG]   (f) outputFileName = TestJavaJunit4-1.0-SNAPSHOT
> [DEBUG]   (f) showDeprecation = false
> [DEBUG]   (f) showWarnings = false
> [DEBUG]   (f) source = 1.5
> [DEBUG]   (f) staleMillis = 0
> [DEBUG]   (f) target = 1.5
> [DEBUG]   (f) verbose = false
> [DEBUG] -- end configuration --
> [INFO] [compiler:testCompile]
> [DEBUG] Using compiler 'javac'.
> [DEBUG] Source directories:
> [C:\IBMRAD70\myworkspace\TestJavaJunit4\src\test\jav
> a]
> [DEBUG] Classpath:
> [C:\IBMRAD70\myworkspace\TestJavaJunit4\target\classes
>  C:\IBMRAD70\myworkspace\TestJavaJunit4\target\test-classes
>  c:\mavenrepository\junit\junit\4.1\junit-4.1.jar]
> [DEBUG] Output directory:
> C:\IBMRAD70\myworkspace\TestJavaJunit4\target\test-cla
> sses
> [INFO] Nothing to compile - all classes are up to date
> [DEBUG] com.lageson.sample:TestJavaJunit4:jar:1.0-SNAPSHOT (selected for
> null)
> [DEBUG]   junit:junit:jar:4.1:test (selected for test)
> [DEBUG]
> org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.2:runtime
> (selected for runtime)
> [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for
> project: nu
> ll:plexus-utils:jar:1.1 from the repository.
> [DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected for
> runtime
> )
> [DEBUG]   org.apache.maven:maven-artifact:jar:2.0:runtime (selected for
> runtime)
>
> [DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed
> - nearer
>  found: 1.1)
> [DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected
> for runtim
> e)
> [DEBUG] Retrieving parent-POM: org.apache.maven.surefire:surefire::2.0
> for proje
> ct: null:surefire-booter:jar:2.0 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
> project: org
> .apache.maven.surefire:surefire:pom:2.0 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
> org.apache.mave
> n:maven-parent:pom:1 from the repository.
> [DEBUG]   org.apache.maven.surefire:surefire-booter:jar:2.0:runtime
> (selected fo
> r runtime)
> [DEBUG] Retrieving parent-POM: org.apache.maven.surefire:surefire::2.0
> for proje
> ct: null:surefire-api:jar:2.0 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
> project: org
> .apache.maven.surefire:surefire:pom:2.0 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
> org.apache.mave
> n:maven-parent:pom:1 from the repository.
> [DEBUG]     org.apache.maven.surefire:surefire-api:jar:2.0:runtime
> (selected for
>  runtime)
> [DEBUG] Configuring mojo
> 'org.apache.maven.plugins:maven-surefire-plugin:2.2:tes
> t' -->
> [DEBUG]   (f) argLine = -enableassertions
> [DEBUG]   (f) basedir = C:\IBMRAD70\myworkspace\TestJavaJunit4
> [DEBUG]   (f) childDelegation = false
> [DEBUG]   (f) classesDirectory =
> C:\IBMRAD70\myworkspace\TestJavaJunit4\target\c
> lasses
> [DEBUG]   (f) classpathElements =
> [C:\IBMRAD70\myworkspace\TestJavaJunit4\target
> \classes, C:\IBMRAD70\myworkspace\TestJavaJunit4\target\test-classes,
> c:\mavenre
> pository\junit\junit\4.1\junit-4.1.jar]
> [DEBUG]   (f) disableXmlReport = false
> [DEBUG]   (f) forkMode = once
> [DEBUG]   (f) jvm = java
> [DEBUG]   (f) localRepository = [local] -> file://c:/mavenrepository
> [DEBUG]   (f) parallel = false
> [DEBUG]   (f) pluginArtifactMap =
> {org.codehaus.plexus:plexus-utils=org.codehaus
> .plexus:plexus-utils:jar:1.1:runtime,
> org.apache.maven.surefire:surefire-api=org
> .apache.maven.surefire:surefire-api:jar:2.0:runtime,
> org.apache.maven:maven-arti
> fact=org.apache.maven:maven-artifact:jar:2.0:runtime,
> org.apache.maven:maven-plu
> gin-api=org.apache.maven:maven-plugin-api:jar:2.0:runtime,
> org.apache.maven.sure
> fire:surefire-booter=org.apache.maven.surefire:surefire-booter:jar:2.0:r
> untime}
> [DEBUG]   (f) printSummary = true
> [DEBUG]   (f) projectArtifactMap =
> {junit:junit=junit:junit:jar:4.1:test}
> [DEBUG]   (f) remoteRepositories = [[central] ->
> http://repo1.maven.org/maven2]
> [DEBUG]   (f) reportFormat = brief
> [DEBUG]   (f) reportsDirectory =
> C:\IBMRAD70\myworkspace\TestJavaJunit4\target\s
> urefire-reports
> [DEBUG]   (f) testClassesDirectory =
> C:\IBMRAD70\myworkspace\TestJavaJunit4\targ
> et\test-classes
> [DEBUG]   (f) testSourceDirectory =
> C:\IBMRAD70\myworkspace\TestJavaJunit4\src\t
> est\java
> [DEBUG]   (f) threadCount = 5
> [DEBUG]   (f) trimStackTrace = true
> [DEBUG]   (f) useFile = true
> [DEBUG] -- end configuration --
> [INFO] [surefire:test]
> [DEBUG] dummy:dummy:jar:1.0 (selected for null)
> [DEBUG]   org.apache.maven.surefire:surefire-booter:jar:2.0:runtime
> (selected fo
> r runtime)
> [DEBUG]     org.apache.maven.surefire:surefire-api:jar:2.0:runtime
> (selected for
>  runtime)
> [DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected
> for run
> time)
> [DEBUG] Adding to surefire booter test classpath:
> c:\mavenrepository\org\apache\
> maven\surefire\surefire-api\2.0\surefire-api-2.0.jar
> [DEBUG] Adding to surefire booter test classpath:
> c:\mavenrepository\org\codehau
> s\plexus\plexus-utils\1.1\plexus-utils-1.1.jar
> [DEBUG] Adding to surefire booter test classpath:
> c:\mavenrepository\org\apache\
> maven\surefire\surefire-booter\2.0\surefire-booter-2.0.jar
> [DEBUG] dummy:dummy:jar:1.0 (selected for null)
> [DEBUG] Retrieving parent-POM:
> org.apache.maven.surefire:surefire-providers::2.0
>  for project: null:surefire-junit:jar:2.0 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache.maven.surefire:surefire::2.0
> for proje
> ct: null:surefire-providers:pom:null from the repository.
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
> project: org
> .apache.maven.surefire:surefire:pom:2.0 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
> org.apache.mave
> n:maven-parent:pom:1 from the repository.
> [DEBUG]   org.apache.maven.surefire:surefire-junit:jar:2.0 (selected for
> null)
> [DEBUG]     org.apache.maven.surefire:surefire-api:jar:2.0:compile
> (selected for
>  compile)
> [DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.1:compile (selected
> for com
> pile)
> [DEBUG]     junit:junit:jar:3.8.1:compile (selected for compile)
> [DEBUG] Adding to surefire test classpath:
> c:\mavenrepository\junit\junit\3.8.1\
> junit-3.8.1.jar
> [DEBUG] Adding to surefire test classpath:
> c:\mavenrepository\org\apache\maven\s
> urefire\surefire-junit\2.0\surefire-junit-2.0.jar
> [DEBUG] Adding to surefire test classpath:
> c:\mavenrepository\org\apache\maven\s
> urefire\surefire-api\2.0\surefire-api-2.0.jar
> [DEBUG] Adding to surefire test classpath:
> c:\mavenrepository\org\codehaus\plexu
> s\plexus-utils\1.1\plexus-utils-1.1.jar
> [DEBUG] Test Classpath :
> [DEBUG]   C:\IBMRAD70\myworkspace\TestJavaJunit4\target\classes
> [DEBUG]   C:\IBMRAD70\myworkspace\TestJavaJunit4\target\test-classes
> [DEBUG]   c:\mavenrepository\junit\junit\4.1\junit-4.1.jar
> [DEBUG] Setting system property [localRepository]=[c:/mavenrepository]
> [DEBUG] Setting system property
> [basedir]=[C:\IBMRAD70\myworkspace\TestJavaJunit
> 4]
> [INFO] Surefire report directory:
> C:\IBMRAD70\myworkspace\TestJavaJunit4\target\
> surefire-reports
> Forking command line: java -enableassertions -classpath
> c:\mavenrepository\org\a
> pache\maven\surefire\surefire-api\2.0\surefire-api-2.0.jar;c:\mavenrepos
> itory\or
> g\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.1.jar;c:\mavenreposito
> ry\org\a
> pache\maven\surefire\surefire-booter\2.0\surefire-booter-2.0.jar
> org.apache.mave
> n.surefire.booter.SurefireBooter
> C:\DOCUME~1\tlageson\LOCALS~1\Temp\surefire2862
> 2tmp C:\DOCUME~1\tlageson\LOCALS~1\Temp\surefire28623tmp
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running com.lageson.sample.MyAppTest
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.04 sec
>
> Results :
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Wed Jan 10 11:49:24 CST 2007
> [INFO] Final Memory: 3M/6M
> [INFO]
> ------------------------------------------------------------------------
>
> C:\IBMRAD70\myworkspace\TestJavaJunit4>
>
> -----Original Message-----
> From: Tom Huybrechts [mailto:tom.huybrechts@gmail.com]
> Sent: Wednesday, January 10, 2007 10:09 AM
> To: Maven Users List
> Subject: Re: M2 & Junit4.1: Problems using the 2.3 Snapshot of
> maven-surefire-plugin
>
> Can you run with -X to see if the junit4 provider is being used ?
>
> Tom
>
> On 1/10/07, Lageson,Thomas M <TL...@travelers.com> wrote:
> > I have noticed a couple of things in my testing of the 2.3 Snapshot of
> > the maven-surefire-plugin when going against JUnit 4.1 with Maven2.
> >
> >
> >
> > 1)        It does not recognize the setup (@Before annotation).
> >
> > 2)           It did not recognize test method names (@Test annotation)
> > that didn't have a method name beginning with test (according to the
> > Junit docs, the method names no longer have to be named
> > test<methodname>.
> >
> > 3)           It only runs one test file.  I have tried forking.  No
> > matter what I try, simply running "mvn clean test" will only run one
> > test file.  Running "mvn clean test
> > -Dtest=MyAppTest,MyAppTest1,MyAppTest2" will run all three tests.  I
> > expected that "mvn clean test" would run all the tests in the project.
> >
> >
> >
> > Any ideas, obvious things I am overlooking?
> >
> >
> >
> > Thanks.
> >
> >
> >
> > My pom.xml is:
> >
> > <project xmlns="http://maven.apache.org/POM/4.0.0"
> >
> >       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >
> >       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > http://maven.apache.org/maven-v4_0_0.xsd">
> >
> >       <modelVersion>4.0.0</modelVersion>
> >
> >       <groupId>com.lageson.sample</groupId>
> >
> >       <artifactId>TestJavaJunit4</artifactId>
> >
> >       <packaging>jar</packaging>
> >
> >       <version>1.0-SNAPSHOT</version>
> >
> >       <name>TestJavaJunit4</name>
> >
> >       <url>http://maven.apache.org</url>
> >
> >       <dependencies>
> >
> >             <dependency>
> >
> >                   <groupId>junit</groupId>
> >
> >                   <artifactId>junit</artifactId>
> >
> >                   <version>4.1</version>
> >
> >                   <scope>test</scope>
> >
> >             </dependency>
> >
> >       </dependencies>
> >
> >       <build>
> >
> >             <plugins>
> >
> >                   <plugin>
> >
> >                         <groupId>org.apache.maven.plugins</groupId>
> >
> >                         <artifactId>maven-compiler-plugin</artifactId>
> >
> >                         <configuration>
> >
> >                               <source>1.5</source>
> >
> >                               <target>1.5</target>
> >
> >                               <!--
> > <compilerArgument>-verbose</compilerArgument> -->
> >
> >
> >
> >                         </configuration>
> >
> >                   </plugin>
> >
> >                   <plugin>
> >
> >                         <groupId>org.apache.maven.plugins</groupId>
> >
> >                         <artifactId>maven-surefire-plugin</artifactId>
> >
> >                         <configuration>
> >
> >                               <source>1.5</source>
> >
> >                               <target>1.5</target>
> >
> >                               <!-- <forkMode>pertest</forkMode> -->
> >
> >                               <!-- <forkMode>always</forkMode>-->
> >
> >                               <argLine>-enableassertions</argLine>
> >
> >                         </configuration>
> >
> >
> >
> >                   </plugin>
> >
> >
> >
> >             </plugins>
> >
> >       </build>
> >
> > </project>
> >
> >
> >
> > My output is:
> >
> > C:\IBMRAD70\myworkspace\TestJavaJunit4>mvn clean test
> >
> > [INFO] Scanning for projects...
> >
> > [INFO]
> >
> ------------------------------------------------------------------------
> > -
> >
> > ---
> >
> > [INFO] Building TestJavaJunit4
> >
> > [INFO]    task-segment: [clean, test]
> >
> > [INFO]
> >
> ------------------------------------------------------------------------
> > -
> >
> > ---
> >
> > [INFO] [clean:clean]
> >
> > [INFO] Deleting directory
> C:\IBMRAD70\myworkspace\TestJavaJunit4\target
> >
> > [INFO] Deleting directory
> > C:\IBMRAD70\myworkspace\TestJavaJunit4\target\classes
> >
> > [INFO] Deleting directory
> > C:\IBMRAD70\myworkspace\TestJavaJunit4\target\test-cla
> >
> > sses
> >
> > [INFO] [resources:resources]
> >
> > [INFO] Using default encoding to copy filtered resources.
> >
> > [INFO] [compiler:compile]
> >
> > Compiling 1 source file to
> > C:\IBMRAD70\myworkspace\TestJavaJunit4\target\classes
> >
> >
> >
> > [INFO] [resources:testResources]
> >
> > [INFO] Using default encoding to copy filtered resources.
> >
> > [INFO] [compiler:testCompile]
> >
> > Compiling 3 source files to
> > C:\IBMRAD70\myworkspace\TestJavaJunit4\target\test-c
> >
> > lasses
> >
> > [INFO] [surefire:test]
> >
> > [INFO] Surefire report directory:
> > C:\IBMRAD70\myworkspace\TestJavaJunit4\target\
> >
> > surefire-reports
> >
> >
> >
> > -------------------------------------------------------
> >
> >  T E S T S
> >
> > -------------------------------------------------------
> >
> > Running com.lageson.sample.MyAppTest
> >
> > Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.04
> sec
> >
> >
> >
> > Results :
> >
> > Tests run: 3, Failures: 0, Errors: 0, Skipped: 0
> >
> >
> >
> > [INFO]
> >
> ------------------------------------------------------------------------
> >
> > [INFO] BUILD SUCCESSFUL
> >
> > [INFO]
> >
> ------------------------------------------------------------------------
> >
> > [INFO] Total time: 4 seconds
> >
> > [INFO] Finished at: Wed Jan 10 09:50:46 CST 2007
> >
> > [INFO] Final Memory: 4M/7M
> >
> > [INFO]
> >
> ------------------------------------------------------------------------
> >
> >
> >
> >
> >
> ========================================================================
> ======
> > This communication, together with any attachments hereto or links
> contained herein, is for the sole use of the intended recipient(s) and
> may contain information that is confidential or legally protected. If
> you are not the intended recipient, you are hereby notified that any
> review, disclosure, copying, dissemination, distribution or use of this
> communication is STRICTLY PROHIBITED.  If you have received this
> communication in error, please notify the sender immediately by return
> e-mail message and delete the original and all copies of the
> communication, along with any attachments hereto or links herein, from
> your system.
> >
> >
> ========================================================================
> ======
> > The St. Paul Travelers e-mail system made this annotation on 01/10/07,
> 10:56:23.
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
> ==============================================================================
> This communication, together with any attachments hereto or links contained herein, is for the sole use of the intended recipient(s) and may contain information that is confidential or legally protected. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, dissemination, distribution or use of this communication is STRICTLY PROHIBITED.  If you have received this communication in error, please notify the sender immediately by return e-mail message and delete the original and all copies of the communication, along with any attachments hereto or links herein, from your system.
>
> ==============================================================================
> The St. Paul Travelers e-mail system made this annotation on 01/10/07, 12:55:56.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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


RE: M2 & Junit4.1: Problems using the 2.3 Snapshot of maven-surefire-plugin

Posted by "Lageson,Thomas M" <TL...@travelers.com>.
Here is the output you requested.   Let me know if you need more
information.

- Tom

C:\IBMRAD70\myworkspace\TestJavaJunit4>mvn -X test
+ Error stacktraces are turned on.
Maven version: 2.0.4
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents
and Settin
gs\tlageson\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from:
'C:\maven-2.0.4\conf\p
lugin-registry.xml'
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
-
---
[INFO] Building TestJavaJunit4
[INFO]    task-segment: [test]
[INFO]
------------------------------------------------------------------------
-
---
[DEBUG] maven-resources-plugin: resolved to version 2.2 from repository
central
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1
for pro
ject: null:maven-resources-plugin:maven-plugin:2.2 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
project: org
.apache.maven.plugins:maven-plugins:pom:1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
org.apache.mave
n:maven-parent:pom:1 from the repository.
[DEBUG] maven-compiler-plugin: resolved to version 2.0.1 from repository
central

[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1
for pro
ject: null:maven-compiler-plugin:maven-plugin:2.0.1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
project: org
.apache.maven.plugins:maven-plugins:pom:1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
org.apache.mave
n:maven-parent:pom:1 from the repository.
[DEBUG] maven-surefire-plugin: resolved to version 2.2 from repository
central
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1
for pro
ject: null:maven-surefire-plugin:maven-plugin:2.2 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
project: org
.apache.maven.plugins:maven-plugins:pom:1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
org.apache.mave
n:maven-parent:pom:1 from the repository.
[DEBUG]
org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.2:runtime
 (selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
org.apac
he.maven:maven-model:jar:2.0 from the repository.
[DEBUG]   org.apache.maven:maven-model:jar:2.0:runtime (selected for
runtime)
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected
for run
time)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
null:mav
en-project:jar:2.0 from the repository.
[DEBUG]   org.apache.maven:maven-project:jar:2.0:runtime (selected for
runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime
 (selected for runtime)
[DEBUG]       classworlds:classworlds:jar:1.1-alpha-2:runtime (selected
for runt
ime)
[DEBUG]       junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
org.apac
he.maven:maven-artifact:jar:2.0 from the repository.
[DEBUG]     org.apache.maven:maven-artifact:jar:2.0:runtime (selected
for runtim
e)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
org.apac
he.maven:maven-artifact-manager:jar:2.0 from the repository.
[DEBUG]     org.apache.maven:maven-artifact-manager:jar:2.0:runtime
(selected fo
r runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
org.apac
he.maven:maven-repository-metadata:jar:2.0 from the repository.
[DEBUG]       org.apache.maven:maven-repository-metadata:jar:2.0:runtime
(select
ed for runtime)
[DEBUG]
org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
null:mav
en-profile:jar:2.0 from the repository.
[DEBUG]     org.apache.maven:maven-profile:jar:2.0:runtime (selected for
runtime
)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
org.apac
he.maven:maven-plugin-api:jar:2.0 from the repository.
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected
for runtim
e)
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-resources-plugin:2.2:re
sources' -->
[DEBUG]   (f) filters = []
[DEBUG]   (f) outputDirectory =
C:\IBMRAD70\myworkspace\TestJavaJunit4\target\cl
asses
[DEBUG]   (f) project = org.apache.maven.project.MavenProject@1dc21e69
[DEBUG]   (f) resources = [org.apache.maven.model.Resource@861f24]
[DEBUG] -- end configuration --
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[DEBUG] com.lageson.sample:TestJavaJunit4:jar:1.0-SNAPSHOT (selected for
null)
[DEBUG]   junit:junit:jar:4.1:test (selected for test)
[DEBUG]
org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.0.1:runtim
e (selected for runtime)
[DEBUG] Retrieving parent-POM:
org.codehaus.plexus:plexus-compiler::1.5.2 for pr
oject: null:plexus-compiler-api:jar:1.5.2 from the repository.
[DEBUG] Retrieving parent-POM:
org.codehaus.plexus:plexus-components::1.1.5 for
project: null:plexus-compiler:pom:1.5.2 from the repository.
[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.5 for
project: or
g.codehaus.plexus:plexus-components:pom:1.1.5 from the repository.
[DEBUG]   org.codehaus.plexus:plexus-compiler-api:jar:1.5.2:runtime
(selected fo
r runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime
 (selected for runtime)
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
(selected for r
untime)
[DEBUG]       classworlds:classworlds:jar:1.1-alpha-2:runtime (selected
for runt
ime)
[DEBUG]       junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected
for runti
me)
[DEBUG] Retrieving parent-POM:
org.codehaus.plexus:plexus-compiler::1.5.2 for pr
oject: null:plexus-compiler-manager:jar:1.5.2 from the repository.
[DEBUG] Retrieving parent-POM:
org.codehaus.plexus:plexus-components::1.1.5 for
project: null:plexus-compiler:pom:1.5.2 from the repository.
[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.5 for
project: or
g.codehaus.plexus:plexus-components:pom:1.1.5 from the repository.
[DEBUG]   org.codehaus.plexus:plexus-compiler-manager:jar:1.5.2:runtime
(selecte
d for runtime)
[DEBUG] Retrieving parent-POM:
org.codehaus.plexus:plexus-compilers::1.5.2 for p
roject: null:plexus-compiler-javac:jar:1.5.2 from the repository.
[DEBUG] Retrieving parent-POM:
org.codehaus.plexus:plexus-compiler::1.5.2 for pr
oject: org.codehaus.plexus:plexus-compilers:pom:1.5.2 from the
repository.
[DEBUG] Retrieving parent-POM:
org.codehaus.plexus:plexus-components::1.1.5 for
project: null:plexus-compiler:pom:1.5.2 from the repository.
[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.5 for
project: or
g.codehaus.plexus:plexus-components:pom:1.1.5 from the repository.
[DEBUG]   org.codehaus.plexus:plexus-compiler-javac:jar:1.5.2:runtime
(selected
for runtime)
[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for
project: nu
ll:plexus-utils:jar:1.0.5 from the repository.
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.5:runtime (removed
- nearer
 found: 1.0.4)
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected
for runtim
e)
[DEBUG]   org.apache.maven:maven-artifact:jar:2.0:runtime (selected for
runtime)

[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-compiler-plugin:2.0.1:c
ompile' -->
[DEBUG]   (f) basedir = C:\IBMRAD70\myworkspace\TestJavaJunit4
[DEBUG]   (f) buildDirectory =
C:\IBMRAD70\myworkspace\TestJavaJunit4\target
[DEBUG]   (f) classpathElements =
[C:\IBMRAD70\myworkspace\TestJavaJunit4\target
\classes]
[DEBUG]   (f) compileSourceRoots =
[C:\IBMRAD70\myworkspace\TestJavaJunit4\src\m
ain\java]
[DEBUG]   (f) compilerId = javac
[DEBUG]   (f) debug = true
[DEBUG]   (f) fork = false
[DEBUG]   (f) optimize = false
[DEBUG]   (f) outputDirectory =
C:\IBMRAD70\myworkspace\TestJavaJunit4\target\cl
asses
[DEBUG]   (f) outputFileName = TestJavaJunit4-1.0-SNAPSHOT
[DEBUG]   (f) projectArtifact =
com.lageson.sample:TestJavaJunit4:jar:1.0-SNAPSH
OT
[DEBUG]   (f) showDeprecation = false
[DEBUG]   (f) showWarnings = false
[DEBUG]   (f) source = 1.5
[DEBUG]   (f) staleMillis = 0
[DEBUG]   (f) target = 1.5
[DEBUG]   (f) verbose = false
[DEBUG] -- end configuration --
[INFO] [compiler:compile]
[DEBUG] Using compiler 'javac'.
[DEBUG] Source directories:
[C:\IBMRAD70\myworkspace\TestJavaJunit4\src\main\jav
a]
[DEBUG] Classpath:
[C:\IBMRAD70\myworkspace\TestJavaJunit4\target\classes]
[DEBUG] Output directory:
C:\IBMRAD70\myworkspace\TestJavaJunit4\target\classes
[INFO] Nothing to compile - all classes are up to date
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-resources-plugin:2.2:te
stResources' -->
[DEBUG]   (f) filters = []
[DEBUG]   (f) outputDirectory =
C:\IBMRAD70\myworkspace\TestJavaJunit4\target\te
st-classes
[DEBUG]   (f) project = org.apache.maven.project.MavenProject@1dc21e69
[DEBUG]   (f) resources = [org.apache.maven.model.Resource@d02b51]
[DEBUG] -- end configuration --
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[DEBUG] com.lageson.sample:TestJavaJunit4:jar:1.0-SNAPSHOT (selected for
null)
[DEBUG]   junit:junit:jar:4.1:test (selected for test)
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-compiler-plugin:2.0.1:t
estCompile' -->
[DEBUG]   (f) basedir = C:\IBMRAD70\myworkspace\TestJavaJunit4
[DEBUG]   (f) buildDirectory =
C:\IBMRAD70\myworkspace\TestJavaJunit4\target
[DEBUG]   (f) classpathElements =
[C:\IBMRAD70\myworkspace\TestJavaJunit4\target
\classes, C:\IBMRAD70\myworkspace\TestJavaJunit4\target\test-classes,
c:\mavenre
pository\junit\junit\4.1\junit-4.1.jar]
[DEBUG]   (f) compileSourceRoots =
[C:\IBMRAD70\myworkspace\TestJavaJunit4\src\t
est\java]
[DEBUG]   (f) compilerId = javac
[DEBUG]   (f) debug = true
[DEBUG]   (f) fork = false
[DEBUG]   (f) optimize = false
[DEBUG]   (f) outputDirectory =
C:\IBMRAD70\myworkspace\TestJavaJunit4\target\te
st-classes
[DEBUG]   (f) outputFileName = TestJavaJunit4-1.0-SNAPSHOT
[DEBUG]   (f) showDeprecation = false
[DEBUG]   (f) showWarnings = false
[DEBUG]   (f) source = 1.5
[DEBUG]   (f) staleMillis = 0
[DEBUG]   (f) target = 1.5
[DEBUG]   (f) verbose = false
[DEBUG] -- end configuration --
[INFO] [compiler:testCompile]
[DEBUG] Using compiler 'javac'.
[DEBUG] Source directories:
[C:\IBMRAD70\myworkspace\TestJavaJunit4\src\test\jav
a]
[DEBUG] Classpath:
[C:\IBMRAD70\myworkspace\TestJavaJunit4\target\classes
 C:\IBMRAD70\myworkspace\TestJavaJunit4\target\test-classes
 c:\mavenrepository\junit\junit\4.1\junit-4.1.jar]
[DEBUG] Output directory:
C:\IBMRAD70\myworkspace\TestJavaJunit4\target\test-cla
sses
[INFO] Nothing to compile - all classes are up to date
[DEBUG] com.lageson.sample:TestJavaJunit4:jar:1.0-SNAPSHOT (selected for
null)
[DEBUG]   junit:junit:jar:4.1:test (selected for test)
[DEBUG]
org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.2:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for
project: nu
ll:plexus-utils:jar:1.1 from the repository.
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected for
runtime
)
[DEBUG]   org.apache.maven:maven-artifact:jar:2.0:runtime (selected for
runtime)

[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed
- nearer
 found: 1.1)
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected
for runtim
e)
[DEBUG] Retrieving parent-POM: org.apache.maven.surefire:surefire::2.0
for proje
ct: null:surefire-booter:jar:2.0 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
project: org
.apache.maven.surefire:surefire:pom:2.0 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
org.apache.mave
n:maven-parent:pom:1 from the repository.
[DEBUG]   org.apache.maven.surefire:surefire-booter:jar:2.0:runtime
(selected fo
r runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven.surefire:surefire::2.0
for proje
ct: null:surefire-api:jar:2.0 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
project: org
.apache.maven.surefire:surefire:pom:2.0 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
org.apache.mave
n:maven-parent:pom:1 from the repository.
[DEBUG]     org.apache.maven.surefire:surefire-api:jar:2.0:runtime
(selected for
 runtime)
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-surefire-plugin:2.2:tes
t' -->
[DEBUG]   (f) argLine = -enableassertions
[DEBUG]   (f) basedir = C:\IBMRAD70\myworkspace\TestJavaJunit4
[DEBUG]   (f) childDelegation = false
[DEBUG]   (f) classesDirectory =
C:\IBMRAD70\myworkspace\TestJavaJunit4\target\c
lasses
[DEBUG]   (f) classpathElements =
[C:\IBMRAD70\myworkspace\TestJavaJunit4\target
\classes, C:\IBMRAD70\myworkspace\TestJavaJunit4\target\test-classes,
c:\mavenre
pository\junit\junit\4.1\junit-4.1.jar]
[DEBUG]   (f) disableXmlReport = false
[DEBUG]   (f) forkMode = once
[DEBUG]   (f) jvm = java
[DEBUG]   (f) localRepository = [local] -> file://c:/mavenrepository
[DEBUG]   (f) parallel = false
[DEBUG]   (f) pluginArtifactMap =
{org.codehaus.plexus:plexus-utils=org.codehaus
.plexus:plexus-utils:jar:1.1:runtime,
org.apache.maven.surefire:surefire-api=org
.apache.maven.surefire:surefire-api:jar:2.0:runtime,
org.apache.maven:maven-arti
fact=org.apache.maven:maven-artifact:jar:2.0:runtime,
org.apache.maven:maven-plu
gin-api=org.apache.maven:maven-plugin-api:jar:2.0:runtime,
org.apache.maven.sure
fire:surefire-booter=org.apache.maven.surefire:surefire-booter:jar:2.0:r
untime}
[DEBUG]   (f) printSummary = true
[DEBUG]   (f) projectArtifactMap =
{junit:junit=junit:junit:jar:4.1:test}
[DEBUG]   (f) remoteRepositories = [[central] ->
http://repo1.maven.org/maven2]
[DEBUG]   (f) reportFormat = brief
[DEBUG]   (f) reportsDirectory =
C:\IBMRAD70\myworkspace\TestJavaJunit4\target\s
urefire-reports
[DEBUG]   (f) testClassesDirectory =
C:\IBMRAD70\myworkspace\TestJavaJunit4\targ
et\test-classes
[DEBUG]   (f) testSourceDirectory =
C:\IBMRAD70\myworkspace\TestJavaJunit4\src\t
est\java
[DEBUG]   (f) threadCount = 5
[DEBUG]   (f) trimStackTrace = true
[DEBUG]   (f) useFile = true
[DEBUG] -- end configuration --
[INFO] [surefire:test]
[DEBUG] dummy:dummy:jar:1.0 (selected for null)
[DEBUG]   org.apache.maven.surefire:surefire-booter:jar:2.0:runtime
(selected fo
r runtime)
[DEBUG]     org.apache.maven.surefire:surefire-api:jar:2.0:runtime
(selected for
 runtime)
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected
for run
time)
[DEBUG] Adding to surefire booter test classpath:
c:\mavenrepository\org\apache\
maven\surefire\surefire-api\2.0\surefire-api-2.0.jar
[DEBUG] Adding to surefire booter test classpath:
c:\mavenrepository\org\codehau
s\plexus\plexus-utils\1.1\plexus-utils-1.1.jar
[DEBUG] Adding to surefire booter test classpath:
c:\mavenrepository\org\apache\
maven\surefire\surefire-booter\2.0\surefire-booter-2.0.jar
[DEBUG] dummy:dummy:jar:1.0 (selected for null)
[DEBUG] Retrieving parent-POM:
org.apache.maven.surefire:surefire-providers::2.0
 for project: null:surefire-junit:jar:2.0 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven.surefire:surefire::2.0
for proje
ct: null:surefire-providers:pom:null from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
project: org
.apache.maven.surefire:surefire:pom:2.0 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
org.apache.mave
n:maven-parent:pom:1 from the repository.
[DEBUG]   org.apache.maven.surefire:surefire-junit:jar:2.0 (selected for
null)
[DEBUG]     org.apache.maven.surefire:surefire-api:jar:2.0:compile
(selected for
 compile)
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.1:compile (selected
for com
pile)
[DEBUG]     junit:junit:jar:3.8.1:compile (selected for compile)
[DEBUG] Adding to surefire test classpath:
c:\mavenrepository\junit\junit\3.8.1\
junit-3.8.1.jar
[DEBUG] Adding to surefire test classpath:
c:\mavenrepository\org\apache\maven\s
urefire\surefire-junit\2.0\surefire-junit-2.0.jar
[DEBUG] Adding to surefire test classpath:
c:\mavenrepository\org\apache\maven\s
urefire\surefire-api\2.0\surefire-api-2.0.jar
[DEBUG] Adding to surefire test classpath:
c:\mavenrepository\org\codehaus\plexu
s\plexus-utils\1.1\plexus-utils-1.1.jar
[DEBUG] Test Classpath :
[DEBUG]   C:\IBMRAD70\myworkspace\TestJavaJunit4\target\classes
[DEBUG]   C:\IBMRAD70\myworkspace\TestJavaJunit4\target\test-classes
[DEBUG]   c:\mavenrepository\junit\junit\4.1\junit-4.1.jar
[DEBUG] Setting system property [localRepository]=[c:/mavenrepository]
[DEBUG] Setting system property
[basedir]=[C:\IBMRAD70\myworkspace\TestJavaJunit
4]
[INFO] Surefire report directory:
C:\IBMRAD70\myworkspace\TestJavaJunit4\target\
surefire-reports
Forking command line: java -enableassertions -classpath
c:\mavenrepository\org\a
pache\maven\surefire\surefire-api\2.0\surefire-api-2.0.jar;c:\mavenrepos
itory\or
g\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.1.jar;c:\mavenreposito
ry\org\a
pache\maven\surefire\surefire-booter\2.0\surefire-booter-2.0.jar
org.apache.mave
n.surefire.booter.SurefireBooter
C:\DOCUME~1\tlageson\LOCALS~1\Temp\surefire2862
2tmp C:\DOCUME~1\tlageson\LOCALS~1\Temp\surefire28623tmp

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.lageson.sample.MyAppTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.04 sec

Results :
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0

[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Wed Jan 10 11:49:24 CST 2007
[INFO] Final Memory: 3M/6M
[INFO]
------------------------------------------------------------------------

C:\IBMRAD70\myworkspace\TestJavaJunit4>

-----Original Message-----
From: Tom Huybrechts [mailto:tom.huybrechts@gmail.com] 
Sent: Wednesday, January 10, 2007 10:09 AM
To: Maven Users List
Subject: Re: M2 & Junit4.1: Problems using the 2.3 Snapshot of
maven-surefire-plugin

Can you run with -X to see if the junit4 provider is being used ?

Tom

On 1/10/07, Lageson,Thomas M <TL...@travelers.com> wrote:
> I have noticed a couple of things in my testing of the 2.3 Snapshot of
> the maven-surefire-plugin when going against JUnit 4.1 with Maven2.
>
>
>
> 1)        It does not recognize the setup (@Before annotation).
>
> 2)           It did not recognize test method names (@Test annotation)
> that didn't have a method name beginning with test (according to the
> Junit docs, the method names no longer have to be named
> test<methodname>.
>
> 3)           It only runs one test file.  I have tried forking.  No
> matter what I try, simply running "mvn clean test" will only run one
> test file.  Running "mvn clean test
> -Dtest=MyAppTest,MyAppTest1,MyAppTest2" will run all three tests.  I
> expected that "mvn clean test" would run all the tests in the project.
>
>
>
> Any ideas, obvious things I am overlooking?
>
>
>
> Thanks.
>
>
>
> My pom.xml is:
>
> <project xmlns="http://maven.apache.org/POM/4.0.0"
>
>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
>       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd">
>
>       <modelVersion>4.0.0</modelVersion>
>
>       <groupId>com.lageson.sample</groupId>
>
>       <artifactId>TestJavaJunit4</artifactId>
>
>       <packaging>jar</packaging>
>
>       <version>1.0-SNAPSHOT</version>
>
>       <name>TestJavaJunit4</name>
>
>       <url>http://maven.apache.org</url>
>
>       <dependencies>
>
>             <dependency>
>
>                   <groupId>junit</groupId>
>
>                   <artifactId>junit</artifactId>
>
>                   <version>4.1</version>
>
>                   <scope>test</scope>
>
>             </dependency>
>
>       </dependencies>
>
>       <build>
>
>             <plugins>
>
>                   <plugin>
>
>                         <groupId>org.apache.maven.plugins</groupId>
>
>                         <artifactId>maven-compiler-plugin</artifactId>
>
>                         <configuration>
>
>                               <source>1.5</source>
>
>                               <target>1.5</target>
>
>                               <!--
> <compilerArgument>-verbose</compilerArgument> -->
>
>
>
>                         </configuration>
>
>                   </plugin>
>
>                   <plugin>
>
>                         <groupId>org.apache.maven.plugins</groupId>
>
>                         <artifactId>maven-surefire-plugin</artifactId>
>
>                         <configuration>
>
>                               <source>1.5</source>
>
>                               <target>1.5</target>
>
>                               <!-- <forkMode>pertest</forkMode> -->
>
>                               <!-- <forkMode>always</forkMode>-->
>
>                               <argLine>-enableassertions</argLine>
>
>                         </configuration>
>
>
>
>                   </plugin>
>
>
>
>             </plugins>
>
>       </build>
>
> </project>
>
>
>
> My output is:
>
> C:\IBMRAD70\myworkspace\TestJavaJunit4>mvn clean test
>
> [INFO] Scanning for projects...
>
> [INFO]
>
------------------------------------------------------------------------
> -
>
> ---
>
> [INFO] Building TestJavaJunit4
>
> [INFO]    task-segment: [clean, test]
>
> [INFO]
>
------------------------------------------------------------------------
> -
>
> ---
>
> [INFO] [clean:clean]
>
> [INFO] Deleting directory
C:\IBMRAD70\myworkspace\TestJavaJunit4\target
>
> [INFO] Deleting directory
> C:\IBMRAD70\myworkspace\TestJavaJunit4\target\classes
>
> [INFO] Deleting directory
> C:\IBMRAD70\myworkspace\TestJavaJunit4\target\test-cla
>
> sses
>
> [INFO] [resources:resources]
>
> [INFO] Using default encoding to copy filtered resources.
>
> [INFO] [compiler:compile]
>
> Compiling 1 source file to
> C:\IBMRAD70\myworkspace\TestJavaJunit4\target\classes
>
>
>
> [INFO] [resources:testResources]
>
> [INFO] Using default encoding to copy filtered resources.
>
> [INFO] [compiler:testCompile]
>
> Compiling 3 source files to
> C:\IBMRAD70\myworkspace\TestJavaJunit4\target\test-c
>
> lasses
>
> [INFO] [surefire:test]
>
> [INFO] Surefire report directory:
> C:\IBMRAD70\myworkspace\TestJavaJunit4\target\
>
> surefire-reports
>
>
>
> -------------------------------------------------------
>
>  T E S T S
>
> -------------------------------------------------------
>
> Running com.lageson.sample.MyAppTest
>
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.04
sec
>
>
>
> Results :
>
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0
>
>
>
> [INFO]
>
------------------------------------------------------------------------
>
> [INFO] BUILD SUCCESSFUL
>
> [INFO]
>
------------------------------------------------------------------------
>
> [INFO] Total time: 4 seconds
>
> [INFO] Finished at: Wed Jan 10 09:50:46 CST 2007
>
> [INFO] Final Memory: 4M/7M
>
> [INFO]
>
------------------------------------------------------------------------
>
>
>
>
>
========================================================================
======
> This communication, together with any attachments hereto or links
contained herein, is for the sole use of the intended recipient(s) and
may contain information that is confidential or legally protected. If
you are not the intended recipient, you are hereby notified that any
review, disclosure, copying, dissemination, distribution or use of this
communication is STRICTLY PROHIBITED.  If you have received this
communication in error, please notify the sender immediately by return
e-mail message and delete the original and all copies of the
communication, along with any attachments hereto or links herein, from
your system.
>
>
========================================================================
======
> The St. Paul Travelers e-mail system made this annotation on 01/10/07,
10:56:23.
>
>
>

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



==============================================================================
This communication, together with any attachments hereto or links contained herein, is for the sole use of the intended recipient(s) and may contain information that is confidential or legally protected. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, dissemination, distribution or use of this communication is STRICTLY PROHIBITED.  If you have received this communication in error, please notify the sender immediately by return e-mail message and delete the original and all copies of the communication, along with any attachments hereto or links herein, from your system.

==============================================================================
The St. Paul Travelers e-mail system made this annotation on 01/10/07, 12:55:56.



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


Re: M2 & Junit4.1: Problems using the 2.3 Snapshot of maven-surefire-plugin

Posted by Tom Huybrechts <to...@gmail.com>.
Can you run with -X to see if the junit4 provider is being used ?

Tom

On 1/10/07, Lageson,Thomas M <TL...@travelers.com> wrote:
> I have noticed a couple of things in my testing of the 2.3 Snapshot of
> the maven-surefire-plugin when going against JUnit 4.1 with Maven2.
>
>
>
> 1)        It does not recognize the setup (@Before annotation).
>
> 2)           It did not recognize test method names (@Test annotation)
> that didn't have a method name beginning with test (according to the
> Junit docs, the method names no longer have to be named
> test<methodname>.
>
> 3)           It only runs one test file.  I have tried forking.  No
> matter what I try, simply running "mvn clean test" will only run one
> test file.  Running "mvn clean test
> -Dtest=MyAppTest,MyAppTest1,MyAppTest2" will run all three tests.  I
> expected that "mvn clean test" would run all the tests in the project.
>
>
>
> Any ideas, obvious things I am overlooking?
>
>
>
> Thanks.
>
>
>
> My pom.xml is:
>
> <project xmlns="http://maven.apache.org/POM/4.0.0"
>
>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
>       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd">
>
>       <modelVersion>4.0.0</modelVersion>
>
>       <groupId>com.lageson.sample</groupId>
>
>       <artifactId>TestJavaJunit4</artifactId>
>
>       <packaging>jar</packaging>
>
>       <version>1.0-SNAPSHOT</version>
>
>       <name>TestJavaJunit4</name>
>
>       <url>http://maven.apache.org</url>
>
>       <dependencies>
>
>             <dependency>
>
>                   <groupId>junit</groupId>
>
>                   <artifactId>junit</artifactId>
>
>                   <version>4.1</version>
>
>                   <scope>test</scope>
>
>             </dependency>
>
>       </dependencies>
>
>       <build>
>
>             <plugins>
>
>                   <plugin>
>
>                         <groupId>org.apache.maven.plugins</groupId>
>
>                         <artifactId>maven-compiler-plugin</artifactId>
>
>                         <configuration>
>
>                               <source>1.5</source>
>
>                               <target>1.5</target>
>
>                               <!--
> <compilerArgument>-verbose</compilerArgument> -->
>
>
>
>                         </configuration>
>
>                   </plugin>
>
>                   <plugin>
>
>                         <groupId>org.apache.maven.plugins</groupId>
>
>                         <artifactId>maven-surefire-plugin</artifactId>
>
>                         <configuration>
>
>                               <source>1.5</source>
>
>                               <target>1.5</target>
>
>                               <!-- <forkMode>pertest</forkMode> -->
>
>                               <!-- <forkMode>always</forkMode>-->
>
>                               <argLine>-enableassertions</argLine>
>
>                         </configuration>
>
>
>
>                   </plugin>
>
>
>
>             </plugins>
>
>       </build>
>
> </project>
>
>
>
> My output is:
>
> C:\IBMRAD70\myworkspace\TestJavaJunit4>mvn clean test
>
> [INFO] Scanning for projects...
>
> [INFO]
> ------------------------------------------------------------------------
> -
>
> ---
>
> [INFO] Building TestJavaJunit4
>
> [INFO]    task-segment: [clean, test]
>
> [INFO]
> ------------------------------------------------------------------------
> -
>
> ---
>
> [INFO] [clean:clean]
>
> [INFO] Deleting directory C:\IBMRAD70\myworkspace\TestJavaJunit4\target
>
> [INFO] Deleting directory
> C:\IBMRAD70\myworkspace\TestJavaJunit4\target\classes
>
> [INFO] Deleting directory
> C:\IBMRAD70\myworkspace\TestJavaJunit4\target\test-cla
>
> sses
>
> [INFO] [resources:resources]
>
> [INFO] Using default encoding to copy filtered resources.
>
> [INFO] [compiler:compile]
>
> Compiling 1 source file to
> C:\IBMRAD70\myworkspace\TestJavaJunit4\target\classes
>
>
>
> [INFO] [resources:testResources]
>
> [INFO] Using default encoding to copy filtered resources.
>
> [INFO] [compiler:testCompile]
>
> Compiling 3 source files to
> C:\IBMRAD70\myworkspace\TestJavaJunit4\target\test-c
>
> lasses
>
> [INFO] [surefire:test]
>
> [INFO] Surefire report directory:
> C:\IBMRAD70\myworkspace\TestJavaJunit4\target\
>
> surefire-reports
>
>
>
> -------------------------------------------------------
>
>  T E S T S
>
> -------------------------------------------------------
>
> Running com.lageson.sample.MyAppTest
>
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.04 sec
>
>
>
> Results :
>
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0
>
>
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] BUILD SUCCESSFUL
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] Total time: 4 seconds
>
> [INFO] Finished at: Wed Jan 10 09:50:46 CST 2007
>
> [INFO] Final Memory: 4M/7M
>
> [INFO]
> ------------------------------------------------------------------------
>
>
>
>
> ==============================================================================
> This communication, together with any attachments hereto or links contained herein, is for the sole use of the intended recipient(s) and may contain information that is confidential or legally protected. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, dissemination, distribution or use of this communication is STRICTLY PROHIBITED.  If you have received this communication in error, please notify the sender immediately by return e-mail message and delete the original and all copies of the communication, along with any attachments hereto or links herein, from your system.
>
> ==============================================================================
> The St. Paul Travelers e-mail system made this annotation on 01/10/07, 10:56:23.
>
>
>

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