jar tvf does not work. In fact, it does nothing, not even an error message on the terminal.Here's my full POM:
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.epseelon.tagspot.domain</groupId> <artifactId>com.epseelon.tagspot.domain</artifactId> <packaging>bundle</packaging> <name>TagSpot Domain Module</name> <version>1.0-SNAPSHOT</version> <url>http://www.springframework.org/osgi</url> <properties> <slf4j.version>1.5.0</slf4j.version> <spring.maven.artifact.version>2.5.5</spring.maven.artifact.version> <spring.osgi.version>1.1.1</spring.osgi.version> <equinox.ver>3.2.2</equinox.ver> <hibernate.version>3.3.1.ga</hibernate.version> </properties> <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-beans</artifactId> <version>${spring.maven.artifact.version}</version> <exclusions> <exclusion> <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>${spring.maven.artifact.version}</version> <exclusions> <exclusion> <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>${spring.maven.artifact.version}</version> <exclusions> <exclusion> <groupId>aopalliance</groupId> <artifactId>aopalliance</artifactId> </exclusion> <exclusion> <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>com.springsource.slf4j.org.apache.commons.logging</artifactId> <version>${slf4j.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>com.springsource.slf4j.api</artifactId> <version>${slf4j.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>com.springsource.slf4j.log4j</artifactId> <version>${slf4j.version}</version> <scope>provided</scope> <exclusions> <exclusion> <groupId>log4j</groupId> <artifactId>log4j</artifactId> </exclusion> <exclusion> <groupId>org.apache.log4j</groupId> <artifactId>com.springsource.org.apache.log4j</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>org.hibernate.ejb-library</artifactId> <version>${hibernate.version}</version> </dependency> <!-- test scoped dependencies --> <dependency> <groupId>org.junit</groupId> <artifactId>com.springsource.org.junit</artifactId> <version>4.4.0</version> <scope>test</scope> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-test</artifactId> <version>${spring.maven.artifact.version}</version> <scope>test</scope> <exclusions> <exclusion> <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> </exclusion> <exclusion> <groupId>junit</groupId> <artifactId>junit</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.springframework.osgi</groupId> <artifactId>spring-osgi-test</artifactId> <version>${spring.osgi.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.springframework.osgi</groupId> <artifactId>spring-osgi-annotation</artifactId> <version>${spring.osgi.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.aopalliance</groupId> <artifactId>com.springsource.org.aopalliance</artifactId> <version>1.0.0</version> <scope>provided</scope> </dependency> <!-- Equinox OSGi platform --> <dependency> <groupId>org.eclipse.osgi</groupId> <artifactId>org.eclipse.osgi</artifactId> <version>${equinox.ver}</version> <type>jar</type> <!-- Uncomment the following line if you want it to be available only in test--> <!-- <scope>test</scope> --> </dependency> <dependency> <groupId>org.springframework.osgi</groupId> <artifactId>log4j.osgi</artifactId> <version>1.2.15-SNAPSHOT</version> <scope>test</scope> </dependency> </dependencies> <!-- for packaging as an OSGi bundle, we use the maven-bundle-plugin --> <!-- see http://felix.apache.org/site/maven-bundle-plugin-bnd.html for more info --> <build> <resources> <!-- standard Maven folder --> <resource> <directory>src/main/resources</directory> </resource> <!-- plus root folder --> <resource> <directory>.</directory> <includes> <include>plugin.xml</include> <include>META-INF/*</include> </includes> </resource> </resources> <plugins> <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <extensions>true</extensions> <version>1.4.0</version> <configuration> <manifestLocation>META-INF</manifestLocation> <instructions> <Export-Package> !com.epseelon.tagspot.domain.internal,com.epseelon.tagspot.domain* </Export-Package> <Import-Package>*</Import-Package> <!-- add ,plugin.xml if it's present i.e. src/main/resources,plugin.xml --> <Include-Resource>src/main/resources</Include-Resource> </instructions> </configuration> </plugin> <!-- generate manifest automatically once the classes are processed --> <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <executions> <execution> <id>bundle-manifest</id> <phase>process-classes</phase> <goals> <goal>manifest</goal> </goals> </execution> </executions> </plugin> </plugins> </build> <!-- ================================================ --> <!-- Repository Configuration --> <!-- ================================================ --> <repositories> <repository> <id>com.springsource.repository.bundles.release</id> <name>SpringSource Enterprise Bundle Repository - SpringSource Bundle Releases</name> <url>http://repository.springsource.com/maven/bundles/release </url> </repository> <repository> <id>com.springsource.repository.bundles.external</id> <name>SpringSource Enterprise Bundle Repository - External Bundle Releases</name> <url>http://repository.springsource.com/maven/bundles/external </url> </repository> <repository> <id>com.springsource.repository.libraries.release</id> <name>SpringSource Enterprise Bundle Repository - SpringSource Library Releases</name> <url>http://repository.springsource.com/maven/libraries/release </url> </repository> <repository> <id>com.springsource.repository.libraries.external</id> <name>SpringSource Enterprise Bundle Repository - External Library Releases</name> <url>http://repository.springsource.com/maven/libraries/external </url> </repository> <repository> <id>i21-s3-osgi-repo</id> <name>i21 osgi artifacts repo</name> <snapshots> <enabled>true</enabled> </snapshots> <url>http://maven.springframework.org/osgi</url> </repository> <repository> <id>i21-s3-maven-repo</id> <name>i21 S3 milestone repo</name> <url>http://maven.springframework.org/milestone</url> </repository> <repository> <id>com.springsource.repository.bundles.external</id> <name>SpringSource Enterprise Bundle Repository - External Bundle Releases</name> <url>http://repository.springsource.com/maven/bundles/external </url> </repository> <repository> <id>eclipse-repository</id> <name>Eclipse Repository</name> <url>http://repo1.maven.org/eclipse/</url> </repository> <repository> <id>spring-ext</id> <name>Spring External Dependencies Repository</name> <url> https://springframework.svn.sourceforge.net/svnroot/springframework/repos/repo-ext/ </url> </repository> <!-- Spring-DM snapshot repository - disabled by default <repository> <snapshots><enabled>true</enabled></snapshots> <id>springframework.org</id> <name>Springframework Maven SNAPSHOT Repository</name> <url> http://s3.amazonaws.com/maven.springframework.org/snapshot</url> </repository> --> </repositories> <pluginRepositories> <pluginRepository> <id>maven-repo</id> <name>maven repo</name> <url>http://repo1.maven.org/maven2/</url> </pluginRepository> </pluginRepositories> </project> 2008/8/3 Stuart McCulloch <[EMAIL PROTECTED]> > 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 > -- Sébastien Arbogast http://sebastien-arbogast.com

