2008/8/3 Sebastien ARBOGAST <[EMAIL PROTECTED]>

> I'm afraid it must be corrupted in the repository then, because I
> completely
> wiped out my local repository and downloaded everything again, but I'm
> still
> having the same issue.Apparently, the problem comes
> for org.hibernate.ejb-library-3.3.1.ga.jar
>

does "jar tvf ..." work on the jar from the local repository?
also could you post your complete pom.xml somewhere?


> 2008/8/3 Stuart McCulloch <[EMAIL PROTECTED]>
>
> > 2008/8/3 Sebastien ARBOGAST <[EMAIL PROTECTED]>
> >
> > > 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:
> > >
> >
> > sounds like a corrupt jar in your local Maven repository
> >
> > this can unfortunately occasionally happen with Maven2
> > if your network connection is interrupted - and the only
> > solution I know is to remove the corrupted jar from your
> > local repository and re-build...
> >
> > + 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
> > >
> >
> > --
> > Cheers, Stuart
> >
>
>
>
> --
> Sébastien Arbogast
>
> http://sebastien-arbogast.com
>



-- 
Cheers, Stuart

Reply via email to