[ 
http://jira.codehaus.org/browse/MSITE-180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gabriel Falkenberg updated MSITE-180:
-------------------------------------

    Attachment: multi-module-project.zip

I've attached a sample, minimal, multi-module project which demonstrates the 
behavior described here even though the url-tag is set. The parent's site.xml 
overrides everything in the child module's site.xml except the links in the 
links-tag which are combined (like they should). 

You have to alter the project.url and project.distributionManagement.site.url 
to test it on your local machine. 

I've tested this with both maven-site-plugin version 2.0-beta-6 and 
2.0-beta-7-SNAPSHOT with the same result using Maven 2.0.8 on OS X. 

Furthermore the site:stage-target doesn't generate working links between 
modules. 

I hope I have just messed up the configuration because I would really like to 
get this working :)

> Missing url tag in (parent) pom make it ignore the site inheritence system
> --------------------------------------------------------------------------
>
>                 Key: MSITE-180
>                 URL: http://jira.codehaus.org/browse/MSITE-180
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>          Components: inheritance
>    Affects Versions: 2.0-beta-5
>            Reporter: Geoffrey De Smet
>         Attachments: multi-module-project.zip
>
>
> IF none of the poms (module or parent) don't have an url tag, like this:
> <project ...>
>   ...
>   <url>...</url>
>   ...
> </project>
> (It doesn't matter if they have url tags in scm, distribution etc)
> THEN site inheritence quitely isn't applied, for example in the parent's 
> site.xml
>         <menu name="Blogs" inherit="bottom">
>             <item name="maven" href="http://www.mavenblogs.org/"/>
>         </menu>
> isn't inherited in the childe module's site.
> proposed solutions:
>  - or fix it :)
>  - or document this wanted behaviour in the site plugin's documentation at
> http://maven.apache.org/plugins/maven-site-plugin/howto.html
> with something like
> "Site inheritence only works if you have a url tag in your parent pom."
> because this can cost people many hours - it did for me
> But once site inheritence works, it's very nice though :)

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