users@glassfish.java.net

Glassfish V3.2 Build failed for libpam4j

From: xuqingkang2 <xuqingkang2_at_163.com>
Date: Wed, 13 Apr 2011 04:46:04 +0800 (CST)

Any advice for fixing following build error.I hava checkouted the glassfish v3.2's source F:\glassfishv3\v3>svn info
    Path: .
    URL: https://svn.java.net/svn/glassfish~svn/trunk/v3
    Repository Root: https://svn.java.net/svn/glassfish~svn
    Repository UUID: 6f3ba3e3-413c-0410-a8aa-90bee3ab43b5
    Revision: 46101
    Node Kind: directory
    Schedule: normal
    Last Changed Author: naman_mehta
    Last Changed Rev: 46100
    Last Changed Date: 2011-04-12 14:31:33 +0800 (ÐÇÆÚ¶þ, 12 ËÄÔÂ 2011)It success to [mvn -Prelease-phase1 install], But it failed to [F:\glassfishv3\v3>mvn install], Then i used [F:\glassfishv3\v3>mvn -e install] and get following stacktrace.[INFO] ------------------------------------------------------------------------
[INFO] Building libpam4j repackaged as a module
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [enforcer:enforce {execution: enforce-versions}]
[INFO] [osgiversion:compute-osgi-version {execution: compute-osgi-version}]
[INFO] [gf:echo {execution: echo}]
[INFO] ------------------------------------------------------------------------
[INFO] Building in F:\glassfishv3\v3\packager\external\libpam4j
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory F:\glassfishv3\v3\packager\external\l
ibpam4j\src\main\resources
[INFO] [antrun:run {execution: work-around}]
[INFO] Executing tasks
   [delete] Deleting directory F:\glassfishv3\v3\packager\external\libpam4j\targ
et\classes
    [mkdir] Created dir: F:\glassfishv3\v3\packager\external\libpam4j\target\cla
sses
[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.exter
nal:libpam4j-repackaged:3.2-SNAPSHOT @ F:\glassfishv3\v3\packager\external\libpa
m4j\pom.xml

Embedded error: error in opening zip file
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error calculating classp
ath for project MavenProject: org.glassfish.external:libpam4j-repackaged:3.2-SNA
PSHOT @ F:\glassfishv3\v3\packager\external\libpam4j\pom.xml
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:719)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:556)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:535)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:387)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:348)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:6
0)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        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: Error calculating cla
sspath for project MavenProject: org.glassfish.external:libpam4j-repackaged:3.2-
SNAPSHOT @ F:\glassfishv3\v3\packager\external\libpam4j\pom.xml
        at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:
244)
        at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:
231)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:490)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:694)
        ... 17 more
Caused by: java.util.zip.ZipException: error in opening zip file
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:114)
        at java.util.zip.ZipFile.<init>(ZipFile.java:131)
        at aQute.lib.osgi.ZipResource.build(ZipResource.java:40)
        at aQute.lib.osgi.ZipResource.build(ZipResource.java:33)
        at aQute.lib.osgi.Jar.<init>(Jar.java:36)
        at org.apache.felix.bundleplugin.BundlePlugin.getClasspath(BundlePlugin.
java:744)
        at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:
240)
        ... 20 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 minutes 48 seconds
[INFO] Finished at: Wed Apr 13 04:37:10 CST 2011
[INFO] Final Memory: 119M/302M
[INFO] ------------------------------------------------------------------------