STS4 でのプロジェクトファイル読み込み時のpom.xmlのエラーを解消したい
プログラミング初心者です。(プログラミング歴3週間)
現在STS4にてSpring Starter Projectでプロジェクトを作成。プログラミングを開始しようとしていますが、pomファイルにて60以上エラーが出ており解消できない状態です。
ちなみにstarterでの設定は以下の通りです。
type:Maven
Packaging:Jar
Java Version:11
Language:Java
Dependencies: Spring Web Starter, Thymeleaf
発生している問題・エラーメッセージ(一部抜粋)
Description Resource Path Location Type Failed to read artifact descriptor for org.springframework.boot:spring-boot-starter-thymeleaf:jar:2.1.6.RELEASE org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.springframework.boot:spring-boot-starter-thymeleaf:jar:2.1.6.RELEASE at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:276) at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:192) Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Failure to transfer org.springframework.boot:spring-boot-starter-thymeleaf:pom:2.1.6.RELEASE from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-thymeleaf:pom:2.1.6.RELEASE from/to central (https://repo.maven.apache.org/maven2): Failed to connect to repo.maven.apache.org/151.101.40.215:443 at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:422) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:224) ... 38 more Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Failure to transfer org.springframework.boot:spring-boot-starter-thymeleaf:pom:2.1.6.RELEASE from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-thymeleaf:pom:2.1.6.RELEASE from/to central (https://repo.maven.apache.org/maven2): Failed to connect to repo.maven.apache.org/151.101.40.215:443 at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:240) at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:208) ... 41 more pom.xml /SGquiz line 1 Maven Dependency Problem Missing artifact ch.qos.logback:logback-classic:jar:1.2.3 pom.xml /SGquiz line 1 Maven Dependency Problem Missing artifact ch.qos.logback:logback-core:jar:1.2.3 pom.xml /SGquiz line 1 Maven Dependency Problem The container 'Maven Dependencies' references non existing library 'C:\Users\16418-y.takada.m2\repository\org\springframework\boot\spring-boot-starter-thymeleaf\2.1.6.RELEASE\spring-boot-starter-thymeleaf-2.1.6.RELEASE.jar' SGquiz Build path Build Path Problem The project cannot be built until build path errors are resolved SGquiz Unknown Java Problem Unknown pom.xml /SGquiz line 1 Maven Configuration Problem
該当のソースコード
コード
問題と思われるpomファイルのコード
<?xml version="1.0" encoding="UTF-8"?> <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> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.6.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent> <groupId>com.example</groupId> <artifactId>SGquiz</artifactId> <version>0.0.1-SNAPSHOT</version> <name>SGquiz</name> <description>Quiz for socail gathering</description> <properties> <java.version>11</java.version> </properties> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build> </project>
試したこと
Mavenがうまく機能していない?とあたりをつけているのですが何も対処できないでいます。
補足情報(FW/ツールのバージョンなど)
・Javaのversion
java version "11.0.3" 2019-04-16 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.3+12-LTS) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.3+12-LTS, mixed mode)
・Mavenの詳細
Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 2019-04-05T04:00:29+09:00) Maven home: C:\hrworks\apache-maven-3.6.1\bin.. Java version: 11.0.3, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-11.0.3 Default locale: ja_JP, platform encoding: MS932 OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
・Windows 10 Pro
あなたの回答
tips
プレビュー