[英]Maven Run Error “maven-clean-plugin:2.5 or one of its dependencies could not be resolved”
[英]maven-clean-plugin or one of its dependencies could not be resolved
我正在尝试在离线Ubuntu机器上安装neo4j
。 因此我尝试使用以下方法从源代码构建它:
mvn clean install -o
但我得到以下错误:
Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its
dependencies could not be resolved: Cannot access central
(https://repo.maven.apache.org/maven2) in offline mode and the artifact
org.apache.maven.plugins:maven-clean-plugin:jar:2.5 has not been
downloaded from it before.
所以我在另一台机器上从https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/手动下载了相应的jar文件,然后将其传输到Ubuntu上。 但现在还不清楚我要对该文件做些什么......
Maven需要互联网访问或具有Internet访问权限的Nexus / Artifactory(许多公司运行他们自己的Nexus / Artifactory,它反映了MavenCentral)。
虽然理论上可以下载相关的jar并在本地存储库( install:install-file
)中逐个安装它们,但您可能需要花费数天的时间来安装数十个工件(可能是数百个)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.