maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Sesterhenn (JIRA) <j...@apache.org>
Subject [jira] [Commented] (MSITE-135) inherited site.xml files are interpolated with the originating project's model values and not the consumer project's values
Date Wed, 02 Mar 2016 14:12:18 GMT

    [ https://issues.apache.org/jira/browse/MSITE-135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15175642#comment-15175642
] 

Jörg Sesterhenn commented on MSITE-135:
---------------------------------------

I believe this should have been marked as WONT FIX with the same arguments as MSITE-312 !
IMHO the described experience was to be expected. Now that you fixed this it is broken.

To achieve what the OP desired he could have published a site.xml with his project instead
of inheriting one.

> inherited site.xml files are interpolated with the originating project's model values
and not the consumer project's values
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MSITE-135
>                 URL: https://issues.apache.org/jira/browse/MSITE-135
>             Project: Maven Site Plugin
>          Issue Type: Bug
>          Components: inheritance, property interpolation
>    Affects Versions: 2.0-beta-5
>         Environment: 2.0.4
>            Reporter: skaze
>            Assignee: Hervé Boutemy
>             Fix For: 3.5
>
>
> 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.\*}}} expression 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 was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message