-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)`
尝试http://mvnrepository.com/的 –
可能重复[无法运行Maven的命令(http://stackoverflow.com/questions/21930907/cannot-run-maven-command) – DB5
这基本上是同样的问题就像你以前问过的那样(http://stackoverflow.com/q/21930907/1570834)。我认为com.erp:erp:jar项目也是您正在创建的项目之一。你应该先建立这个项目(maven然后将生成的jar安装到你的本地仓库中),然后构建com.erp:erp-web:war项目。 – DB5