Non-resolvable parent POM for Could not find artifact and 'parent.relativePath' points at wrong local POM

前端 未结 9 1231
广开言路
广开言路 2021-02-05 03:58

I am new to maven.

I have one project which I try to build with the maven3.

When I run the command mvn -X clean install I got the error.

<         


        
9条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-05 04:16

    We had the same issue.

    The parent pom file was available in our local repository, but maven still unsuccessfully tried to download it from the central repository, or from the relativePath (there were no files in the relative path).

    Turns out, there was a file called "_remote.repositories" in the local repository, which was causing this behavior. After deleting all the files with this name from the complete local repository, we could build our modules.

提交回复
热议问题