You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2011/01/07 14:28:58 UTC

[jira] Closed: (MNG-4964) build properties not resolved in profiles

     [ http://jira.codehaus.org/browse/MNG-4964?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann closed MNG-4964.
----------------------------------

    Resolution: Not A Bug
      Assignee: Benjamin Bentmann

This is known limitation. From [Introduction to Profiles|http://maven.apache.org/guides/introduction/introduction-to-profiles.html]:
bq. As of Maven 2.0.9, the tags <exists> and <missing> could be interpolated. Supported variables are system properties like ${user.home} and environment variables like ${env.HOME}. Please note that properties defined in the POM itself are not available for interpolation here.

> build properties not resolved in profiles
> -----------------------------------------
>
>                 Key: MNG-4964
>                 URL: http://jira.codehaus.org/browse/MNG-4964
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Inheritance and Interpolation
>    Affects Versions: 3.0.1
>         Environment: MacOSX Snow Leopard
>            Reporter: Kabhal
>            Assignee: Benjamin Bentmann
>
> project.build.sourceDirectory is not resolved in the profile :
> <project>
>     ...
>     <profiles>
>         <profile>
>             <id>wscompile</id>
>             <activation>
>                 <file>          
>                     <missing>${project.build.sourceDirectory}/com/company/directory</missing>
>                 </file>         
>             </activation>
>             <build>...</build>
>         </profile>
>     </profiles>
>     ...
> </project>

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