前提・実現したいこと
Mavenプロジェクトに変更したい。
発生している問題・エラーメッセージ
CoreException: ビルド・プランを計算できませんでした: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.5.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin:jar:3.5.1: ArtifactResolutionException: Could not transfer artifact org.apache.maven.plugins:maven-compiler-plugin:pom:3.5.1 from/to central (https://repo.maven.apache.org/maven2): NullPointerException ライフサイクル構成でカバーされていないプラグインの実行: org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (実行: default-compile, phase: compile)
ソースコード
pom.xml
1<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"> 2 <modelVersion>4.0.0</modelVersion> 3 <groupId>jp.example</groupId> 4 <artifactId>techacademy_jdbc</artifactId> 5 <version>0.0.1-SNAPSHOT</version> 6 <build> 7 <sourceDirectory>src</sourceDirectory> 8 <plugins> 9 <plugin> 10 <artifactId>maven-compiler-plugin</artifactId> 11 <version>3.5.1</version> 12 <configuration> 13 <source>1.8</source> 14 <target>1.8</target> 15 </configuration> 16 </plugin> 17 </plugins> 18 </build> 19</project>
settings.xml
1<settingsxmlns="http://maven.apache.org/SETTINGS/1.0.0" 2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 3 xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 4 https://maven.apache.org/xsd/settings-1.0.0.xsd"> 5 <localRepository>C:\Users\Oleg\.m2\repository</localRepository> 6 <proxies> 7 <proxy> 8 <active>true</active> 9 <protocol>http</protocol> 10 <host>httpproxy.example.com</host> 11 <port>8080</port> 12 </proxy> 13 <proxy> 14 <active>true</active> 15 <protocol>https</protocol> 16 <host>httpsproxy.example.com</host> 17 <port>8080</port> 18 </proxy> 19 </proxies> 20</settings>
試したこと
◆ユーザー\ログオンユーザー.m2/settings.xmlを作成した。上記参照ください。
◆実行より、Maven install を実施したが、同様のエラーが起きる。
補足情報(FW/ツールのバージョンなど)
Eclipse 4.6
Java 8
Maven 3.3.9
OS windows11
※ゲーミングノートPCです
これからプログラミングの学習を始めたいと思っておりますが、このエラーで躓いてしまいました。
申し訳ないですが、教えていただけると幸いです。

回答1件
あなたの回答
tips
プレビュー