@sd_kj (桂介 佐野)

Are you sure you want to delete the question?

If your question is resolved, you may close it.

Leaving a resolved question undeleted may help others!

We hope you find it useful!

VScode Springプロジェクト作成後 pom.xmlエラー

解決したいこと

Springbootの学習のために下記URLを参考にVScodeでHelloWorldを表示させたい。
URLの手順に従いプロジェクト作成後pom.xmlのでエラーが発生します。
pom.xmlのエラー対応方法を教えてください。

https://tech-lab.sios.jp/archives/19941

発生している問題・エラー

Project build error: Non-resolvable parent POM for com.example:demo:0.0.1-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.4.2 from/to central (https://repo.maven.apache.org/maven2): C:\Users\xxxx\.m2\repository\org\springframework\boot\spring-boot-starter-parent\2.4.2\aether-9f8c020e-bb36-436b-b3ed-73730c8f5abc-spring-boot-starter-parent-2.4.2.pom-in-progress (指定されたパスが見つかりません。) and 'parent.relativePath' points at no local POMJava(0)

image.png

該当するソースコード

pom.xml
<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.4.2</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>

自分で試したこと

Java開発環境の見直し(Java -versionで確認済み)
PCを変えて、環境の構築~Mavenプロジェクト作成

Java:11
Spring:2.4.2
VScode:1.52.1
Java Extension Pack:v0.12.1
Spring Boot Extension Pack:v0.0.8

原因、対処法がわかる方ご教授お願い致します。

0 likes

No Answers yet.

Your answer might help someone💌