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

前端 未结 9 1115
广开言路
广开言路 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:26

    Make sure you have settings.xml. I had the same problem when I've deleted it by mistake.

    0 讨论(0)
  • 2021-02-05 04:27

    I faced the same issue. Setting relative path of the parent in module projects solved the issue.

    Use <relativePath>../Parent Project Name/pom.xml</relativePath>

    0 讨论(0)
  • 2021-02-05 04:30

    Any way you mentioned /root/.m2/settings.xml.

    But in my Case i missed the settings.xml to configure in the maven preferences. so that maven will search for the relative_path pom.xml from the remote_repository which is configured in settings.xml

    0 讨论(0)
提交回复
热议问题