FW: Problem with M2 on Windows Servers - running tests

2006-03-22 Thread Gest, Stephen B
Hello,
 
This problem is what is reported under SUREFIRE-30. I made the code
changes listed to the SurefireBooter class, updated the jar file, and
now I am able to successfully run the project tests.
 
Stephen
 
 Previous Posting ===
 
-Original Message-
From: Gest, Stephen B 
Sent: Wednesday, March 22, 2006 3:26 PM
To: 'users@maven.apache.org'
Subject: FW: Problem with M2 on Windows Servers - running tests


 
-Original Message-----
From: Gest, Stephen B 
Sent: Wednesday, March 22, 2006 2:29 PM
To: 'users@maven.apache.org'
Subject: Problem with M2 on Windows Servers - running tests


Hello,
 
Here is additional information regarding the error:
 
Executing "mvn -X install" gives the following:
 
+ Error stacktraces are turned on.
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents
and Settings\stgest\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from: 'D:\Maven
2.0.2\conf\plugin-registry.xml'
[INFO] Scanning for projects...
[INFO] Reactor build order: 
[INFO]   Web Service Framework for CME
[INFO]   WSF Common
[INFO]   WSF Provider Interface
[INFO]   WSF Hibernate Provider
[INFO]   WSF Model
[INFO]   WSF Object Server Provider
[INFO]   WSF Object Server Plugin
[INFO]   WSF Axis Demo Library
[INFO]   WSF Service Common
[INFO]   Axis integration
[INFO]   WSF Hibernate Demo Web-Application
[INFO]   WSF Object Server Demo Web-Application
[INFO]   WSF System Tests Common
[INFO]   WSF System Tests Hibernate
[INFO]   WSF System Tests Obs
[INFO]   WSF System Tests
[INFO]


[INFO] Building Web Service Framework for CME
[INFO]task-segment: [install]
[INFO]


