You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Nathan Beyer (Cerner) (JIRA)" <ji...@codehaus.org> on 2007/08/13 23:02:48 UTC

[jira] Issue Comment Edited: (SUREFIRE-318) Fails to run build on Windows Server 2003

    [ http://jira.codehaus.org/browse/SUREFIRE-318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_104765 ] 

Nathan Beyer (Cerner) edited comment on SUREFIRE-318 at 8/13/07 4:02 PM:
-------------------------------------------------------------------------

I'm noticing some seemingly significant issues between running Maven on Windows 2003 and other Windows versions (XP and Vista). I'm seeing a difference in the ordering of the classpath for compilation and test runs. Here's some log comparisons between a run of the exact same build using Maven 2.0.7, Sun JDK 1.5.0u12 on Windows Vista x86 and then again using Maven 2.0.7, Sun JDK 1.5.0u12 on Windows 2003.

Compilation Differences --

--- Windows Vista
+++ Windows 2003
@@ -756,21 +756,21 @@
  c:\temp\m2\repo\com\cerner\system\instrument\system-instrument\2.0\system-instrument-2.0.jar
  c:\temp\m2\repo\com\cerner\system\system-i18n\2.0\system-i18n-2.0.jar
+ c:\temp\m2\repo\com\cerner\system\system-core\2.0\system-core-2.0.jar
  c:\temp\m2\repo\com\cerner\system\system-jdbc\1.1.3\system-jdbc-1.1.3.jar
  c:\temp\m2\repo\cerner\system-cache-jetstream\1.3.2\system-cache-jetstream-1.3.2.jar
- c:\temp\m2\repo\com\cerner\system\system-core\2.0\system-core-2.0.jar
+ c:\temp\m2\repo\cerner\dataobject-core\1.1.4\dataobject-core-1.1.4.jar
  c:\temp\m2\repo\cerner\dataaccess-core\1.1.2\dataaccess-core-1.1.2.jar
- c:\temp\m2\repo\cerner\dataobject-core\1.1.4\dataobject-core-1.1.4.jar
  c:\temp\m2\repo\com\cerner\mmf\mmf-dataaccess-jdbc\1.0-RC1\mmf-dataaccess-jdbc-1.0-RC1.jar
  c:\temp\m2\repo\com\cerner\mmf\xds\mmf-xds-person\1.0-SNAPSHOT\mmf-xds-person-1.0-SNAPSHOT.jar
  c:\temp\m2\repo\cerner\universal-id\1.3.0\universal-id-1.3.0.jar
- c:\temp\m2\repo\com\cerner\system\transaction\system-transaction\1.2\system-transaction-1.2.jar
  c:\temp\m2\repo\cerner\system-bootstrap\1.1.1\system-bootstrap-1.1.1.jar
+ c:\temp\m2\repo\com\cerner\system\transaction\system-transaction\1.2\system-transaction-1.2.jar
  c:\temp\m2\repo\cerner\system-concurrency\1.3\system-concurrency-1.3.jar
  c:\temp\m2\repo\cerner\system-management\1.1.1\system-management-1.1.1.jar
  c:\temp\m2\repo\com\cerner\mmf\mmf-factory\1.0-RC1\mmf-factory-1.0-RC1.jar
  c:\temp\m2\repo\cerner\system-cache\1.7.2\system-cache-1.7.2.jar
  c:\temp\m2\repo\cerner\system-registry\1.4.1\system-registry-1.4.1.jar
  c:\temp\m2\repo\cerner\system-event\1.0.3\system-event-1.0.3.jar
  c:\temp\m2\repo\cerner\system-urn\1.1.1\system-urn-1.1.1.jar]

Surefire launch --

