LoginSignup
0
0

More than 3 years have passed since last update.

【Spring-boot】pom.xml設定変更でエラーが出た件

Last updated at Posted at 2020-02-23

概要

SpringBootで開発環境にweb.jarライブラリを追加しようとしたところエラーが発生したので、
備忘録として載せます。

環境(ざっくり)

macOS 
Eclipse
SpringToolSuite4

事象

mavenの依存関係にweb.jarライブラリのBootstrapJqueryを追加しようとして、pom.xmlファイルを編集したところ、Falied to read artifact descriptor org.webjars.bootstrap:jar:3.3.71のエラーが出力された。

変更箇所 

<dependencies>要素内に<dependency>要素を2つ追加

    <dependency>
        <groupId>org.webjars</groupId>
        <artifactId>jquery</artifactId>
        <version>1.11.1</version>
    </dependency>
    <dependency>
        <groupId>org.webjars</groupId>
        <artifactId>bootstrap</artifactId>
        <version>3.3.7-1</version>
    </dependency>

解決方法

〜/.m2/Repository配下のファルダを全て削除して、プロジェクトファルダを右クリック→Maven→プロジェクトの更新をクリック

更新作業するときに〜/.m2/配下にMavenのキャッシュが存在するらしいですね。。
以下のリンクが大いに参考になりました。感謝です。
https://qiita.com/ASHITSUBO/items/0d30c1ddf476d2ec96b7

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0