Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Duplicate
-
Affects Version/s: 2.0
-
Fix Version/s: None
-
Component/s: Inheritance and Interpolation
-
Labels:None
-
Complexity:Intermediate
-
Number of attachments :
Description
I have pom.xml with following snippet:
<build>
<sourceDirectory>src\JavaSource</sourceDirectory>
<resources>
<resource>
<directory>src\JavaSource</directory>
and it works.
If I use property like this
<build>
<sourceDirectory>src\JavaSource</sourceDirectory>
<resources>
<resource>
<directory>${project.build.sourceDirectory}</directory>
it doesn't work.
This issue needs to be resolved to really get the most out of the inheritance model. If I've declared the <sourceDirectory> in a parent pom, the child should be able to use ${project.build.sourceDirectory} throughout.