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

                 Key: MSITE-501
                 URL: http://jira.codehaus.org/browse/MSITE-501
             Project: Maven 2.x Site Plugin
          Issue Type: Bug
    Affects Versions: 2.1.1
         Environment: Maven 2.2.1, Site-Plugin 2.1.1, Linux x86_64
            Reporter: Michael Wenig


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!

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

        

Reply via email to