2009/1/22 raner <[email protected]> > > Hm, having a look at the Error Log view wouldn't have been a bad idea... > Turns out this is the root of the LifecycleExecutionException: > > ... > Caused by: org.apache.maven.plugin.PluginExecutionException: Mojo execution > failed. > at > > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:601) > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:498) > ... 28 more > Caused by: org.apache.maven.plugin.MojoExecutionException: Error > calculating > classpath for project MavenProject: > > com.intuit.eclipse.tcr.ui.quickbase:com.intuit.eclipse.tcr.ui.quickbase:0.0.1-SNAPSHOT > @ C:\dev\workspace\com.intuit.eclipse.tcr.ui.quickbase\pom.xml > at > org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:231) > at > org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:218) > at > > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:579) > ... 29 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:203) > at java.util.zip.ZipFile.<init>(ZipFile.java:234) > 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:685) > at > org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:227) > ... 31 more > > So, I have a stacktrace now, and apparently maven-bundle-plugin is trying > to > open some zip file. Please let me know if anybody has any ideas about this. >
Hi Mirko, The only time I've seen this exception has been when the JAR or ZIP is corrupted (which can sometimes happen if Maven is interrupted during download, or if your network connection is a bit flaky) However, you also say that exactly the same command works outside of m2eclipse - which suggests that everything is ok with the build itself, but for some reason the m2eclipse environment is introducing or uncovering a bug... although how this causes a ZipException I'm really not sure! You might want to try the 1.5.0-SNAPSHOT of the bundleplugin available at http://people.apache.org/repo/m2-snapshot-repository to check if the problem still exists with the latest code. You can also run with -X to add more debug output. If you need additional debug added to the snapshot build let me know. > Thanks! > > P.S.: I also posted to the m2eclipse users group; sorry, if you get this > twice... > > -- > View this message in context: > http://www.nabble.com/maven-bundle-plugin%3A-Mojo-execution-failed-tp21590942p21592236.html > Sent from the Apache Felix - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > -- Cheers, Stuart

