You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (JIRA)" <ji...@codehaus.org> on 2012/06/10 22:58:21 UTC

[jira] (MRELEASE-756) release:prepare ignores properties from settings.xml

     [ https://jira.codehaus.org/browse/MRELEASE-756?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Scholte closed MRELEASE-756.
-----------------------------------

    Resolution: Not A Bug
      Assignee: Robert Scholte

It's not a maven-release-plugin bug, but a Maven bug. Upgrading to at least maven-3.0.4 fixes this issue.
                
> release:prepare ignores properties from settings.xml
> ----------------------------------------------------
>
>                 Key: MRELEASE-756
>                 URL: https://jira.codehaus.org/browse/MRELEASE-756
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: prepare
>    Affects Versions: 2.2.2
>         Environment: Maven 3.0.3, Win7, Java 1.6.0._32 64Bit
>            Reporter: Ralph Engelmann
>            Assignee: Robert Scholte
>
> When I run {{release:prepare}}, then the properties defined in my maven settings.xml in an active profile are not taken in account during the build.
> {code:title=settings.xml}
> ...
>   <profile>
>      <id>demo</id>
>      <properties> 
>          <test.url>jdbc:oracle:thin:@//java/xe</test.url>
>      <properties> 
>   <profile>
>   <activeProfiles>
>        <activeProfile>demo</activeProfile>
>   </activeProfiles>
> ...
> {code}
> But the usage of "${test.url}" in the pom.xml (when running release:prepare) behaves like the property is not defined (it is not substituted).
> But when using maven-release-plugin 2.2.1 the parameter is taken in account like expected.
> _I could not test, if release:perform has the same problem._

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira