2013-10-25 85 views
1

我正在嘗試整合Atlassian Clover插件來處理我現有的Maven 3項目。我也在使用Nexus 2.6.3。例如Nexus拒絕下載文物?

mvn clover2:setup test clover2:aggregate clover2:clover 

產生錯誤:

[ERROR] Failed to execute goal com.atlassian.maven.plugins:maven-clover2-plugin:3.2.0:instrumentInternal (default-cli) on project hpcmom: Execution default-cli of goal com.atlassian.maven.plugins:maven-clover2-plugin:3.2.0:instrumentInternal failed: Plugin com.atlassian.maven.plugins:maven-clover2-plugin:3.2.0 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.apache.ant:ant:jar:1.8.4, com.cenqua.clover:clover:jar:3.2.0: Could not find artifact org.apache.ant:ant:jar:1.8.4 in nexus (http://olympus:8081/nexus/content/groups/public) -> [Help 1] 

這是不正確的,我可以看到和下載手動據稱失蹤文物org.apache.ant:ant:jar:1.8.4正確中亞,甚至從遠程倉庫選項卡視圖我也可以找所需的工件。

我的體型也導致了以下錯誤:

Downloading: http://olympus:8081/nexus/content/groups/public/org/codehaus/plexus/plexus-compiler-api/2.2/plexus-compiler-api-2.2.pom 
[WARNING] The POM for org.codehaus.plexus:plexus-compiler-api:jar:2.2 is missing, no dependency information available 
Downloading: http://olympus:8081/nexus/content/groups/public/org/apache/ant/ant/1.8.4/ant-1.8.4.pom 
[WARNING] The POM for org.apache.ant:ant:jar:1.8.4 is missing, no dependency information available 
Downloading: http://olympus:8081/nexus/content/groups/public/org/apache/ant/ant-launcher/1.8.4/ant-launcher-1.8.4.pom 
[WARNING] The POM for org.apache.ant:ant-launcher:jar:1.8.4 is missing, no dependency information available 
Downloading: http://olympus:8081/nexus/content/groups/public/org/apache/maven/reporting/maven-reporting-impl/2.0.5/maven-reporting-impl-2.0.5.pom 
[WARNING] The POM for org.apache.maven.reporting:maven-reporting-impl:jar:2.0.5 is missing, no dependency information available 
Downloading: http://olympus:8081/nexus/content/groups/public/com/cenqua/clover/clover/3.2.0/clover-3.2.0.pom 
[WARNING] The POM for com.cenqua.clover:clover:jar:3.2.0 is missing, no dependency information available 
Downloading: http://olympus:8081/nexus/content/groups/public/com/intellij/annotations/9.0.4/annotations-9.0.4.pom 
[WARNING] The POM for com.intellij:annotations:jar:9.0.4 is missing, no dependency information available 
Downloading: http://olympus:8081/nexus/content/groups/public/org/apache/ant/ant/1.8.4/ant-1.8.4.jar 
Downloading: http://olympus:8081/nexus/content/groups/public/com/cenqua/clover/clover/3.2.0/clover-3.2.0.jar 

回答

1

確保中央存儲庫是你的公開組的一部分。查看配置,並可能通過瀏覽Nexus內的遠程回購進行檢查,以確保沒有網絡問題阻止Nexus連接到中央回購站以下載這些瓶子。

一旦您確認強制更新,因爲Maven可能已經緩存了在您的本地存儲庫中找不到組件的事實。使用

mvn -U clover2:setup test clover2:aggregate clover2:clover