[DEBUG] maven-site-plugin: resolved to version 2.0-beta-4 from
repository central
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-site-plugin:maven-plugin:2.0-beta-4
[INFO] Skipping missing optional mojo:
org.apache.maven.plugins:maven-site-plugin:attach-descriptor
[DEBUG] maven-install-plugin: resolved to version 2.0 from repository
central
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-install-plugin:maven-plugin:2.0
[DEBUG] maven-compiler-plugin: resolved to version 2.0 from repository
central
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-compiler-plugin:maven-plugin:2.0
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-surefire-plugin:maven-plugin:2.1.2
[DEBUG] maven-source-plugin: resolved to version 2.0 from repository
central
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-source-plugin:maven-plugin:2.0
[DEBUG] org.apache.maven.plugins:maven-source-plugin:maven-plugin:2.0
(selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-project:jar:2.0
[DEBUG]   org.apache.maven:maven-project:jar:2.0 (selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8
(selected for runtime)
[DEBUG]   classworlds:classworlds:jar:1.1-alpha-2 (selected for
runtime)
[DEBUG]   junit:junit:jar:3.8.1 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-artifact:jar:2.0
[DEBUG] org.apache.maven:maven-artifact:jar:2.0 (selected for
runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-model:jar:2.0
[DEBUG] org.apache.maven:maven-model:jar:2.0 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-artifact-manager:jar:2.0
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0 (selected
for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-repository-metadata:jar:2.0
[DEBUG]   org.apache.maven:maven-repository-metadata:jar:2.0
(selected for runtime)
[DEBUG]   org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5
(selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-profile:jar:2.0
[DEBUG] org.apache.maven:maven-profile:jar:2.0 (selected for
runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-plugin-api:jar:2.0
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0 (selected for
runtime)
[DEBUG]   org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-3 (selected
for runtime)
[DEBUG] classworlds:classworlds:jar:1.1-alpha-2 (selected for
runtime)
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-source-plugin:2.0:jar' -->
[DEBUG]   (f) attach = true
[DEBUG]   (f) compileSourceRoots = [D:\project\wsf\src\main\java]
[DEBUG]   (f) finalName = obs-wsf-1.0pre6-SNAPSHOT
[DEBUG]   (f) outputDirectory = D

RE: FW: Problem with M2 on Windows Servers - running tests

2006-03-22 Thread Gest, Stephen B
Yes, the same project works successfully on Unix and Linux systems, and
also one other Windows system.
The project was used in Maven 1.1, with the success, using th same kinds
of directory names:

C:\Documents And Settings\...
D:\Maven 1.1\...

Also, if we run "mvn install -Dmaven.test.skip="true", then the project
builds successfully.
I would think that if it were a path issue with spaces, that the
compilation would also fail,
unless it is specific to the surefire plugin, which was not in Maven 1.1

Stephen 

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 22, 2006 3:34 PM
To: Maven Users List
Subject: Re: FW: Problem with M2 on Windows Servers - running tests


Have you tried building these same exact projects etc on another system
ie Linux, Unix, or Mac OS X? If not, can you please try this, to ensure
that your problems are limited to Win32?

I would generally expect that your problems are related to the spaces in
folder names...

C:\Documents And Settings\...
D:\Maven 202\...

Wayne


On 3/22/06, Gest, Stephen B <[EMAIL PROTECTED]> wrote:
>
> -Original Message-----
> From: Gest, Stephen B
> Sent: Wednesday, March 22, 2006 2:29 PM
> To: 'users@maven.apache.org'
> Subject: Problem with M2 on Windows Servers - running tests
>
>
> Hello,
>
> Here is additional information regarding the error:
>
> Executing "mvn -X install" gives the following:
>
> + Error stacktraces are turned on.
> [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents 
> and Settings\stgest\.m2\plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from: 'D:\Maven 
> 2.0.2\conf\plugin-registry.xml' [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   Web Service Framework for CME
> [INFO]   WSF Common
> [INFO]   WSF Provider Interface
> [INFO]   WSF Hibernate Provider
> [INFO]   WSF Model
> [INFO]   WSF Object Server Provider
> [INFO]   WSF Object Server Plugin
> [INFO]   WSF Axis Demo Library
> [INFO]   WSF Service Common
> [INFO]   Axis integration
> [INFO]   WSF Hibernate Demo Web-Application
> [INFO]   WSF Object Server Demo Web-Application
> [INFO]   WSF System Tests Common
> [INFO]   WSF System Tests Hibernate
> [INFO]   WSF System Tests Obs
> [INFO]   WSF System Tests
> [INFO]
>

> 
> [INFO] Building Web Service Framework for CME
> [INFO]task-segment: [install]
> [INFO]
>

> 
> [DEBUG] maven-site-plugin: resolved to version 2.0-beta-4 from
> repository central
> [DEBUG] Retrieving parent-POM from the repository for project:
> null:maven-site-plugin:maven-plugin:2.0-beta-4
> [INFO] Skipping missing optional mojo:
> org.apache.maven.plugins:maven-site-plugin:attach-descriptor
> [DEBUG] maven-install-plugin: resolved to version 2.0 from repository
> central
> [DEBUG] Retrieving parent-POM from the repository for project:
> null:maven-install-plugin:maven-plugin:2.0
> [DEBUG] maven-compiler-plugin: resolved to version 2.0 from repository
> central
> [DEBUG] Retrieving parent-POM from the repository for project:
> null:maven-compiler-plugin:maven-plugin:2.0
> [DEBUG] Retrieving parent-POM from the repository for project:
> null:maven-surefire-plugin:maven-plugin:2.1.2
> [DEBUG] maven-source-plugin: resolved to version 2.0 from repository
> central
> [DEBUG] Retrieving parent-POM from the repository for project:
> null:maven-source-plugin:maven-plugin:2.0
> [DEBUG] org.apache.maven.plugins:maven-source-plugin:maven-plugin:2.0
> (selected for runtime)
> [DEBUG] Retrieving parent-POM from the repository for project:
> null:maven-project:jar:2.0
> [DEBUG]   org.apache.maven:maven-project:jar:2.0 (selected for
runtime)
> [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
> runtime)
> [DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8
> (selected for runtime)
> [DEBUG]   classworlds:classworlds:jar:1.1-alpha-2 (selected for
> runtime)
> [DEBUG]   junit:junit:jar:3.8.1 (selected for runtime)
> [DEBUG] Retrieving parent-POM from the repository for project:
> org.apache.maven:maven-artifact:jar:2.0
> [DEBUG] org.apache.maven:maven-artifact:jar:2.0 (selected for
> runtime)
> [DEBUG] Retrieving parent-POM from the repository for project:
> org.apache.maven:maven-model:jar:2.0
> [DEBUG] org.apache.maven:maven-model:jar:2.0 (selected for
runtime)
> [DEBUG] Retrieving parent-POM from the repository for project:
> org.apache.maven:maven-artifact-manager:jar:2.0
> [DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0 (select

FW: Problem with M2 on Windows Servers - running tests

2006-03-22 Thread Gest, Stephen B
 
-Original Message-
From: Gest, Stephen B 
Sent: Wednesday, March 22, 2006 2:29 PM
To: 'users@maven.apache.org'
Subject: Problem with M2 on Windows Servers - running tests


Hello,
 
Here is additional information regarding the error:
 
Executing "mvn -X install" gives the following:
 
+ Error stacktraces are turned on.
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents
and Settings\stgest\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from: 'D:\Maven
2.0.2\conf\plugin-registry.xml'
[INFO] Scanning for projects...
[INFO] Reactor build order: 
[INFO]   Web Service Framework for CME
[INFO]   WSF Common
[INFO]   WSF Provider Interface
[INFO]   WSF Hibernate Provider
[INFO]   WSF Model
[INFO]   WSF Object Server Provider
[INFO]   WSF Object Server Plugin
[INFO]   WSF Axis Demo Library
[INFO]   WSF Service Common
[INFO]   Axis integration
[INFO]   WSF Hibernate Demo Web-Application
[INFO]   WSF Object Server Demo Web-Application
[INFO]   WSF System Tests Common
[INFO]   WSF System Tests Hibernate
[INFO]   WSF System Tests Obs
[INFO]   WSF System Tests
[INFO]


[INFO] Building Web Service Framework for CME
[INFO]task-segment: [install]
[INFO]


[DEBUG] maven-site-plugin: resolved to version 2.0-beta-4 from
repository central
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-site-plugin:maven-plugin:2.0-beta-4
[INFO] Skipping missing optional mojo:
org.apache.maven.plugins:maven-site-plugin:attach-descriptor
[DEBUG] maven-install-plugin: resolved to version 2.0 from repository
central
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-install-plugin:maven-plugin:2.0
[DEBUG] maven-compiler-plugin: resolved to version 2.0 from repository
central
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-compiler-plugin:maven-plugin:2.0
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-surefire-plugin:maven-plugin:2.1.2
[DEBUG] maven-source-plugin: resolved to version 2.0 from repository
central
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-source-plugin:maven-plugin:2.0
[DEBUG] org.apache.maven.plugins:maven-source-plugin:maven-plugin:2.0
(selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-project:jar:2.0
[DEBUG]   org.apache.maven:maven-project:jar:2.0 (selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8
(selected for runtime)
[DEBUG]   classworlds:classworlds:jar:1.1-alpha-2 (selected for
runtime)
[DEBUG]   junit:junit:jar:3.8.1 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-artifact:jar:2.0
[DEBUG] org.apache.maven:maven-artifact:jar:2.0 (selected for
runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-model:jar:2.0
[DEBUG] org.apache.maven:maven-model:jar:2.0 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-artifact-manager:jar:2.0
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0 (selected
for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-repository-metadata:jar:2.0
[DEBUG]   org.apache.maven:maven-repository-metadata:jar:2.0
(selected for runtime)
[DEBUG]   org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5
(selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-profile:jar:2.0
[DEBUG] org.apache.maven:maven-profile:jar:2.0 (selected for
runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-plugin-api:jar:2.0
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0 (selected for
runtime)
[DEBUG]   org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-3 (selected
for runtime)
[DEBUG] classworlds:classworlds:jar:1.1-alpha-2 (selected for
runtime)
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-source-plugin:2.0:jar' -->
[DEBUG]   (f) attach = true
[DEBUG]   (f) compileSourceRoots = [D:\project\wsf\src\main\java]
[DEBUG]   (f) finalName = obs-wsf-1.0pre6-SNAPSHOT
[DEBUG]   (f) outputDirectory = D:\project\wsf\target
[DEBUG]   (f) packaging = pom
[DEBUG]   (f) project = [EMAIL PROTECTED]
[DEBUG] -- end configuration --
[INFO] [source:jar {execution: default}]
[INFO] NOT adding java-sources to attached artifacts for packaging:
'pom'.
[DEBUG] org.apache.maven.plugins:maven-install-plugin:maven-plugin:2.0
(selected for runtime)
[DEBUG]   org.apache.maven:maven-artifact-manager:jar:2.0 (selected for
runtime)
[DEBUG] org.codeh

Problem with M2 on Windows Servers - running tests

2006-03-22 Thread Gest, Stephen B
Hello,
 
We have a Java-based maven multi-project for which we've been using
Maven 1.0 successfully for several months.
We've recently upgraded to Maven 2.0.2, and for some of our systems, the
upgrade went successfully.
However, for two of our Windows systems, when we try and build the
project using Maven 2, we get the 
following error. We are able to perform an "mvn clean" successfully on
those machines, and also 
Java compilation succeeds. It's just running the tests that fails. When
the tests fail, under the "target"
directory exists a "classes" and a "test-classes" subdirectory, but no
"report" directory.
 
Any help you can give would be much appreciated.
 
Stephen
 

+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order: 
[INFO]   Web Service Framework for CME
[INFO]   WSF Common
[INFO]   WSF Provider Interface
[INFO]   WSF Hibernate Provider
[INFO]   WSF Model
[INFO]   WSF Object Server Provider
[INFO]   WSF Object Server Plugin
[INFO]   WSF Axis Demo Library
[INFO]   WSF Service Common
[INFO]   Axis integration
[INFO]   WSF Hibernate Demo Web-Application
[INFO]   WSF Object Server Demo Web-Application
[INFO]   WSF System Tests Common
[INFO]   WSF System Tests Hibernate
[INFO]   WSF System Tests Obs
[INFO]   WSF System Tests
[INFO]


[INFO] Building Web Service Framework for CME
[INFO]task-segment: [install]
[INFO]


[INFO] Skipping missing optional mojo:
org.apache.maven.plugins:maven-site-plugin:attach-descriptor
[INFO] [source:jar {execution: default}]
[INFO] NOT adding java-sources to attached artifacts for packaging:
'pom'.
[INFO] [install:install]
[INFO] Installing D:\project\wsf\pom.xml to C:\Documents and
Settings\stgest\.m2\repository\com\hp\ov\obs\obs-wsf\1.0pre6-SNAPSHOT\ob
s-wsf-1.0pre6-SNAPSHOT.pom
[INFO]


[INFO] Building WSF Common
[INFO]task-segment: [install]
[INFO]


[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Setting reports dir:
D:\project\wsf\obs-ws-common\target/surefire-reports
[INFO]


[ERROR] BUILD ERROR
[INFO]


[INFO] There are some test failure.
[INFO]


[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: There are some
test failure.
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:556)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
ycle(DefaultLifecycleExecutor.java:472)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:451)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:303)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:270)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:139)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
 at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
 at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
 at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: There are
some test failure.
 at
org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:384)
 at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:415)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:531)
 ... 16 more
[INFO]


[INFO] Total time: 5 seconds
[INFO] Finished at: Wed Mar 22 14:17:55 MST 2006
[INFO] Final Memory: