You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "John Allen (JIRA)" <ji...@codehaus.org> on 2006/05/18 19:50:41 UTC

[jira] Created: (MSITE-135) inherited site.xml files are interpolated with the originating project's model values and not the consumer project's values

inherited site.xml files are interpolated with the originating project's model values and not the consumer project's values
---------------------------------------------------------------------------------------------------------------------------

         Key: MSITE-135
         URL: http://jira.codehaus.org/browse/MSITE-135
     Project: Maven 2.x Site Plugin
        Type: Bug

    Versions: 2.0-beta-5    
 Environment: 2.0.4
    Reporter: John Allen


inherited site.xml files are interpolated with the originating project's model values and not the consumer project's values

i have a n-deep multiproject env; when a sub-project uses the root project's site.xml file, any ${project.*} expressions defined in the root site.xml are replaced with values from the root project and not the project that is being rendered, ie. title in index.html would be "root project" and not "sub-sub-sub-project". This applied to all ${project.*} expressions in the site.xml

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


[jira] Updated: (MSITE-135) inherited site.xml files are interpolated with the originating project's model values and not the consumer project's values

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSITE-135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MSITE-135:
-------------------------------

    Fix Version/s: 2.0-beta-7

> inherited site.xml files are interpolated with the originating project's model values and not the consumer project's values
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MSITE-135
>                 URL: http://jira.codehaus.org/browse/MSITE-135
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0-beta-5
>         Environment: 2.0.4
>            Reporter: John Allen
>             Fix For: 2.0-beta-7
>
>
> inherited site.xml files are interpolated with the originating project's model values and not the consumer project's values
> i have a n-deep multiproject env; when a sub-project uses the root project's site.xml file, any ${project.*} expressions defined in the root site.xml are replaced with values from the root project and not the project that is being rendered, ie. title in index.html would be "root project" and not "sub-sub-sub-project". This applied to all ${project.*} expressions in the site.xml

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

        

[jira] Commented: (MSITE-135) inherited site.xml files are interpolated with the originating project's model values and not the consumer project's values

Posted by "Brian Jackson (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=133734#action_133734 ] 

Brian Jackson commented on MSITE-135:
-------------------------------------

I think I'm experiencing this issue or one related to it.  The projects in our organization defer their versioning to our release system.  To do this our pom.xml files all have their version as "${build.number}" which our release system (TeamCity) passes in as a -D style property.  When the pom.xml is deployed to our repository it still contains "${build.number}" instead of the substituted value.  The only thing this currently screws up is the site generation since the maven-site-plugin attempts to download the parent's site.xml using this value rather than the correct version number for the parent, which can be found in the parent element in the originating pom.xml or if that value is RELEASE, in the parent's maven-metadata.xml.  Any chance this can be fixed to use the value from one of those two locations instead of directly from the parent's pom.xml?

> inherited site.xml files are interpolated with the originating project's model values and not the consumer project's values
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MSITE-135
>                 URL: http://jira.codehaus.org/browse/MSITE-135
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>          Components: inheritance
>    Affects Versions: 2.0-beta-5
>         Environment: 2.0.4
>            Reporter: John Allen
>             Fix For: 2.0-beta-7
>
>
> inherited site.xml files are interpolated with the originating project's model values and not the consumer project's values
> i have a n-deep multiproject env; when a sub-project uses the root project's site.xml file, any ${project.*} expressions defined in the root site.xml are replaced with values from the root project and not the project that is being rendered, ie. title in index.html would be "root project" and not "sub-sub-sub-project". This applied to all ${project.*} expressions in the site.xml

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

        

[jira] Updated: (MSITE-135) inherited site.xml files are interpolated with the originating project's model values and not the consumer project's values

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSITE-135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Lundberg updated MSITE-135:
----------------------------------

    Fix Version/s:     (was: 2.0-beta-7)
                   2.0-beta-8

> inherited site.xml files are interpolated with the originating project's model values and not the consumer project's values
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MSITE-135
>                 URL: http://jira.codehaus.org/browse/MSITE-135
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>          Components: inheritance
>    Affects Versions: 2.0-beta-5
>         Environment: 2.0.4
>            Reporter: John Allen
>             Fix For: 2.0-beta-8
>
>
> inherited site.xml files are interpolated with the originating project's model values and not the consumer project's values
> i have a n-deep multiproject env; when a sub-project uses the root project's site.xml file, any ${project.*} expressions defined in the root site.xml are replaced with values from the root project and not the project that is being rendered, ie. title in index.html would be "root project" and not "sub-sub-sub-project". This applied to all ${project.*} expressions in the site.xml

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

        

[jira] Commented: (MSITE-135) inherited site.xml files are interpolated with the originating project's model values and not the consumer project's values

Posted by "Kenney Westerhof (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-135?page=comments#action_68881 ] 

Kenney Westerhof commented on MSITE-135:
----------------------------------------

This goes both for site.xml files resolved from the reactor as for files resolved from a repository.
The site.xml attachments in the repository are already interpolated. Since they're primarily meant
for inheritance I think they should not be interpolated before they're deployed.

> inherited site.xml files are interpolated with the originating project's model values and not the consumer project's values
> ---------------------------------------------------------------------------------------------------------------------------
>
>          Key: MSITE-135
>          URL: http://jira.codehaus.org/browse/MSITE-135
>      Project: Maven 2.x Site Plugin
>         Type: Bug

>     Versions: 2.0-beta-5
>  Environment: 2.0.4
>     Reporter: John Allen
>     Assignee: Kenney Westerhof

>
>
> inherited site.xml files are interpolated with the originating project's model values and not the consumer project's values
> i have a n-deep multiproject env; when a sub-project uses the root project's site.xml file, any ${project.*} expressions defined in the root site.xml are replaced with values from the root project and not the project that is being rendered, ie. title in index.html would be "root project" and not "sub-sub-sub-project". This applied to all ${project.*} expressions in the site.xml

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


[jira] Commented: (MSITE-135) inherited site.xml files are interpolated with the originating project's model values and not the consumer project's values

Posted by "John Allen (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_121579 ] 

John Allen commented on MSITE-135:
----------------------------------

In regards to the multiple parent items appearing in the final leaf site, as a quick hack I have removed the populateParentMenu and populateModulesMenu calls from attach-descriptor mojo that resulted in the deployed site.xml being modified before attachment and moved the populateParentMenu from within the recursive getDecorationModel to its caller so we now only ever get one parent item in each project's site. Wasnt the menu::inheritedRef stuff supposed to handle all this?

> inherited site.xml files are interpolated with the originating project's model values and not the consumer project's values
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MSITE-135
>                 URL: http://jira.codehaus.org/browse/MSITE-135
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>          Components: inheritance
>    Affects Versions: 2.0-beta-5
>         Environment: 2.0.4
>            Reporter: John Allen
>             Fix For: 2.0-beta-7
>
>
> inherited site.xml files are interpolated with the originating project's model values and not the consumer project's values
> i have a n-deep multiproject env; when a sub-project uses the root project's site.xml file, any ${project.*} expressions defined in the root site.xml are replaced with values from the root project and not the project that is being rendered, ie. title in index.html would be "root project" and not "sub-sub-sub-project". This applied to all ${project.*} expressions in the site.xml

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

        

[jira] Updated: (MSITE-135) inherited site.xml files are interpolated with the originating project's model values and not the consumer project's values

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSITE-135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Lundberg updated MSITE-135:
----------------------------------

    Component/s: inheritance

> inherited site.xml files are interpolated with the originating project's model values and not the consumer project's values
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MSITE-135
>                 URL: http://jira.codehaus.org/browse/MSITE-135
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>          Components: inheritance
>    Affects Versions: 2.0-beta-5
>         Environment: 2.0.4
>            Reporter: John Allen
>             Fix For: 2.0-beta-7
>
>
> inherited site.xml files are interpolated with the originating project's model values and not the consumer project's values
> i have a n-deep multiproject env; when a sub-project uses the root project's site.xml file, any ${project.*} expressions defined in the root site.xml are replaced with values from the root project and not the project that is being rendered, ie. title in index.html would be "root project" and not "sub-sub-sub-project". This applied to all ${project.*} expressions in the site.xml

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

        

[jira] Updated: (MSITE-135) inherited site.xml files are interpolated with the originating project's model values and not the consumer project's values

Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSITE-135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukas Theussl updated MSITE-135:
--------------------------------

    Component/s: inheritance

> inherited site.xml files are interpolated with the originating project's model values and not the consumer project's values
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MSITE-135
>                 URL: http://jira.codehaus.org/browse/MSITE-135
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: inheritance, property interpolation
>    Affects Versions: 2.0-beta-5
>         Environment: 2.0.4
>            Reporter: John Allen
>
> inherited site.xml files are interpolated with the originating project's model values and not the consumer project's values
> i have a n-deep multiproject env; when a sub-project uses the root project's site.xml file, any ${project.*} expressions defined in the root site.xml are replaced with values from the root project and not the project that is being rendered, ie. title in index.html would be "root project" and not "sub-sub-sub-project". This applied to all ${project.*} expressions in the site.xml

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

        

[jira] Commented: (MSITE-135) inherited site.xml files are interpolated with the originating project's model values and not the consumer project's values

Posted by "John Allen (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-135?page=comments#action_79821 ] 
            
John Allen commented on MSITE-135:
----------------------------------

Hi Kenney,

Where do we stand on this? As far as i can tell the whole site inheritance stuff is unusable due to all the bugs and strange behavours


> inherited site.xml files are interpolated with the originating project's model values and not the consumer project's values
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MSITE-135
>                 URL: http://jira.codehaus.org/browse/MSITE-135
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0-beta-5
>         Environment: 2.0.4
>            Reporter: John Allen
>
> inherited site.xml files are interpolated with the originating project's model values and not the consumer project's values
> i have a n-deep multiproject env; when a sub-project uses the root project's site.xml file, any ${project.*} expressions defined in the root site.xml are replaced with values from the root project and not the project that is being rendered, ie. title in index.html would be "root project" and not "sub-sub-sub-project". This applied to all ${project.*} expressions in the site.xml

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