浏览代码

Specifies project.parent.relativePath.

Maven reports warnings if the project, as is, is used as a submodule with a
pom files in the parent directory, because that pom isn't the parent pom.

If we override the default value for the relativePath, maven will look
for the parent pom in the repositories, which is the behavior we want
and eliminates the warnings.

See:
https://maven.apache.org/ref/3.0.5/maven-model/apidocs/org/apache/maven/model/Parent.html#getRelativePath()
Danil 8 年前
父节点
当前提交
4545cdbb8f
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      pom.xml

+ 1
- 0
pom.xml 查看文件

@@ -9,6 +9,7 @@
9 9
         <groupId>org.springframework.boot</groupId>
10 10
         <artifactId>spring-boot-starter-parent</artifactId>
11 11
         <version>1.5.10.RELEASE</version>
12
+        <relativePath></relativePath>
12 13
     </parent>
13 14
     <description>This application shows a few key concepts of
14 15
         Domain Driven Design implemented in Enterprise Java.