Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.1.0-M1
-
Fix Version/s: 2.1.0-M1
-
Component/s: Inheritance and Interpolation
-
Labels:None
-
Complexity:Intermediate
-
Number of attachments :
Description
example:
<build>
<directory>bld</directory>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>test</id>
<phase>test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<ant dir="${project.build.directory}/test-classes" antfile="${project.build.directory}/test-classes/test.build.xml" />
</tasks>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
When the antrun plugin executes, the expressions will be resolved with relative paths, not absolute ones (as would be the case if they were run through the pathTranslator).
This is a problem with the interpolation post-processor that handles path translation, because it doesn't have any sensitivity to prefixed expressions. In other words, it'll handle build.directory but not project.build.directory.
Issue Links
| This issue is duplicated by: | ||||
| MNG-4083 | project.build.directory not set properly for plugins |
|
|
|
| This issue relates to: | ||||
| MECLIPSE-99 | The plugin seems to append ${basedir} regardless of the nature of ${pom.build.output.directory}. |
|
|
|
| This issue is depended upon by: | ||||
| MECLIPSE-187 | problem when outputDirectory and testOutputDirectory are absolute |
|
|
|
| MECLIPSE-269 | "Can't canonicalize system path" error using the goal eclispse:eclipse |
|
|
|
to be clear, the key points to this issue are the prefixed expression: project.build.directory and the relative build/directory value: bld.