thanx, I already read this section, but

my question is more this:

Do I need to have a 

src\site\site.xml 
        \resources\images

in all of my (multi-module) projects to get a complete site? 
When my projects miss these folders, an incomplete site is generated, 
missing the "modules" section !

My "company parent" project (pom.xml with src\site\site.xml ) is released 
and deployed as:

  <body>
    <links>
      <item name="Apache" href="http://www.apache.org/"/>
      <item name="Maven" href="http://maven.apache.org/"/>
    </links>

<menu ref="parent" inherit="top"/> 
<menu ref="modules" inherit="top"/>
<menu ref="reports" inherit="top"/> 
 
    <menu name="Project Graph" inherit="top">
        <item name="DepGraph (all)" href="images/depgraph_all.png"/>
        <item name="DepGraph (small)" href="images/depgraph_small.png"/>
        <!--
        <item name="FullGraph (all)" href="images/fullgraph_all.png"/>
        <item name="FullGraph (small)" href="images/fullgraph_small.png"/>
        -->
    </menu> 
    <!--${modules}-->
    <!--${reports}-->
                <menu name="Additional stuff" inherit="top">
                        <item name="FAQs" href="/faq.html"/>
                </menu>
 
  </body>

When I add again the src\site\site.xml to a multi-module project , the 
"modules" section appears as expected.

Is there a way to come to the "modules" section, without spending a 
src\site\site.xml to each multi-module project?

thanx again, 

Torsten




Dennis Lundberg <[email protected]> 
01.09.2010 21:55
Bitte antworten an
"Maven Users List" <[email protected]>


An
Maven Users List <[email protected]>
Kopie

Thema
Re: mvn site - inherit src/site/site.xml in child modules instead of 
copy/paste?






See the section called "Inheritance" at
http://maven.apache.org/plugins/maven-site-plugin/examples/sitedescriptor.html



On 2010-09-01 14:36, [email protected] wrote:
> Hi, 
> 
> I have some (test)modules, containing only a few test sources and their 
> pom.xml:
> 
> src\
>         TS_xx_1\pom.xml
>                 \src\test\java
> 
>         TS_xx_2
>         ...
>         TS_xx_n
> 
> I now want an "overall-view" (site), especially about the test-results, 
> therefore I put
> 
> a pom,.xml to the directory root, containing:
> 
>         <reporting>
>                 <plugins>
>                         <plugin>
>  <groupId>org.apache.maven.plugins</groupId>
>  <artifactId>maven-surefire-report-plugin</artifactId>
>                                 <version>2.5</version>
>                                 <configuration>
>                                            <aggregate>true</aggregate>
>                                 </configuration>
>                         </plugin>
>                 </plugins> 
>         </reporting>
> 
> and the modules:
> 
>         <modules>
>                 <module>TS_xx_1</module>
>                 <module>TS_xx_n</module>
>         </modules>
> 
> I also put a src\site\site.xml to the directory root containing:
> 
> <body>
>         <menu ref="parent" /> 
>         <menu ref="modules" />
>         <menu ref="reports" /> 
>   </body>
> 
> The site is now generated, I found the aggregated surefire-report and 
the 
> additionally configured menus like "modules" and "reports"
> 
> Now the question:
> 
> Is there any possibility to "inherit" the src\site\site.xml 
configuration 
> to all my submodules, based on a (company) parent pom.xml ?
> My actually workaround is to "copy & paste" the src\site\site.xml (and 
> images) into all my submodules .- blowing up the directory trees.....
> 
> Thanx for any hint how to do this 
> 
> Torsten 
> 
> 


-- 
Dennis Lundberg

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


Reply via email to