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

Properties overwritten by settings.xml are ignored when creating parent-links

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 2.1.1
    • None
    • property interpolation
    • None
    • Maven 2.2.1, Site-Plugin 2.1.1, Linux x86_64

    Description

      Our Parent has a url defined by

      <url>${site.access.url}</url>

      where

      <properties>
      <site.access.url>http://testdoku.ourdomain.de/mvn-sites/${groupId}/${artifactId}/${version}</site.access.url>
      </properties>

      this site.access-url is overwritten by settings.xml on our production server to the production-server:

      <site.access.url>http://doku.ourdomain.de/mvn-sites/${groupId}/${artifactId}/${version}</site.access.url>

      (this is for security reasons to avoid productive-changes on misconfigured testing-systems)

      Unfortunately on our production-server links to the parentPom are generated only by the properties of the parentPom ignoring the settings.xml (which is used everywhere else). Therefore the parent-links are pointing to the testing system and not to production system!

      As we are not generating releasePoms (as we need some properties to be present in order to allow changing by children) we have no chance to generate correct links without putting them directly in the pom

      Steps to Reproduce:

      Generate a parentPom:

      <properties>
      <site.access.url>http://testdoku.ourdomain.de/mvn-sites/${groupId}/${artifactId}/${version}</site.access.url>
      </properties>
      <url>${site.access.url}</url>

      Generate a second project using the parent

      put in your settings.xml:

      <site.access.url>http://doku.ourdomain.de/mvn-sites/${groupId}/${artifactId}/${version}</site.access.url>

      an run site for the child - the parentLink is wrong!

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              contact@wennysoft.de Michael Wenig
              Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: