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

Dan Tran commented on MNG-2186:
-------------------------------

more notes

you are right about  mkdir, how ever

my surefire configuration the usage of ${project.build.directory}, so this 
issue is valid

I am sure this issue will hit other usages

-D


On 3/29/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote:
${project.build.directory} works fine, it's only the echo result that's strange.

Add this after the echo :

                <mkdir dir="${project.build.directory}"/>
                <touch 
file="${project.build.directory}/${project.artifactId}.txt"/>

and create a child project of your pom with the same plugin execution, and your 
see that it create
two txt files in correct directories (parent/target and child/target)




> POM interpolation problem in maven-2.0.3
> ----------------------------------------
>
>          Key: MNG-2186
>          URL: http://jira.codehaus.org/browse/MNG-2186
>      Project: Maven 2
>         Type: Bug

>   Components: Inheritence and Interpolation
>     Versions: 2.0.3
>  Environment: xp
>     Reporter: Dan Tran
>     Priority: Critical

>
>
> my maven-2.0.3 shows ${project.build.directory}=target.  Instead of the 
> fullpath
> this surely breaks the reactor build/test.
>  
> here is an example pom
> <?xml version="1.0"?>
> <project>
>   <modelVersion>4.0.0</modelVersion>
>   
>   <!--
>   <parent>
>     <groupId>test</groupId>
>     <artifactId>parent</artifactId>
>     <version>1.0-SNAPSHOT</version> 
>   </parent>
>   -->
>   <packaging>jar</packaging>
>   <groupId>test</groupId>
>   <artifactId>child</artifactId>
>   <version>1.0-SNAPSHOT</version>
>   
>   <name>child</name>
>     
>   <build>
>     <plugins>
>       <plugin>
>         <artifactId>maven-antrun-plugin</artifactId>
>         <executions>
>           <execution> 
>             <id>echo</id>
>             <phase>generate-sources</phase>
>             <goals>
>               <goal>run</goal> 
>             </goals>
>             <configuration> 
>               <tasks>
>                 
> <echo>project.build.directory:${project.build.directory}</echo>
>               </tasks>
>             </configuration>
>           </execution> 
>         </executions>
>       </plugin>
>     </plugins>    
>   </build>
> </project>
> Carlos also comfirmed
> Confirmed :(
> 2.0.3 = project.build.directory:target
> 2.0.2 = project.build.directory:C:\Documents and
> Settings\csanchez\Local Settings\Temp\target

-- 
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