--- Windows Vista
+++ Windows 2003
@@ -2022 +2022 @@
-Forking command line: C:\Users\Public\jdk\sun\5_12\jre\bin\java -classpath c:\temp\m2\repo\org\codehaus\plexus\plexus-archiver\1.0-alpha-7\plexus-archiver-1.0-alpha-7.jar;c:\temp\m2\repo\junit\junit\3.8.1\junit-3.8.1.jar;c:\temp\m2\repo\org\apache\maven\surefire\surefire-api\2.3\surefire-api-2.3.jar;c:\temp\m2\repo\org\codehaus\plexus\plexus-container-default\1.0-alpha-8\plexus-container-default-1.0-alpha-8.jar;c:\temp\m2\repo\classworlds\classworlds\1.1-alpha-2\classworlds-1.1-alpha-2.jar;c:\temp\m2\repo\org\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.1.jar;c:\temp\m2\repo\commons-lang\commons-lang\2.1\commons-lang-2.1.jar;c:\temp\m2\repo\org\apache\maven\surefire\surefire-booter\2.3\surefire-booter-2.3.jar org.apache.maven.surefire.booter.SurefireBooter C:\Users\xxx\AppData\Local\Temp\surefire7271tmp C:\Users\xxx\AppData\Local\Temp\surefire7272tmp
+Forking command line: c:\install\jdk\sun\5_12\jre\bin\java -classpath c:\temp\m2\repo\org\codehaus\plexus\plexus-archiver\1.0-alpha-7\plexus-archiver-1.0-alpha-7.jar;c:\temp\m2\repo\junit\junit\3.8.1\junit-3.8.1.jar;c:\temp\m2\repo\org\codehaus\plexus\plexus-container-default\1.0-alpha-8\plexus-container-default-1.0-alpha-8.jar;c:\temp\m2\repo\org\apache\maven\surefire\surefire-api\2.3\surefire-api-2.3.jar;c:\temp\m2\repo\classworlds\classworlds\1.1-alpha-2\classworlds-1.1-alpha-2.jar;c:\temp\m2\repo\org\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.1.jar;c:\temp\m2\repo\commons-lang\commons-lang\2.1\commons-lang-2.1.jar;c:\temp\m2\repo\org\apache\maven\surefire\surefire-booter\2.3\surefire-booter-2.3.jar org.apache.maven.surefire.booter.SurefireBooter c:\temp\xxx\2\surefire34874tmp c:\temp\xxx\2\surefire34875tmp

Notice how the surefire-api JAR is in a different location this time.


 was:
I'm noticing some seemingly significant issues between running Maven on Windows 2003 and other Windows versions (XP and Vista). I'm seeing a difference in the ordering of the classpath for compilation and test runs. Here's some log comparisons between a run of the exact same build using Maven 2.0.7, Sun JDK 1.5.0u12 on Windows Vista x86 and then again using Maven 2.0.7, Sun JDK 1.5.0u12 on Windows 2003.

Compilation Differences --

--- Windows Vista
+++ Windows 2003
@@ -756,21 +756,21 @@
  c:\temp\m2\repo\com\cerner\system\instrument\system-instrument\2.0\system-instrument-2.0.jar
  c:\temp\m2\repo\com\cerner\system\system-i18n\2.0\system-i18n-2.0.jar
+ c:\temp\m2\repo\com\cerner\system\system-core\2.0\system-core-2.0.jar
  c:\temp\m2\repo\com\cerner\system\system-jdbc\1.1.3\system-jdbc-1.1.3.jar
  c:\temp\m2\repo\cerner\system-cache-jetstream\1.3.2\system-cache-jetstream-1.3.2.jar
- c:\temp\m2\repo\com\cerner\system\system-core\2.0\system-core-2.0.jar
+ c:\temp\m2\repo\cerner\dataobject-core\1.1.4\dataobject-core-1.1.4.jar
  c:\temp\m2\repo\cerner\dataaccess-core\1.1.2\dataaccess-core-1.1.2.jar
- c:\temp\m2\repo\cerner\dataobject-core\1.1.4\dataobject-core-1.1.4.jar
  c:\temp\m2\repo\com\cerner\mmf\mmf-dataaccess-jdbc\1.0-RC1\mmf-dataaccess-jdbc-1.0-RC1.jar
  c:\temp\m2\repo\com\cerner\mmf\xds\mmf-xds-person\1.0-SNAPSHOT\mmf-xds-person-1.0-SNAPSHOT.jar
  c:\temp\m2\repo\cerner\universal-id\1.3.0\universal-id-1.3.0.jar
- c:\temp\m2\repo\com\cerner\system\transaction\system-transaction\1.2\system-transaction-1.2.jar
  c:\temp\m2\repo\cerner\system-bootstrap\1.1.1\system-bootstrap-1.1.1.jar
