【发布时间】:2012-03-31 06:46:21
【问题描述】:
在多模块项目结构中
myApp
|-moduleA
|---pom.xml
|-moduleB
|---pom.xml
|-pom.xml
如果我在 parent.pom 中有以下属性
<properties>
<moduleA.version>4.67</moduleA.version>
<moduleB.version>4.68</moduleB.version>
</properties>
如何从任何子 pom 访问父 pom 中的属性?我在孩子 pom 上试过这个,但没有用。
<groupId>com.test</groupId>
<artifactId>moduleA</artifactId>
<version>${moduleA.version}</version>
【问题讨论】:
标签: maven build release release-management