Maven Imansible risolvere le dipendenze, gli artefatti non possono essere risolti

Questo dovrebbe essere un progetto di lavoro del mio amico. Ha dimostrato il progetto proprio di fronte a me, e poi ho copiato il progetto, l’ho importato come progetto maven esistente (sto usando il plugin m2eclipse).

E poi, questo errore si verifica. Questo errore può essere riprodotto ogni volta che provo a creare qualcosa con Maven.

La dipendenza da mvn: tree, dependency: list, o il solito pacchetto di build, comporterà lo stesso errore.

L’errore derivante dall’esecuzione del build “pacchetto” di eclipse è:

[INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Jackpot Portal Webapp 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [WARNING] The POM for javax.servlet:com.springsource.javax.servlet:jar:2.5.0 is missing, no dependency information available [WARNING] The POM for javax.servlet:com.springsource.javax.servlet.jsp.jstl:jar:1.2.0 is missing, no dependency information available [WARNING] The POM for javax.transaction:com.springsource.javax.transaction:jar:1.1.0 is missing, no dependency information available [WARNING] The POM for org.slf4j:com.springsource.slf4j.log4j:jar:1.5.6 is missing, no dependency information available [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.963s [INFO] Finished at: Tue Jan 11 01:55:41 WIT 2011 [INFO] Final Memory: 2M/56M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project jackpot: Could not resolve dependencies for project com.jeteo:jackpot:war:1.0-SNAPSHOT: The following artifacts could not be resolved: javax.servlet:com.springsource.javax.servlet:jar:2.5.0, javax.servlet:com.springsource.javax.servlet.jsp.jstl:jar:1.2.0, javax.transaction:com.springsource.javax.transaction:jar:1.1.0, org.slf4j:com.springsource.slf4j.log4j:jar:1.5.6: Failure to find javax.servlet:com.springsource.javax.servlet:jar:2.5.0 in http://repository.springsource.com/maven/bundles/release was cached in the local repository, resolution will not be reattempted until the update interval of com.springsource.repository.bundles.release has elapsed or updates are forced -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 

Ed ecco il contenuto del pom.xml:

  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 4.0.0 com.jeteo jackpot war 1.0-SNAPSHOT Jackpot Portal Webapp http://www.jeteo.com  1.6 3.0.3.RELEASE 3.6.0.Final 1.6.9 1.5.10    org.springframework spring-webmvc ${org.springframework-version}   org.springframework spring-orm ${org.springframework-version}   org.springframework spring-test ${org.springframework-version}   junit junit 4.8.1 test   net.sf.jt400 jt400 6.6 compile    org.hibernate hibernate-core ${org.hibernate-version} compile   org.hibernate hibernate-entitymanager ${org.hibernate-version} compile    org.aspectj aspectjrt ${org.aspectj-version}   org.aspectj aspectjtools ${org.aspectj-version}   javax.servlet com.springsource.javax.servlet 2.5.0 provided   javax.servlet com.springsource.javax.servlet.jsp.jstl 1.2.0 provided  <!--  javax.persistence com.springsource.javax.persistence 1.0.0 compile  -->  javax.transaction com.springsource.javax.transaction 1.1.0 compile   org.slf4j slf4j-api 1.5.6   org.slf4j com.springsource.slf4j.log4j 1.5.6   mysql mysql-connector-java 5.1.11 jar compile      com.springsource.repository.bundles.release Spring Maven Repository Repository http://repository.springsource.com/maven/bundles/release    jboss https://repository.jboss.org/nexus/content/groups/public/    jackpot   org.codehaus.mojo tomcat-maven-plugin 1.1  http://localhost:8080/manager    org.apache.maven.plugins maven-compiler-plugin 2.0.2  1.6 1.6      

Ho provato a scaricare la versione più recente di Maven e l’ho inclusa negli eclipse, ma ho ancora lo stesso problema. Lo stesso messaggio di errore si verifica anche quando lo eseguo nella riga di comando della shell (all’esterno di eclipse).

Cosa mi manca?