I generated a new bundle project using spring-osgi-bundle-archetype 1.1.1, then I added SpringSource Enterprise repositories, and finally I added this dependency to it: <dependency> <groupId>org.hibernate</groupId> <artifactId>org.hibernate.ejb-library</artifactId> <version>3.3.1.ga</version> </dependency>
'mvn install' worked great before I added this dependency but now I get this cryptic error: + Error stacktraces are turned on. + Disabling strict checksum verification on all artifact downloads. [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building TagSpot Domain Module [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. Downloading: http://repository.springsource.com/maven/bundles/release/org/eclipse/osgi/org.eclipse.osgi/3.2.2/org.eclipse.osgi-3.2.2.pom Downloading: http://repository.springsource.com/maven/bundles/external/org/eclipse/osgi/org.eclipse.osgi/3.2.2/org.eclipse.osgi-3.2.2.pom Downloading: http://repository.springsource.com/maven/libraries/release/org/eclipse/osgi/org.eclipse.osgi/3.2.2/org.eclipse.osgi-3.2.2.pom Downloading: http://repository.springsource.com/maven/libraries/external/org/eclipse/osgi/org.eclipse.osgi/3.2.2/org.eclipse.osgi-3.2.2.pom Downloading: http://maven.springframework.org/osgi/org/eclipse/osgi/org.eclipse.osgi/3.2.2/org.eclipse.osgi-3.2.2.pom Downloading: http://maven.springframework.org/milestone/org/eclipse/osgi/org.eclipse.osgi/3.2.2/org.eclipse.osgi-3.2.2.pom Downloading: http://repo1.maven.org/eclipse//org/eclipse/osgi/org.eclipse.osgi/3.2.2/org.eclipse.osgi-3.2.2.pom Downloading: https://springframework.svn.sourceforge.net/svnroot/springframework/repos/repo-ext//org/eclipse/osgi/org.eclipse.osgi/3.2.2/org.eclipse.osgi-3.2.2.pom Downloading: http://repo1.maven.org/maven2/org/eclipse/osgi/org.eclipse.osgi/3.2.2/org.eclipse.osgi-3.2.2.pom [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [bundle:manifest {execution: bundle-manifest}] [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error calculating classpath for project MavenProject: com.epseelon.tagspot.domain:com.epseelon.tagspot.domain:1.0-SNAPSHOT @ /Users/sarbogast/dev/s2ap/tagspot-server/com.epseelon.tagspot.domain/pom.xml Embedded error: error in opening zip file [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error calculating classpath for project MavenProject: com.epseelon.tagspot.domain:com.epseelon.tagspot.domain:1.0-SNAPSHOT @ /Users/sarbogast/dev/s2ap/tagspot-server/com.epseelon.tagspot.domain/pom.xml at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 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: com.epseelon.tagspot.domain:com.epseelon.tagspot.domain:1.0-SNAPSHOT @ /Users/sarbogast/dev/s2ap/tagspot-server/com.epseelon.tagspot.domain/pom.xml at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:230) at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:217) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) ... 16 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:39) at aQute.lib.osgi.ZipResource.build(ZipResource.java:32) at aQute.lib.osgi.Jar.<init>(Jar.java:35) at org.apache.felix.bundleplugin.BundlePlugin.getClasspath(BundlePlugin.java:675) at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:226) ... 19 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 11 seconds [INFO] Finished at: Sun Aug 03 15:02:47 CEST 2008 [INFO] Final Memory: 14M/35M [INFO] ------------------------------------------------------------------------ [ERROR] Maven execution terminated abnormally (exit code 1) Anyone can tell me what might be wrong? -- Sébastien Arbogast http://sebastien-arbogast.com