Uploaded image for project: 'Maven Release Plugin'
  1. Maven Release Plugin
  2. MRELEASE-756

release:prepare ignores properties from settings.xml

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.2.2
    • None
    • prepare
    • None
    • Maven 3.0.3, Win7, Java 1.6.0._32 64Bit

    Description

      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.

      settings.xml
      ...
        <profile>
           <id>demo</id>
           <properties> 
               <test.url>jdbc:oracle:thin:@//java/xe</test.url>
           <properties> 
        <profile>
      
        <activeProfiles>
             <activeProfile>demo</activeProfile>
        </activeProfiles>
      ...
      

      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.

      Attachments

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              ralph Ralph van Etten
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: