Thanks for your reply.
1,My maven version is
---
F:\glassfish-v3-trunk\packager\external\dbschema>mvn --version
Apache Maven 2.2.1 (r801777; 2009-08-07 03:16:01+0800)
Java version: 1.6.0_20
Java home: E:\jdk1.6.0_20\jre
Default locale: zh_CN, platform encoding: GBK
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
2,svn URL which I'm using
---
https://svn.dev.java.net/svn/glassfish-svn/trunk/v3
3,When I "F:\glassfish-v3-trunk\packager\external\dbschema>mvn -X -e" following message is prompted
---
...........[b]very much debug information had been omitted [/b]
[DEBUG] org.apache.felix:maven-bundle-plugin:maven-plugin:2.0.1:runtime (selected for runtime)
[DEBUG] biz.aQute:bndlib:jar:0.0.357:runtime (selected for runtime)
[DEBUG] net.sf.kxml:kxml2:jar:2.2.2:runtime (selected for runtime)
[DEBUG] xmlpull:xmlpull:jar:1.1.3.1:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.felix:felix:pom:1.0.0 for project: null:org.osgi.core:bundle:1.0.0 from the repository.
[DEBUG] org.apache.felix:org.osgi.core:jar:1.0.0:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.felix:felix:pom:1.0.2 for project: null:org.osgi.service.obr:jar:1.0.1 from the repository.
[DEBUG] org.apache.felix:org.osgi.service.obr:jar:1.0.1:runtime (selected for runtime)
[DEBUG] Adding managed dependencies for unknown:maven-project
[DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.7
[DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.0.7
[DEBUG] org.apache.maven:maven-model:jar:2.0.7
[DEBUG] org.apache.maven:maven-project:jar:2.0.7
[DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:2.0.7
[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0.7
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.7
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.7
[DEBUG] org.apache.maven:maven-artifact-test:jar:2.0.7
[DEBUG] org.apache.maven:maven-settings:jar:2.0.7
[DEBUG] org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.7
[DEBUG] org.apache.maven:maven-profile:jar:2.0.7
[DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.7
[DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.7
[DEBUG] org.apache.maven:maven-monitor:jar:2.0.7
[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.1
[DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2
[DEBUG] org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2
[DEBUG] org.apache.maven.wagon:wagon-ssh-external:jar:1.0-beta-2
[DEBUG] org.apache.maven.wagon:wagon-file:jar:1.0-beta-2
[DEBUG] org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-beta-2
[DEBUG] easymock:easymock:jar:1.2_Java1.3:test
[DEBUG] classworlds:classworlds:jar:1.1
[DEBUG] org.apache.maven:maven-project:jar:2.0.7:runtime (selected for runtime)
[DEBUG] org.apache.maven:maven-settings:jar:2.0.7:runtime (selected for runtime)
[DEBUG] org.apache.maven:maven-model:jar:2.0.7:runtime (selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.1:runtime (selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.1:runtime (selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:runtime (selected for runtime)
[DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.4.1)
[DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for runtime)
[DEBUG] org.apache.maven:maven-profile:jar:2.0.7:runtime (selected for runtime)
[DEBUG] org.apache.maven:maven-model:jar:2.0.7:runtime (selected for runtime)
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.7:runtime (selected for runtime)
[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0.7:runtime (selected for runtime)
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.7:runtime (selected for runtime)
[DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2:runtime (selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.4.1)
[DEBUG] Adding managed dependencies for org.apache.maven:maven-plugin-registry
[DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.7
[DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.0.7
[DEBUG] org.apache.maven:maven-model:jar:2.0.7
[DEBUG] org.apache.maven:maven-project:jar:2.0.7
[DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:2.0.7
[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0.7
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.7
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.7
[DEBUG] org.apache.maven:maven-artifact-test:jar:2.0.7
[DEBUG] org.apache.maven:maven-settings:jar:2.0.7
[DEBUG] org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.7
[DEBUG] org.apache.maven:maven-profile:jar:2.0.7
[DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.7
[DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.7
[DEBUG] org.apache.maven:maven-monitor:jar:2.0.7
[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.1
[DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2
[DEBUG] org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2
[DEBUG] org.apache.maven.wagon:wagon-ssh-external:jar:1.0-beta-2
[DEBUG] org.apache.maven.wagon:wagon-file:jar:1.0-beta-2
[DEBUG] org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-beta-2
[DEBUG] easymock:easymock:jar:1.2_Java1.3:test
[DEBUG] classworlds:classworlds:jar:1.1
[DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.7:runtime (selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.1:runtime (selected for runtime)
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.7:runtime (selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:runtime (selected for runtime)
[DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.4.1)
[DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for runtime)
[DEBUG] org.apache.maven:maven-model:jar:2.0.7:runtime (selected for runtime)
[DEBUG] Adding managed dependencies for unknown:maven-plugin-api
[DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.7
[DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.0.7
[DEBUG] org.apache.maven:maven-model:jar:2.0.7
[DEBUG] org.apache.maven:maven-project:jar:2.0.7
[DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:2.0.7
[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0.7
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.7
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.7
[DEBUG] org.apache.maven:maven-artifact-test:jar:2.0.7
[DEBUG] org.apache.maven:maven-settings:jar:2.0.7
[DEBUG] org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.7
[DEBUG] org.apache.maven:maven-profile:jar:2.0.7
[DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.7
[DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.7
[DEBUG] org.apache.maven:maven-monitor:jar:2.0.7
[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.1
[DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2
[DEBUG] org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2
[DEBUG] org.apache.maven.wagon:wagon-ssh-external:jar:1.0-beta-2
[DEBUG] org.apache.maven.wagon:wagon-file:jar:1.0-beta-2
[DEBUG] org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-beta-2
[DEBUG] easymock:easymock:jar:1.2_Java1.3:test
[DEBUG] classworlds:classworlds:jar:1.1
[DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.7:runtime (selected for runtime)
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.7:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven.shared:maven-shared-components:pom:3 for project: org.apache.maven:maven-archiver:jar:2.2 from the repository.
[DEBUG] org.apache.maven:maven-archiver:jar:2.2:runtime (selected for runtime)
[DEBUG] org.apache.maven:maven-project:jar:2.0:runtime (removed - nearer found: 2.0.7)
[DEBUG] org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-7:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus:pom:1.0.5 for project: null:plexus-utils:jar:1.2 from the repository.
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.2:runtime (removed - nearer found: 1.4.1)
[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime (removed - nearer found: 1.0-alpha-9-stable-1)
[DEBUG] org.apache.maven:maven-artifact:jar:2.0:runtime (removed - nearer found: 2.0.7)
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.7:runtime (selected for runtime)
[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0.7:runtime (selected for runtime)
[DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2:runtime (selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.4.1)
[DEBUG] org.apache.maven:maven-settings:jar:2.0.7:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven.shared:maven-shared-components:pom:9 for project: org.apache.maven.shared:maven-dependency-tree:jar:1.2 from the repository.
[DEBUG] Adding managed dependencies for org.apache.maven.shared:maven-dependency-tree
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.9
[DEBUG] org.apache.maven.shared:maven-dependency-tree:jar:1.2:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven:pom:2.0.8 for project: null:maven-project:jar:null from the repository.
[DEBUG] Adding managed dependencies for unknown:maven-project
[DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.8
[DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.0.8
[DEBUG] org.apache.maven:maven-model:jar:2.0.8
[DEBUG] org.apache.maven:maven-project:jar:2.0.8
[DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:2.0.8
[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0.8
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.8
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.8
[DEBUG] org.apache.maven:maven-artifact-test:jar:2.0.8
[DEBUG] org.apache.maven:maven-settings:jar:2.0.8
[DEBUG] org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.8
[DEBUG] org.apache.maven:maven-profile:jar:2.0.8
[DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.8
[DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.8
[DEBUG] org.apache.maven:maven-monitor:jar:2.0.8
[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.6
[DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2
[DEBUG] org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2
[DEBUG] org.apache.maven.wagon:wagon-ssh-external:jar:1.0-beta-2
[DEBUG] org.apache.maven.wagon:wagon-file:jar:1.0-beta-2
[DEBUG] org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-beta-2
[DEBUG] easymock:easymock:jar:1.2_Java1.3:test
[DEBUG] classworlds:classworlds:jar:1.1
[DEBUG] org.apache.maven:maven-project:jar:2.0.8:runtime (removed - nearer found: 2.0.7)
[DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2:runtime (selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.4.1)
[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:runtime (selected for runtime)
[DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.4.1)
[DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-7:runtime (selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.2:runtime (removed - nearer found: 1.4.1)
[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime (removed - nearer found: 1.0-alpha-9-stable-1)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.1:runtime (removed - nearer found: 1.4.7)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.7:runtime (selected for runtime)
[DEBUG] The following artifacts were filtered out for plugin: org.apache.felix:maven-bundle-plugin:2.0.1 because they're already in the core of Maven:
org.apache.maven:maven-project:jar:2.0.7:runtime
org.apache.maven:maven-model:jar:2.0.7:runtime
org.apache.maven:maven-plugin-api:jar:2.0.7:runtime
org.apache.maven:maven-artifact:jar:2.0.7:runtime
org.apache.maven:maven-artifact-manager:jar:2.0.7:runtime
org.apache.maven:maven-settings:jar:2.0.7:runtime
org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2:runtime
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:runtime
These will use the artifact files already in the core ClassRealm instead, to allow them to be included in PluginDescriptor.getArtifacts().
[DEBUG] Configuring mojo 'org.apache.felix:maven-bundle-plugin:2.0.1:manifest' -->
[DEBUG] (f) baseDir = F:\glassfish-v3-trunk\packager\external\dbschema
[DEBUG] (f) buildDirectory = F:\glassfish-v3-trunk\packager\external\dbschema\target
[DEBUG] (f) instructions = {Embed-Dependency=org-netbeans-modules-dbschema.*;inline=true, Export-Package=org.netbeans.modules.dbschema.*;version=6.0; password="GlassFish"; mandatory:=password, Import-Package=org.openide.*;resolution:=optional,
org.netbeans.lib.ddl.impl.*;resolution:=optional,
org.netbeans.spi.*;resolution:=optional,
org.netbeans.api.*;resolution:=optional,*, Private-Package=!*, _include=-F:\glassfish-v3-trunk\packager\external\dbschema/osgi.bundle}
[DEBUG] (f) manifestLocation = F:\glassfish-v3-trunk\packager\external\dbschema\target\classes\META-INF
[DEBUG] (f) outputDirectory = F:\glassfish-v3-trunk\packager\external\dbschema\target\classes
[DEBUG] (f) project = MavenProject: org.glassfish.external:dbschema-repackaged:3.1-SNAPSHOT @ F:\glassfish-v3-trunk\packager\external\dbschema\pom.xml
[DEBUG] (f) supportedProjectTypes = [jar]
[DEBUG] (f) unpackBundle = true
[DEBUG] -- end configuration --
[INFO] [bundle:manifest {execution: bundle-manifest}]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error calculating classpath for project MavenProject: org.glassfish.external:dbschema-repackaged:3.1-SNAPSHOT @ F:\glassfish-v3-trunk\packager\external\dbschema\pom.xml
Embedded error: error in opening zip file
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error calculating classpath for project MavenProject: org.glassfish.external:dbschema-repackaged:3.1-SNAPSHOT @ F:\glassfish-v3-trunk\packager\external\dbschema\pom.xml
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.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:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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 classpath for project MavenProject: org.glassfish.external:dbschema-repackaged:3.1-SNAPSHOT @ F:\glassfish-v3-trunk\packager\external\dbschema\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(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.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: 17 seconds
[INFO] Finished at: Mon Oct 18 17:22:52 CST 2010
[INFO] Final Memory: 23M/57M
[INFO] ------------------------------------------------------------------------
[b][/b][b][/b]
[Message sent by forum member 'xuqingkang']
http://forums.java.net/jive/thread.jspa?messageID=485428