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

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

    I encountered an issue like this using the Maven Release Plugin. Resolving using relative paths (i.e. for the parent pom in the child module ../parent/pom.xml) did not seem to work in this scenario, it keeps looking for the released parent pom in the Nexus repository. Moving the parent pom to the parent folder of the module resolved this.

提交回复
热议问题