There is this missing artifact that I need to install.Can I get it from web?If so please give me a link.
我需要安装这个缺失的工件。我可以从网上获取它吗?如果是这样,请给我一个链接。
`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)`
1 个解决方案
#1
2
Yes. If you know which component you need. com.erp:erp-web is not in Maven Central. Maybe you're missing a repository block in your pom.xml file? Since it's a WAR file, I'm not quite sure what kind of dependency you think you can use it as? What are you trying to accomplish?
是。如果您知道需要哪个组件。 com.erp:erp-web不在Maven Central中。也许你在pom.xml文件中缺少一个存储库块?既然它是一个WAR文件,我不太清楚你认为你可以使用哪种依赖?你想达到什么目的?
#1
2
Yes. If you know which component you need. com.erp:erp-web is not in Maven Central. Maybe you're missing a repository block in your pom.xml file? Since it's a WAR file, I'm not quite sure what kind of dependency you think you can use it as? What are you trying to accomplish?
是。如果您知道需要哪个组件。 com.erp:erp-web不在Maven Central中。也许你在pom.xml文件中缺少一个存储库块?既然它是一个WAR文件,我不太清楚你认为你可以使用哪种依赖?你想达到什么目的?