'parent.relativePath' points at my com.mycompany:MyProject instead of org.apache:apache - Why?

前端 未结 5 1471
情书的邮戳
情书的邮戳 2020-12-23 02:53

What is true is that Solr project directory is inside MyProject parent directory (but there\'s no module or any maven relationship between the 2, just FS convenience). Do I

5条回答
  •  一整个雨季
    2020-12-23 03:09

    I think you have missed out the tag in the question. I'm saying that because, without it This error will not arise. That being said,

    The line you will have to concentrate is the below warning statement.

    'parent.relativePath' points at com.mycompany:MyProject instead of org.apache:apache

    It clearly says that the relative path of tag on your module points to a pom file which has different artifactId compared to what is specified

    This is because there is a mismatch between the artifactId of your parent/pom.xml and the artifactId you have mentioned in the tag of module/pom.xml. To avoid the warning change the in your module/pom.xml as shown below.

      
        com.mycompany
        MyProject
        8
        path-to-your-parent-pom.xml
      
    

提交回复
热议问题