STSで新しいMavenプロジェクト(スケルトンのみ)を作成しようとしていますが、すぐにエラーがスローされます。私は何もしていない、または何も修正していない、それはちょうど私がプロジェクトを作成し、POMがエラーを表示しているときにエラーを投げている。私はMavenには新しく、ディスカッション掲示板で議論された複数のオプションを試しましたが、助けられなかったものはありません。 .m2/ 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>
オプションを試してみました'Mavenインストール'
- はPOM
- で宣言するプラグインを試してみました(私はMavenのconfディレクトリからコピーされ、これには触れませんでした)
- Setting.xmlがほとんど空であるPOM で宣言依存性を試してみました。
POMで追加の依存関係:
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
</dependency>
エラーPOMでこの依存関係を更新した後:
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のPROJを作成し、任意の機能を心配ありませんよそれ自体が私を悩ますものであるというエラーを投げている。
誰かがこれにいくつかの光を当てることができますか?