我只是試圖在STS中創建一個新的Maven項目(只是骨架),並直接拋出錯誤。我沒有做或修改任何東西,它只是拋出錯誤,當我創建項目,並且POM顯示錯誤。我對Maven非常陌生,嘗試了在討論板上討論的多個選項,但沒有任何幫助。Maven項目拋出錯誤
錯誤:
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
POM:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.springboot.apidemo</groupId>
<artifactId>springboot-demo-api</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>SPring Boot API Demo</name>
</project>
選項嘗試:
- 刪除回購從.m2目錄/
- 試圖指向由安裝在Eclipse中我的系統行家3.5 'maven下的安裝'
- 試圖聲明插件的POM
- 試圖聲明依賴於POM
- 夾Setting.xml幾乎是空的(我剛剛從Maven的conf目錄拷貝,並沒有觸及這一點)。
新增依賴性:
Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project 'springboot-demo-api'.
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
Plugin
我不擔心任何功能,只需創建一個新的Maven凸出從日食:
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
</dependency>
錯誤POM這種依賴性更新後本身拋出的錯誤是什麼讓我困擾。
有人可以對此有所瞭解嗎?