[ http://jira.codehaus.org/browse/MNG-2220?page=comments#action_63414 ] 

John Casey commented on MNG-2220:
---------------------------------

I've verified this issue using ${pom.*} and ${project.*}. It seems that this 
problem was fixed in 2.0.3, then regressed in 2.0.4, when we fixed the other 
issues with path alignment of interpolated values (the context stuff in the 
project builder).

> ${pom.build.sourceDirectory} and ${pom.build.testSourceDirectory} no longer 
> recognized
> --------------------------------------------------------------------------------------
>
>          Key: MNG-2220
>          URL: http://jira.codehaus.org/browse/MNG-2220
>      Project: Maven 2
>         Type: Bug

>   Components: POM
>     Versions: 2.0.4
>  Environment: n/a
>     Reporter: Marcel Schutte
>  Attachments: buglet.zip
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to