I have a project structure like the below
School-parent
|
|
| services-parent
| | |
| | |-Services-core
| | |
| | |---pom.xml
| |
| |---pom.xml
|
|util-parent
| |
| |-common-util
| | |
| | |---pom.xml
| |
| |---pom.xml
|
|---pom.xml
(1) school-parent's POM looks like below
modelVersion4.0.0/modelVersion
groupIdroom/groupId
artifactIdSchool-parent/artifactId
version0.0.1-SNAPSHOT/version
packagingpom/packaging
properties
util-version0.0.1-SNAPSHOT/util-version
services-parent0.0.1-SNAPSHOT/services-parent
/properties
modules
moduleservices-parent/module
moduleutil-parent/module
/modules
(2) util-parent POM looks like
modelVersion4.0.0/modelVersion
parent
artifactIdSchool-parent/artifactId
groupIdroom/groupId
version0.0.1-SNAPSHOT/version
relativePath..//relativePath
/parent
groupIdroom/groupId
artifactIdutil-parent/artifactId
packagingpom/packaging
version${util-version}/version
modules
modulecommon-util/module
/modules
(3) common-util POM looks like
modelVersion4.0.0/modelVersion
parent
artifactIdutil-parent/artifactId
groupIdroom/groupId
version${util-version}/version
relativePath..//relativePath
/parent
groupIdroom/groupId
artifactIdcommon-util/artifactId
/project
(4) services - parent's POM looks like
modelVersion4.0.0/modelVersion
parent
artifactIdSchool-parent/artifactId
groupIdroom/groupId
version0.0.1-SNAPSHOT/version
relativePath..//relativePath
/parent
groupIdroom/groupId
artifactIdservices-parent/artifactId
packagingpom/packaging
version${services-parent}/version
modules
moduleservices-core/module
/modules
(5) services-core's POM looks like
parent
artifactIdservices-parent/artifactId
groupIdroom/groupId
version${services-parent}/version
relativePath..//relativePath
/parent
groupIdroom/groupId
artifactIdservices-core/artifactId
dependencies
dependency
groupIdroom/groupId
artifactIdcommon-util/artifactId
version${util-version}/version
/dependency
/dependencies
While running the root POM(No. 1), build success.
But while running services parent individually , I am getting an build error
saying it is not able to find common-util.
Is the way i am accessing property value(${...}), inside version tag having
any issue ?
Or
Any other issue ?
Please help me to solve this issue, or give some suggestion on how can i
overcome this problem.. ?
--
View this message in context:
http://maven.40175.n5.nabble.com/Reg-accessing-parent-POM-s-property-in-child-POM-s-version-tag-tp5708657.html
Sent from the Maven - Users mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org