> -----Original Message----- > From: KARR, DAVID (ATTSI) > Sent: Saturday, February 13, 2010 11:47 AM > To: users@maven.apache.org > Subject: Error opening zip file (because it isn't there) > > I haven't used Maven in a while, so I'm sure I'm making several obvious > mistakes. > > I installed the latest m2eclipse in Eclipse 3.5.1 and created a simple > Spring project, just to build a simple test case for a problem I'm > seeing in Spring. I've deleted lots of plugin and dependency > information to try to whittle it down to just what I need, just to > produce a simple WAR file with Spring, a context file, and a simple > class. > > At some point, I'm now down to the following error: > > [INFO] Compilation failure > error: error reading ...\.m2\repository\javax\jms\jms\1.1\jms-1.1.jar; > error in opening zip file > > When I searched for this, I found some people have already hit this: > <http://groups.google.com/group/sakai- > kernel/browse_thread/thread/52a3e4 > fe52b84d99?fwc=1> > > At this point, I just need to get past this, so the war will build. > I'm > not using JMS.
Just so it's clear, my subject line was inaccurate. The file is there, but it's in the wrong format. It's not a jar file, but HTML output from a 301 error ("Moved Permanently"). I would have thought that Maven would handle 301s, but in this case it doesn't matter, as the URL the 301 gives for the permanent location of the file doesn't exist either, and that gets a 404. At this point, I thought I would try just deleting the "1.1" directory. That obviously isn't clever enough for Maven, as it just tries to download again, although it fails in a different way this time: ------------------------------------- [INFO] Copying 1 resource Downloading: http://static.appfuse.org/repository/javax/jms/jms/1.1/jms-1.1.pom [INFO] Unable to find resource 'javax.jms:jms:pom:1.1' in repository appfuse (http://static.appfuse.org/repository) Downloading: https://maven-repository.dev.java.net/nonav/repository/javax.jms/poms/jm s-1.1.pom [WARNING] Unable to get resource 'javax.jms:jms:pom:1.1' from repository java.net (https://maven-repository.dev.java.net/nonav/repository): Error transferring file: Connection timed out: connect Downloading: http://repo1.maven.org/maven2/javax/jms/jms/1.1/jms-1.1.pom Downloading: http://static.appfuse.org/repository/javax/jms/jms/1.1/jms-1.1.jar [INFO] Unable to find resource 'javax.jms:jms:jar:1.1' in repository appfuse (http://static.appfuse.org/repository) Downloading: https://maven-repository.dev.java.net/nonav/repository/javax.jms/jars/jm s-1.1.jar [WARNING] Unable to get resource 'javax.jms:jms:jar:1.1' from repository java.net (https://maven-repository.dev.java.net/nonav/repository): Error transferring file: Connection timed out: connect Downloading: http://repo1.maven.org/maven2/javax/jms/jms/1.1/jms-1.1.jar [INFO] Unable to find resource 'javax.jms:jms:jar:1.1' in repository central (http://repo1.maven.org/maven2) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. Missing: ---------- 1) javax.jms:jms:jar:1.1 Try downloading the file manually from: http://java.sun.com/products/jms/docs.html Then, install it using the command: mvn install:install-file -DgroupId=javax.jms -DartifactId=jms -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=javax.jms -DartifactId=jms -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) springjmxbug:springjmxbug:war:0.0.1-SNAPSHOT 2) log4j:log4j:jar:1.2.15 3) javax.jms:jms:jar:1.1 ---------- 1 required artifact is missing. for artifact: springjmxbug:springjmxbug:war:0.0.1-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2), appfuse (http://static.appfuse.org/repository) ---------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org