![](/img/trans.png)
[英]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.