2008-10-04 47 views
0

我是Maven的新手,所以我可能會丟失一些明顯的東西,但我有一個maven項目,當我嘗試「MVN套裝」這個項目是失敗Maven:Missing: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) 

我不明白的第一件事是它需要1.0-RC1-快照版本。 The projects' site說現在的版本是1.0- beta -5。我想beta goes before RC

無論如何,我已經嘗試下載最新的wagon-ftp JAR(1.0 beta 6 jar)並根據錯誤消息中的說明進行部署。 但猜猜看,這給了我同樣的錯誤。

回答

2

我剛剛發現解決方案,因爲我輸入了這個問題的結尾。

的問題是,我是跑「MVN安裝:安裝文件」。從同一目錄失敗的項目POM是它安裝罰款當我從另一個目錄中運行它沒有一個pom.xml。