[
http://jira.codehaus.org/browse/MNG-3355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
John Casey closed MNG-3355.
---------------------------
Assignee: John Casey
Resolution: Fixed
I've added translated paths to the context overrides for references to build
directories during model interpolation, to allow expressions referencing these
values to be interpolated as translated, not as raw values. Normal path
translation still happens later, to catch those build directories that don't
themselves contain expressions referencing other directory overrides from the
context.
Translation: If the POM file is from a local build directory (not a
repository), use the path-translated version of build.directory,
build.outputDirectory, build.sourceDirectory and so on the first time through,
rather than depending on some secondary process to manage this after the main
path-translation sweep later in the project-construction process.
This has been applied to both the 2.0.x and trunk code lines.
> CLONE -${pom.build.sourceDirectory} and ${pom.build.testSourceDirectory} no
> longer recognized
> ---------------------------------------------------------------------------------------------
>
> Key: MNG-3355
> URL: http://jira.codehaus.org/browse/MNG-3355
> Project: Maven 2
> Issue Type: Bug
> Components: POM
> Environment: n/a
> Reporter: Venelin Mitov
> Assignee: John Casey
> Fix For: 2.0.9
>
> 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