Non-resolvable parent POM using Maven 3.0.3 and relativePath notation

后端 未结 8 2191
既然无缘
既然无缘 2021-02-03 21:19

After migrating to Mavent 3.0.3 Parent poms in several Projects cannot be resolved anymore.

The Projects are structured in a default manner, so I set parent.relativePath

8条回答
  •  臣服心动
    2021-02-03 21:55

    Make sure you Double-Check that the version you refer to in the child-pom is the same as that in the parent-pom. For me, I'd bumped version in the parent and had it as 3.1.0.0-RELEASE, but in the child-pom, I was still referring to the previous version via relativePath, and had it defined as 2.0.0.0-SNAPSHOT. It did not make any difference if I included just the parent directory, or had the "pom.xml" appended to the directory:

                
        eric-project-parent
        com.eric.common
         
        2.0.0.0-SNAPSHOT     
        
                    ../../EricParentAsset/projects/eric-project-parent           
    
    

提交回复
热议问题