Java 我可以从web外部下载maven缺失的工件吗?
我需要安装这个丢失的工件。我可以从web上获得它吗?如果是,请给我一个链接Java 我可以从web外部下载maven缺失的工件吗?,java,maven,maven-3,Java,Maven,Maven 3,我需要安装这个丢失的工件。我可以从web上获得它吗?如果是,请给我一个链接 对。如果你知道你需要哪个组件。erp:erp网站不在Maven Central中。可能您的pom.xml文件中缺少一个存储库块?因为它是一个WAR文件,所以我不太确定您认为可以使用它作为什么样的依赖项?你想达到什么目的?试试可能重复的问题这与你之前问过的问题基本相同()。我假设com.erp:erp:jar项目也是您正在创建的项目。您应该首先构建该项目(maven将随后在本地存储库中安装生成的jar),然后构建com.e
对。如果你知道你需要哪个组件。erp:erp网站不在Maven Central中。可能您的pom.xml文件中缺少一个存储库块?因为它是一个WAR文件,所以我不太确定您认为可以使用它作为什么样的依赖项?你想达到什么目的?试试可能重复的问题这与你之前问过的问题基本相同()。我假设com.erp:erp:jar项目也是您正在创建的项目。您应该首先构建该项目(maven将随后在本地存储库中安装生成的jar),然后构建com.erp:erp web:war项目。
`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)`