1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Project build error: Non-resolvable parent POM for

Posted at

事象 : Mavenプロジェクトをインポートしたらpom.xmlで怒られた

  • 環境
    • Windows10 Pro バージョン1909
    • java version "1.8.0_251
    • Eclipse IDE for Enterprise Java Developers Version: 2020-09 (4.17.0)
[Markers]タブのメッセージ
Project build error: Non-resolvable parent POM for com.koproject:ko-project:2.4.0: Failure to find jp.go.meti.oya-project:oya-project:pom:2.15.0 in 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 and 'parent.relativePath' points at wrong local POM

原因 : parentで指定しているバージョンが親pom.xmlのバージョンと違うから

プロジェクトのpom.xml
    <parent>
        <!-- 省略 -->
        <version>2.15.0</version>
        <relativePath>../oya-project</relativePath>
    </parent>
親(../oya-project/pom.xml)
    <!-- 省略 -->
    <version>2.20.0</version>
    <packaging>pom</packaging>

対応 : parentで指定するバージョンを親pom.xmlに合わせる

プロジェクトのpom.xml
    <parent>
        <!-- 省略 -->
        <version>2.20.0</version>
        <relativePath>../oya-project</relativePath>
    </parent>

原因 : プロキシの設定

今回は違うけどいつかなったとき用にメモ
参考 : Mavenのプロキシ設定 - Qiita

1
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?