You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Wendy Smoak (JIRA)" <ji...@codehaus.org> on 2006/12/16 22:27:45 UTC

[jira] Reopened: (MNG-2201) Interpolation problem when using surefire

     [ http://jira.codehaus.org/browse/MNG-2201?page=all ]

Wendy Smoak reopened MNG-2201:
------------------------------

             
Re-opening as I'm seeing the same behavior again.

${basedir} works fine, as does ${project.build.finalName}, but if I use ${project.build.directory}, it is not expanded.

In http://svn.apache.org/repos/asf/shale/framework/trunk/shale-apps/shale-usecases/pom.xml if I change to:

{noformat}
                                        <property>
                                            <name>cargo.deployable</name>
                                            <value>${project.build.directory}/${artifactId}.war</value>
                                        </property>
{noformat}

It results in 

[INFO] deployable: ${project.build.directory}/shale-usecases.war



> Interpolation problem when using surefire
> -----------------------------------------
>
>                 Key: MNG-2201
>                 URL: http://jira.codehaus.org/browse/MNG-2201
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Inheritance and Interpolation
>    Affects Versions: 2.0, 2.0.1, 2.0.3, 2.0.2, 2.0.4
>            Reporter: Vincent Massol
>         Assigned To: John Casey
>            Priority: Critical
>             Fix For: 2.0.5
>
>   Original Estimate: 4 hours
>  Remaining Estimate: 4 hours
>
> I've just tried the cargo build with the latest trunk versions of 2.0.4-SNAPSHOT and surefire plugin, and it seems there's some interpolation issue (I don't know if the problem is with the surefire plugin or with maven core).
> Here's what I have:
> {code:xml}
>   <build>
>     <pluginManagement>
>       <plugins>
>         <plugin>
>           <artifactId>maven-surefire-plugin</artifactId>
>           <configuration>
>             <forkMode>pertest</forkMode>
>             <systemProperties>
>               [...]
>               <property>
>                 <name>cargo.target.dir</name>
>                 <value>${project.build.directory}</value>
>               </property>
> [...]
> {code}
> It seems the ${project.build.directory} property is no longer getting resolved as I got a directory named ${project.build.directory} created.
> It used to work fine before.

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