2014-02-26 72 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文件,我不太清楚你认为你可以使用它作为什么样的依赖关系?你想达到什么目的?

相关问题