+ c:\temp\m2\repo\com\cerner\system\transaction\system-transaction\1.2\system-transaction-1.2.jar
  c:\temp\m2\repo\cerner\system-concurrency\1.3\system-concurrency-1.3.jar
  c:\temp\m2\repo\cerner\system-management\1.1.1\system-management-1.1.1.jar
  c:\temp\m2\repo\com\cerner\mmf\mmf-factory\1.0-RC1\mmf-factory-1.0-RC1.jar
  c:\temp\m2\repo\cerner\system-cache\1.7.2\system-cache-1.7.2.jar
  c:\temp\m2\repo\cerner\system-registry\1.4.1\system-registry-1.4.1.jar
  c:\temp\m2\repo\cerner\system-event\1.0.3\system-event-1.0.3.jar
  c:\temp\m2\repo\cerner\system-urn\1.1.1\system-urn-1.1.1.jar]


Surefire launch --

--- Windows Vista
+++ Windows 2003
@@ -2022 +2022 @@
-Forking command line: C:\Users\Public\jdk\sun\5_12\jre\bin\java -classpath c:\temp\m2\repo\org\codehaus\plexus\plexus-archiver\1.0-alpha-7\plexus-archiver-1.0-alpha-7.jar;c:\temp\m2\repo\junit\junit\3.8.1\junit-3.8.1.jar;c:\temp\m2\repo\org\apache\maven\surefire\surefire-api\2.3\surefire-api-2.3.jar;c:\temp\m2\repo\org\codehaus\plexus\plexus-container-default\1.0-alpha-8\plexus-container-default-1.0-alpha-8.jar;c:\temp\m2\repo\classworlds\classworlds\1.1-alpha-2\classworlds-1.1-alpha-2.jar;c:\temp\m2\repo\org\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.1.jar;c:\temp\m2\repo\commons-lang\commons-lang\2.1\commons-lang-2.1.jar;c:\temp\m2\repo\org\apache\maven\surefire\surefire-booter\2.3\surefire-booter-2.3.jar org.apache.maven.surefire.booter.SurefireBooter C:\Users\xxx\AppData\Local\Temp\surefire7271tmp C:\Users\xxx\AppData\Local\Temp\surefire7272tmp
+Forking command line: c:\install\jdk\sun\5_12\jre\bin\java -classpath c:\temp\m2\repo\org\codehaus\plexus\plexus-archiver\1.0-alpha-7\plexus-archiver-1.0-alpha-7.jar;c:\temp\m2\repo\junit\junit\3.8.1\junit-3.8.1.jar;c:\temp\m2\repo\org\codehaus\plexus\plexus-container-default\1.0-alpha-8\plexus-container-default-1.0-alpha-8.jar;c:\temp\m2\repo\org\apache\maven\surefire\surefire-api\2.3\surefire-api-2.3.jar;c:\temp\m2\repo\classworlds\classworlds\1.1-alpha-2\classworlds-1.1-alpha-2.jar;c:\temp\m2\repo\org\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.1.jar;c:\temp\m2\repo\commons-lang\commons-lang\2.1\commons-lang-2.1.jar;c:\temp\m2\repo\org\apache\maven\surefire\surefire-booter\2.3\surefire-booter-2.3.jar org.apache.maven.surefire.booter.SurefireBooter c:\temp\xxx\2\surefire34874tmp c:\temp\xxx\2\surefire34875tmp

Notice how the surefire-api JAR is in a different location this time.

> Fails to run build on Windows Server 2003
> -----------------------------------------
>
>                 Key: SUREFIRE-318
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-318
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.3
>         Environment: Maven 2.0.5 or 2.0.6 , Windows Server 2003, Java 1.5 or 1.6
>            Reporter: Vlad Skarzhevskyy
>            Assignee: Brett Porter
>             Fix For: 2.3.1
>
>         Attachments: build-log.txt
>
>
> After Upgrade to Surefire 2.3 our build server fails to run tests on any project.
> Get the message:
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] There are test failures.
> [INFO] ------------------------------------------------------------------------
> All works fine on Linux,  WinXP and Win2000.
> But when I try to build on any Windows Server 2003 build will fail.
> See the log
> mvn -X test > build-log.txt

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira