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 <[EMAIL PROTECTED]> 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 = [EMAIL PROTECTED]
[DEBUG]   (f) resources = [EMAIL PROTECTED]
[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 = [EMAIL PROTECTED]
[DEBUG]   (f) resources = [EMAIL PROTECTED]
[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:[EMAIL PROTECTED]
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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



==============================================================================
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to