Uploaded image for project: 'Maven Site Plugin'
  1. Maven Site Plugin
  2. MSITE-604

Properties from settings.xml are not recognized in site distribution management

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0
    • 3.5
    • site:deploy
    • None
    • Apache Maven 2.2.1 and 3.0.3

    Description

      My distribution management section looks like:

      <distributionManagement>
         <site>
             <id>${acme-corporate-pom.siteRepositoryId}</id>
             <url>${acme-corporate-pom.siteRepositoryUrl}</url>
         </site>
      </distributionManagement>
      

      Where the default property values are defined in the pom:

      <properties>
          <acme-corporate-pom.siteRepositoryId>acme-site</acme-corporate-pom.siteRepositoryId>
          <acme-corporate-pom.siteRepositoryUrl>scp://sites.intranet.acme.com/var/www</acme-corporate-pom.siteRepositoryUrl>
      </properties>
      

      I'm able redefine properties from command line, the provided repository is used instead default one:

      mvn site:site site:deploy -Dacme-corporate-pom.siteRepositoryUrl=scp://somehost/var/www/sites -Dacme-corporate-pom.siteRepositoryId=somehost
      

      But when I redefine properties in the profile in settings.xml, they are ignored. The profile is activated in <activeProfiles element.

      It looks, than only m-site-p ignores properties defined in the settings.xml file. m-deploy-p recognizes properties as I expected (distribution management section for articats deployment is configured in similar way to site deployment).


      Marcin Kuthan
      Maven For Enterprise - http://code.google.com/p/m4enterprise/

      Attachments

        1. MSITE-604-it.patch
          6 kB
          Joerg Schaible
        2. MSITE-604-it.patch
          3 kB
          Joerg Schaible
        3. MSITE-604-it.patch
          3 kB
          Vincent Latombe
        4. MSITE-604-maven3-2.patch
          0.9 kB
          Vincent Latombe
        5. MSITE-604-maven3.patch
          1 kB
          Vincent Latombe
        6. MSITE-604.tgz
          2 kB
          Joerg Schaible

        Issue Links

          Activity

            People

              hboutemy Herve Boutemy
              mkuthan Marcin Kuthan
              Votes:
              16 Vote for this issue
              Watchers:
              22 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: