ソースを参照

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