Description
The properties ${pom.build.sourceDirectory} and ${pom.build.testSourceDirectory} (and perhaps others as well) are no longer recognized in pom.xml. The following pom fragment had the desired effect of copying resources from the sourceDirectory in version 2.0.3, but doesn't work in 2.0.4:
<build>
<sourceDirectory>src</sourceDirectory>
<testSourceDirectory>src-test</testSourceDirectory>
<resources>
<resource>
<directory>${pom.build.sourceDirectory}</directory>
<includes>
<include>*/.properties</include>
</includes>
</resource>
</resources>
<testResources>
<testResource>
<directory>${pom.build.testSourceDirectory}</directory>
<includes>
<include>**/mockfiles/</include>
</includes>
</testResource>
</testResources>
The attached project will fail on a 'mvn test' under maven 2.0.4 and succeed under 2.0.3
Attachments
Attachments
Issue Links
- is duplicated by
-
MNG-2220 ${pom.build.sourceDirectory} and ${pom.build.testSourceDirectory} no longer recognized
- Closed
- is related to
-
MNG-1927 ${project.build.directory} different in M2.0 & M2.0.1
- Closed
-
MNG-2124 Incorrect resolution of parent POM properties
- Closed
-
MNG-2223 Interpolation in resources section appears not to work correctly
- Closed
-
MNG-3530 Regression: Properties get resolved before the LifeCycle is Forked.
- Closed