Même après avoir effacé mon settings.xml, j'obtiens toujours cette erreur lorsque j'essaie d'utiliser cette dépendance d'instantané. Compte tenu de la dépendance:Maven ne parvient pas à télécharger l'instantané de plugin tomcat-maven-plugin
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tomcat-maven-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<configuration>
<path>/licensing</path>
<tomcatWebXml>${basedir}/src/main/mock/web.xml</tomcatWebXml>
</configuration>
</plugin>
et (dans le POM), la définition du référentiel de plug-in:
<pluginRepository>
<id>Codehaus Snapshots</id>
<url>http://snapshots.repository.codehaus.org</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled> <!-- Workaround for MNG-2974, see note below -->
</releases>
</pluginRepository>
Je suis parti avec l'erreur 404 suivante. Si je navigue réellement vers ce repo, le pot qu'il cherche n'est pas là, il est juste daté (je ne connais pas la mécanique de la façon dont Maven résout finalement les noms de dépendances attendus).
Des idées?
Downloading: http://snapshots.repository.codehaus.org/org/codehaus/mojo/tomcat-maven-plugin/1.0-SNAPSHOT/tomcat-maven-pl ugin-1.0-SNAPSHOT.jar [INFO] Unable to find resource 'org.codehaus.mojo:tomcat-maven-plugin:maven-plugin:1.0-SNAPSHOT' in repository Codehaus Snapshots (http://snapshots.repository.codehaus.org) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] A required plugin was not found: Plugin could not be found - check that the goal name is correct: Unable to downl oad the artifact from any repository Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.codehaus.mojo -DartifactId=tomcat-maven-plugin -Dversion=1.0-SNAPSHOT -Dpacka ging=maven-plugin -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.codehaus.mojo -DartifactId=tomcat-maven-plugin -Dversion=1.0-SNAPSHOT -Dpackagi ng=maven-plugin -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] org.codehaus.mojo:tomcat-maven-plugin:maven-plugin:1.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2), Codehaus Snapshots (http://snapshots.repository.codehaus.org) org.codehaus.mojo:tomcat-maven-plugin:maven-plugin:1.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2), Codehaus Snapshots (http://snapshots.repository.codehaus.org) [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2 seconds [INFO] Finished at: Wed Jan 06 10:06:49 EST 2010 [INFO] Final Memory: 14M/36M [INFO] ------------------------------------------------------------------------
Son chemin de téléchargement est incorrect. Les ressources sont ici: http://snapshots.repository.codehaus.org/org/codehaus/mojo/tomcat-maven-plugin/ Y at-il quelque chose d'incorrect dans la configuration du dépôt? –
Mike: correction de la fin /, la même erreur se produit. –
Hmm ... ces extraits fonctionnent bien pour moi. Essayez de l'ajouter au pom.xml vide – axtavt