2014-02-26 69 views
-1

我需要安裝這個缺失的工件。我可以從網上獲得它嗎? 如果是這樣,請給我一個鏈接。我可以從網上下載Maven缺失的工件嗎?

`Missing: 
---------- 
1) com.erp:erp:jar:1.0-SNAPSHOT 

    Try downloading the file manually from the project website. 

    Then, install it using the command: 
     mvn install:install-file -DgroupId=com.erp -DartifactId=erp -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file 

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

    Path to dependency: 
    1) com.erp:erp-web:war:1.0-SNAPSHOT 
    2) com.erp:erp:jar:1.0-SNAPSHOT 

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

for artifact: 
    com.erp:erp-web:war:1.0-SNAPSHOT 

from the specified remote repositories: 
    central (http://repo1.maven.org/maven2)` 
+0

嘗試http://mvnrepository.com/的 –

+0

可能重複[無法運行Maven的命令(http://stackoverflow.com/questions/21930907/cannot-run-maven-command) – DB5

+0

這基本上是同樣的問題就像你以前問過的那樣(http://stackoverflow.com/q/21930907/1570834)。我認爲com.erp:erp:jar項目也是您正在創建的項目之一。你應該先建立這個項目(maven然後將生成的jar安裝到你的本地倉庫中),然後構建com.erp:erp-web:war項目。 – DB5

回答

2

是的。如果你知道你需要哪個組件。 com.erp:erp-web不在Maven Central。也許你錯過了你的pom.xml文件中的存儲庫塊?由於它是一個WAR文件,我不太清楚你認爲你可以使用它作爲什麼樣的依賴關係?你想達到什麼目的?

相關問題