【发布时间】:2014-04-18 18:17:07
【问题描述】:
父 pom 中的某些内容可以采用子 pom 中声明的值吗?
具体来说,我想做这样的事情。
家长:
<scm>
<connection>scm:git:git@github.corp.com:team/${git.repo}.git</connection>
<developerConnection>scm:git:git@github.corp.com:team/${git.repo}.git</developerConnection>
<url>http://github.corp.com/team/${git.repo}</url>
</scm>
孩子:
<properties>
<git.repo>Foo</git.repo>
</properties>
理想情况下,git.repo 属性未在父级中明确设置,因此子级必须覆盖它,或完全覆盖 scm 部分。
【问题讨论】:
标签: maven pom.xml parent-pom