2008-10-04 10 views
0

Je suis nouveau à Maven donc je peux manquer quelque chose d'évident, mais J'ai un projet maven et lorsque je tente de « mvn package » ce projet, il échoue avecMaven: Manquant: org.apache.maven.wagon: wagon-ftp: jar: 1.0-rc1-SNAPSHOT

ERROR BUILD ERROR INFO 
------------------------------------------------------------------------ [INFO] Failed to resolve artifact. 

Missing: 
---------- 1) org.apache.maven.wagon:wagon-ftp:jar:1.0-rc1-SNAPSHOT 

    Try downloading the file manually from the project website. 

    Then, install it using the command: 
     mvn install:install-file -DgroupId=org.apache.maven.wagon -DartifactId=wagon-ftp -Dversion=1.0-rc1-SNAPSHOT -Dpackaging=ja r -Dfile=/path/to/file 

    Alternatively, if you host your own repository you can deploy the file there: 
     mvn deploy:deploy-file -DgroupId=org.apache.maven.wagon -DartifactId=wagon-ftp -Dversion=1.0-rc1-SNAPSHOT -Dpackaging=jar 
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] 

    Path to dependency: 
     1) com.cgs:domain:jar:1.0-SNAPSHOT 
     2) org.apache.maven.wagon:wagon-ftp:jar:1.0-rc1-SNAPSHOT 

---------- 
1 required artifact is missing. 

    for artifact: com.cgs:domain:jar:1.0-SNAPSHOT 

    from the specified remote repositories: ibiblio.org (http://mirrors.ibiblio.org/pub/mirrors/maven2) 

la première chose que je ne comprends pas la version 1.0 nécessite-RC1-SNAPSHOT. The projects' site dit la version actuelle est 1.0- beta -5. Et je suppose beta goes before RC.

Quoi qu'il en soit, j'ai essayé de télécharger le dernier fichier JAR wagon-ftp (1.0 beta 6 jar) et de le déployer en suivant les instructions du message d'erreur. Mais devinez quoi, cela m'a donné la même erreur.

Répondre

2

Je viens de trouver la solution en tapant la fin de cette question.

Le problème était que je courais « mvn install: install-fichier ». du même répertoire le projet ne POM était installé il bien quand je le lance dans un autre répertoire sans pom.xml.

Questions connexes