users@glassfish.java.net

WG: mvn install for ./tags/3.1.1 fails for Vista two fold

From: Stadelmann Josef <josef.stadelmann_at_axa-winterthur.ch>
Date: Wed, 3 Aug 2011 18:16:21 +0200

Maybe I am on the right forum now?

Josef

 

Von: Stadelmann Josef [mailto:josef.stadelmann_at_axa-winterthur.ch]
Gesendet: Mittwoch, 3. August 2011 17:56
An: users_at_metro.java.net
Betreff: mvn install for ./tags/3.1.1 fails for Vista two fold

 

Hi

1. I hope I am at the right forum?

2. I have checked out src from the svn repo
./glassfish~svn/branches/3.1.1 on Friday and I have built it on
my old W2K station absolut no problem

3. I have checked out src from the svn repo
./glassfish~svn/branches/3.1.1 yesterday and could not build it
on my new Vista 4GB machine because at the same time 3.1.1 was renamed
to 3.1.2

4. I have checked out src from the svn repo
./glassfish~svn/tags/3.1.1/ yesterday and it fails today on a
buid with tow different setups on my Vista machine

I run the dos window as administrator to prevent any/some access
problems

1. It fails when I just use mvn install

2. It fails when I use mvn -DskipTests=true install (just a bit
later)

In all other points I followd the fullbuild instructions.

Does Vista show any known anomalies during a build from svn checked out
sources?

JDK 1.6.0_26 / mvn 2.2.1 / Vista / SP2

E:\asf\glassfish\tags\3.1.1>mvn -version

Apache Maven 2.2.1 (r1062774; 2011-07-27 14:41:46+0200)

Java version: 1.6.0_22

Java home: C:\Program Files\Java\jdk1.6.0_22\jre

Default locale: de_CH, platform encoding: Cp1252

OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"

E:\asf\glassfish\tags\3.1.1>

Which version getting checked out from svn is about to build correct?

Any advise welcome,

Josef

Failure No 1: > mvn clean install done on ./tags/3.1.1 src

   . . .

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

[INFO] Building in E:\asf\glassfish\tags\3.1.1\deployment\common

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

[INFO] [resources:resources {execution: default-resources}]

[INFO] Using 'UTF-8' encoding to copy filtered resources.

[INFO] Copying 3 resources

[INFO] [hk2:hk2-compile {execution: default-hk2-compile}]

[INFO] Compiling 35 source files to
E:\asf\glassfish\tags\3.1.1\deployment\common\target\classes

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

[INFO] [bundle:manifest {execution: bundle-manifest}]

[INFO] [resources:testResources {execution: default-testResources}]

[INFO] Using 'UTF-8' encoding to copy filtered resources.

[INFO] skip non existing resourceDirectory
E:\asf\glassfish\tags\3.1.1\deployment\common\src\test\resources

[INFO] [hk2:hk2-test-compile {execution: default-hk2-test-compile}]

[INFO] Compiling 4 source files to
E:\asf\glassfish\tags\3.1.1\deployment\common\target\test-classes

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

[INFO] [surefire:test {execution: default-test}]

[INFO] Surefire report directory:
E:\asf\glassfish\tags\3.1.1\deployment\common\target\surefire-reports

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

 T E S T S

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

Running com.sun.enterprise.deploy.shared.FileArchiveTest

testSubarchive

testSubArchiveCreateWithStaleEntry

03.08.2011 17:52:15
com.sun.enterprise.deploy.shared.FileArchive$StaleFileManagerImpl
isEntryValid

WARNUNG: DPL8031: Ignoring subarch/oldLower/ because the containing
archive C:\Users\C770817\AppData\Local\Temp\FileArch4841784611494337346
recorded it as a pre-existing stale file

03.08.2011 17:52:15
com.sun.enterprise.deploy.shared.FileArchive$StaleFileManagerImpl
isEntryValid

WARNUNG: DPL8031: Ignoring subarch/oldLower/ because the containing
archive C:\Users\C770817\AppData\Local\Temp\FileArch4841784611494337346
recorded it as a pre-existing stale file

testNormalCreate

testCreateWithOlderLeftoverEntry

03.08.2011 17:52:15
com.sun.enterprise.deploy.shared.FileArchive$StaleFileManagerImpl
isEntryValid

