質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Java

Javaは、1995年にサン・マイクロシステムズが開発したプログラミング言語です。表記法はC言語に似ていますが、既存のプログラミング言語の短所を踏まえていちから設計されており、最初からオブジェクト指向性を備えてデザインされています。セキュリティ面が強力であることや、ネットワーク環境での利用に向いていることが特徴です。Javaで作られたソフトウェアは基本的にいかなるプラットフォームでも作動します。

Apache Maven 2

Apache Mavenは、ソフトウェアプロジェクトの管理ツールです。

Spring Boot

Spring Bootは、Javaのフレームワークの一つ。Springプロジェクトが提供する様々なフレームワークを統合した、アプリケーションを高速で開発するために設計されたフレームワークです。

Q&A

0回答

4087閲覧

Spring tool Suite 4 でのプロジェクトファイル読み込み時のpom.xmlのエラーを解消したい

Aomurasaki_j

総合スコア6

Java

Javaは、1995年にサン・マイクロシステムズが開発したプログラミング言語です。表記法はC言語に似ていますが、既存のプログラミング言語の短所を踏まえていちから設計されており、最初からオブジェクト指向性を備えてデザインされています。セキュリティ面が強力であることや、ネットワーク環境での利用に向いていることが特徴です。Javaで作られたソフトウェアは基本的にいかなるプラットフォームでも作動します。

Apache Maven 2

Apache Mavenは、ソフトウェアプロジェクトの管理ツールです。

Spring Boot

Spring Bootは、Javaのフレームワークの一つ。Springプロジェクトが提供する様々なフレームワークを統合した、アプリケーションを高速で開発するために設計されたフレームワークです。

0グッド

0クリップ

投稿2019/07/25 23:50

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

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

退会済みユーザー

退会済みユーザー

2019/07/26 00:26

つ プロキシ設定
m.ts10806

2019/07/26 00:26 編集

どういう動作・操作をしようとして現在の現象がでたのでしょうか
Aomurasaki_j

2019/07/26 02:44 編集

>asahina1979さん コメントありがとうございます。 初心者すぎて、「今のプロキシ設定をどう確認して」「何が不都合で」「どう変えたらいいか」 わからない状況です。教えて頂けますでしょうか。 >mts10806さん コメントありがとうございます。 立ち上げた時点でエラーが出る状況です。回答になっていますでしょうか。
m.ts10806

2019/07/26 03:22

その「立ち上げる」は質問者さんの言葉なので相違が発生しえます。 STS上のメニュー名で記載して下さい。
Aomurasaki_j

2019/07/26 04:27

File > new > Spring Starter Project > Finishした瞬間に、 エラーが発生します。
m.ts10806

2019/07/26 04:28

Dependencies未選択でプロジェクトを作った場合はどうなりますか?
Aomurasaki_j

2019/07/26 04:38 編集

エラー1件になりました。 ``` Description Resource Path Location Type Unknown pom.xml /SGquiz line 1 Maven Configuration Problem ```
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問