質問: Spring Tool Suite(STS)環境でSpring Legacy Projectを作成したときに、以下の2つのエラーが発生します。 先日質問させていただい者ですが、メインの64bitPCが一時的に使えなくなり、サブの32bit PCで勉強を再開したのですが 開発環境を作成してプロジェクトを作成したところでエラーが発生します。 解決方法などをご存知の方がいましたらご教授お願いできないでしょうか? OS:Windows7 (32bit) java : jdk-8u121 STS: spring-tool-suite-3.8.4.RELEASE-e4.6.3-win32 ユーザ配下の.m2ディレクトリは削除して何回か試してみたのですが解決しませんでした。 ■1つ目 Error during build of project [HelloWorld] Errors occurred during the build. Errors running builder 'Maven Project Builder' on project 'HelloWorld'. 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 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 ■2つ目 Errors occurred during the build. Errors running builder 'Maven Project Builder' on project 'HelloWorld'. 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 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
回答: ネットワークにプロキシ経由で接続している場合、mavenにプロキシの設定を教えてあげる必要があるような気がします。 mavenは個別にインストールしていますか?それとも eclipseにバンドルされたものですか?