WARNUNG: DPL8031: Ignoring oldLower/oldFile.txt because the containing
archive C:\Users\C770817\AppData\Local\Temp\FileArch4316416651639561838
recorded it as a pre-existing stale file

testCreateWithOlderLeftoverEntryWhichIsCreatedAgain

testCreateWithOlderLeftoverEntryAndThenOpen

A WARNING should appear next

03.08.2011 17:52:16
com.sun.enterprise.deploy.shared.FileArchive$StaleFileManagerImpl
isEntryValid

WARNUNG: DPL8031: Ignoring oldLower/ because the containing archive
C:\Users\C770817\AppData\Local\Temp\FileArch6325310771963191552 recorded
it as a pre-existing stale file

testOpenWithPreexistingDir

Tests run: 8, Failures: 0, Errors: 1, Skipped: 1, Time elapsed: 0.312
sec <<< FAILURE!

Running org.glassfish.deployment.versioning.VersioningUtilsTest

Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.032
sec

Running com.sun.enterprise.deployment.deploy.shared.JarArchiveTest

Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015
sec

Running com.sun.enterprise.deployment.deploy.shared.InputJarArchiveTest

collection wrapped enumeration - simple iterator test

collection wrapped enumeration - initial size() call

collection wrapped enumeration - middle size() call

collection wrapped enumeration - end size() call

top-level directory entry names in InputJarArchive

non-directory entry names in InputJarArchive

nested top-level directory entry names in InputJarArchive

nested non-directory entry names in InputJarArchive

Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.063
sec

Results :

Tests in error:

 
testOpenWithPreexistingDir(com.sun.enterprise.deploy.shared.FileArchiveT
est)

Tests run: 29, Failures: 0, Errors: 1, Skipped: 1

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

[ERROR] BUILD FAILURE

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

[INFO] There are test failures.

Please refer to
E:\asf\glassfish\tags\3.1.1\deployment\common\target\surefire-reports
for the individual test results.

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

[INFO] For more information, run Maven with the -e switch

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

[INFO] Total time: 2 minutes 27 seconds

[INFO] Finished at: Wed Aug 03 17:52:16 CEST 2011

[INFO] Final Memory: 141M/495M

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

E:\asf\glassfish\tags\3.1.1>

 

Failure No 2: > mvn -DskipTests=true clean install done on
./tags/3.1.1 src

   . . .

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

[INFO] Building libpam4j repackaged as a module

[INFO] task-segment: [install]

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

[WARNING] POM for 'net.java.dev.jna:jna:pom:3.2.2:compile' is invalid.

Its dependencies (if any) will NOT be available to the current build.

[INFO] [enforcer:enforce {execution: enforce-versions}]

[INFO] [osgiversion:compute-osgi-version {execution:
compute-osgi-version}]

[INFO] [gf:echo {execution: echo}]

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

[INFO] Building in
E:\asf\glassfish\tags\3.1.1\packager\external\libpam4j

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

[INFO] [resources:resources {execution: default-resources}]

[INFO] Using 'UTF-8' encoding to copy filtered resources.

[INFO] skip non existing resourceDirectory
E:\asf\glassfish\tags\3.1.1\packager\external\libpam4j\src\main\resource
s

[INFO] [antrun:run {execution: work-around}]

[INFO] Executing tasks

    [mkdir] Created dir:
E:\asf\glassfish\tags\3.1.1\packager\external\libpam4j\target\classes

[INFO] Executed tasks

[INFO] [compiler:compile {execution: default-compile}]

[INFO] No sources to compile

[INFO] [bundle:manifest {execution: bundle-manifest}]

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

[ERROR] BUILD ERROR

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

[INFO] Error calculating classpath for project MavenProject:
org.glassfish.external:libpam4j-repackaged:3.1.1 @
E:\asf\glassfish\tags\3.1.1\packager\external\libpam4j\pom.xml

Embedded error: error in opening zip file

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

[INFO] For more information, run Maven with the -e switch

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

[INFO] Total time: 3 minutes 5 seconds

[INFO] Finished at: Wed Aug 03 17:31:30 CEST 2011

[INFO] Final Memory: 119M/495M

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

E:\asf\glassfish\tags\3.1.1>