You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Tom Bollwitt <tl...@mersoft.com> on 2009/06/01 18:12:50 UTC
Maven Site plugin - no parent link
I am testing out the site plugin on a multi module project and the
module project's site is not getting a link back to the parent site.
I am using maven version...
Apache Maven 2.1.0 (r755702; 2009-03-18 14:10:27-0500)
Java version: 1.5.0_16
OS name: "mac os x" version: "10.5.7" arch: "i386" Family: "unix"
Site plugin version...
maven-site-plugin 2.0-beta-7
The basic directory structure is as follows..
parent
|_module1
| |_pom.xml
|_module2
| |_pom.xml
|_...
|_pom.xml
The parent pom is structured like...
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd
">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>my.company</groupId>
<artifactId>super-pom</artifactId>
<version>1.0</version>
</parent>
<groupId>com.mycompany.testproject</groupId>
<artifactId>testparent</artifactId>
<name>test parent</name>
<packaging>pom</packaging>
<version>1.0.0-SNAPSHOT</version>
...
<distributionManagement>
<site>
<id>testServer1</id>
<url>file:///var/www/html/</url>
</site>
</distributionManagement>
...
<modules>
<module>module1</module>
<module>module2</module>
...
</modules>
...
</project>
The pom for module1 is like...
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd
">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.mycompany.testproject</groupId>
<artifactId>testparent </artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<groupId>com.mycompany.testproject</groupId>
<artifactId>module1</artifactId>
<name>test module1</name>
<packaging>jar</packaging>
<version>1.0.0-SNAPSHOT</version>
...
</project>
The site.xml for module1 is as follows...
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/DECORATION/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.0 http://maven.apache.org/xsd/decoration-1.0.0.xsd
">
<body>
<menu ref="parent" />
<menu name="My Test project">
<item name="My XDoc Test" href="/myTest.html" />
</menu>
<menu ref="reports" />
</body>
</project>
After reading the docs I thought <menu ref="parent" /> would create a
link in module1's menu back to the parent site. Am I missing something
or is this just a bug in the site plugin?
http://maven.apache.org/plugins/maven-site-plugin/examples/sitedescriptor.html
Including Generated Content
There are several preset menus that can be used in the site descriptor
to include generated content from your project. These are:
reports - a menu with links to all the generated reports for your
project
parent - a menu with a link to the parent project's site
modules - a menu containing the links to the sites of the submodules
of this project
Regards,
Tom Bollwitt
Mersoft
tlbollwitt@mersoft.com
Re: Maven Site plugin - no parent link
Posted by Tom Bollwitt <tl...@mersoft.com>.
I am testing out the site plugin on a multi module project and the
module project's site is not getting a link back to the parent site.
I am using maven version...
Apache Maven 2.1.0 (r755702; 2009-03-18 14:10:27-0500)
Java version: 1.5.0_16
OS name: "mac os x" version: "10.5.7" arch: "i386" Family: "unix"
Site plugin version...
maven-site-plugin 2.0-beta-7
The basic directory structure is as follows..
parent
|_module1
| |_pom.xml
|_module2
| |_pom.xml
|_...
|_pom.xml
The parent pom is structured like...
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd
">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>my.company</groupId>
<artifactId>super-pom</artifactId>
<version>1.0</version>
</parent>
<groupId>com.mycompany.testproject</groupId>
<artifactId>testparent</artifactId>
<name>test parent</name>
<packaging>pom</packaging>
<version>1.0.0-SNAPSHOT</version>
...
<distributionManagement>
<site>
<id>testServer1</id>
<url>file:///var/www/html/</url>
</site>
</distributionManagement>
...
<modules>
<module>module1</module>
<module>module2</module>
...
</modules>
...
</project>
The pom for module1 is like...
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd
">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.mycompany.testproject</groupId>
<artifactId>testparent </artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<groupId>com.mycompany.testproject</groupId>
<artifactId>module1</artifactId>
<name>test module1</name>
<packaging>jar</packaging>
<version>1.0.0-SNAPSHOT</version>
...
</project>
The site.xml for module1 is as follows...
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/DECORATION/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.0 http://maven.apache.org/xsd/decoration-1.0.0.xsd
">
<body>
<menu ref="parent" />
<menu name="My Test project">
<item name="My XDoc Test" href="/myTest.html" />
</menu>
<menu ref="reports" />
</body>
</project>
After reading the docs I thought <menu ref="parent" /> would create a
link in module1's menu back to the parent site. Am I missing something
or is this just a bug in the site plugin?
http://maven.apache.org/plugins/maven-site-plugin/examples/sitedescriptor.html
Including Generated Content
There are several preset menus that can be used in the site descriptor
to include generated content from your project. These are:
reports - a menu with links to all the generated reports for your
project
parent - a menu with a link to the parent project's site
modules - a menu containing the links to the sites of the submodules
of this project
Regards,
Tom Bollwitt
Mersoft
tlbollwitt@mersoft.com
Re: Maven Site plugin - no parent link
Posted by Tom Bollwitt <tl...@mersoft.com>.
No, I do not have a <url> specified in every POM. I will try that out
when I get a chance and respond back with the results.
Thanks for the info. :-)
Regards,
Tom Bollwitt
Mersoft
tlbollwitt@mersoft.com
On Jun 3, 2009, at 12:40 PM, Dennis Lundberg wrote:
> Do you have a <url> specified in the parent POM and/or the module POM?
> There has been reports of problems when some/all of these are missing.
>
> Tom Bollwitt wrote:
>> I upgraded to version 2.0 and I am still not able to get the parent
>> menu
>> link to generate.
>> The modules menu reference also does not generate in my child project
>> sites (never did with beta-7 version either).
>>
>> At this point I have to assume that there is a problem with my POMs
>> or
>> site.xml files since it appears that this is working for others.
>>
>> Regards,
>>
>> Tom Bollwitt
>> Mersoft
>> tlbollwitt@mersoft.com
>>
>>
>>
>>
>>
>>
>>
>> On Jun 2, 2009, at 1:45 PM, Dennis Lundberg wrote:
>>
>>> Please start by upgrading the Site Plugin to version 2.0.
>>>
>>> Tom Bollwitt wrote:
>>>> I am testing out the site plugin on a multi module project and the
>>>> module project's site is not getting a link back to the parent
>>>> site.
>>>>
>>>> I am using maven version...
>>>> Apache Maven 2.1.0 (r755702; 2009-03-18 14:10:27-0500)
>>>> Java version: 1.5.0_16
>>>> OS name: "mac os x" version: "10.5.7" arch: "i386" Family: "unix"
>>>>
>>>> Site plugin version...
>>>> maven-site-plugin 2.0-beta-7
>>>>
>>>> The basic directory structure is as follows..
>>>>
>>>> parent
>>>> |_module1
>>>> | |_pom.xml
>>>> |_module2
>>>> | |_pom.xml
>>>> |_...
>>>> |_pom.xml
>>>>
>>>>
>>>> The parent pom is structured like...
>>>>
>>>> <project xmlns="http://maven.apache.org/POM/4.0.0"
>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>>>> http://maven.apache.org/maven-v4_0_0.xsd">
>>>> <modelVersion>4.0.0</modelVersion>
>>>> <parent>
>>>> <groupId>my.company</groupId>
>>>> <artifactId>super-pom</artifactId>
>>>> <version>1.0</version>
>>>> </parent>
>>>> <groupId>com.mycompany.testproject</groupId>
>>>> <artifactId>testparent</artifactId>
>>>> <name>test parent</name>
>>>> <packaging>pom</packaging>
>>>> <version>1.0.0-SNAPSHOT</version>
>>>> ...
>>>> <distributionManagement>
>>>> <site>
>>>> <id>testServer1</id>
>>>> <url>file:///var/www/html/</url>
>>>> </site>
>>>> </distributionManagement>
>>>> ...
>>>> <modules>
>>>> <module>module1</module>
>>>> <module>module2</module>
>>>> ...
>>>> </modules>
>>>> ...
>>>> </project>
>>>>
>>>>
>>>> The pom for module1 is like...
>>>>
>>>> <project xmlns="http://maven.apache.org/POM/4.0.0"
>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>>>> http://maven.apache.org/maven-v4_0_0.xsd">
>>>> <modelVersion>4.0.0</modelVersion>
>>>> <parent>
>>>> <groupId>com.mycompany.testproject</groupId>
>>>> <artifactId>testparent </artifactId>
>>>> <version>1.0.0-SNAPSHOT</version>
>>>> </parent>
>>>> <groupId>com.mycompany.testproject</groupId>
>>>> <artifactId>module1</artifactId>
>>>> <name>test module1</name>
>>>> <packaging>jar</packaging>
>>>> <version>1.0.0-SNAPSHOT</version>
>>>> ...
>>>> </project>
>>>>
>>>> The site.xml for module1 is as follows...
>>>>
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <project xmlns="http://maven.apache.org/DECORATION/1.0.0"
>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>> xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.0
>>>> http://maven.apache.org/xsd/decoration-1.0.0.xsd">
>>>>
>>>> <body>
>>>> <menu ref="parent" />
>>>> <menu name="My Test project">
>>>> <item name="My XDoc Test" href="/myTest.html" />
>>>> </menu>
>>>> <menu ref="reports" />
>>>> </body>
>>>> </project>
>>>>
>>>> After reading the docs I thought <menu ref="parent" /> would
>>>> create a
>>>> link in module1's menu back to the parent site. Am I missing
>>>> something
>>>> or is this just a bug in the site plugin?
>>>>
>>>> http://maven.apache.org/plugins/maven-site-plugin/examples/sitedescriptor.html
>>>>
>>>>
>>>> Including Generated Content
>>>>
>>>> There are several preset menus that can be used in the site
>>>> descriptor
>>>> to include generated content from your project. These are:
>>>>
>>>> reports - a menu with links to all the generated reports for your
>>>> project
>>>> parent - a menu with a link to the parent project's site
>>>> modules - a menu containing the links to the sites of the
>>>> submodules of
>>>> this project
>>>>
>>>> Regards,
>>>>
>>>> Tom Bollwitt
>>>> Mersoft
>>>> tlbollwitt@mersoft.com
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Dennis Lundberg
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
>
> --
> Dennis Lundberg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Site plugin - no parent link
Posted by Dennis Lundberg <de...@apache.org>.
Do you have a <url> specified in the parent POM and/or the module POM?
There has been reports of problems when some/all of these are missing.
Tom Bollwitt wrote:
> I upgraded to version 2.0 and I am still not able to get the parent menu
> link to generate.
> The modules menu reference also does not generate in my child project
> sites (never did with beta-7 version either).
>
> At this point I have to assume that there is a problem with my POMs or
> site.xml files since it appears that this is working for others.
>
> Regards,
>
> Tom Bollwitt
> Mersoft
> tlbollwitt@mersoft.com
>
>
>
>
>
>
>
> On Jun 2, 2009, at 1:45 PM, Dennis Lundberg wrote:
>
>> Please start by upgrading the Site Plugin to version 2.0.
>>
>> Tom Bollwitt wrote:
>>> I am testing out the site plugin on a multi module project and the
>>> module project's site is not getting a link back to the parent site.
>>>
>>> I am using maven version...
>>> Apache Maven 2.1.0 (r755702; 2009-03-18 14:10:27-0500)
>>> Java version: 1.5.0_16
>>> OS name: "mac os x" version: "10.5.7" arch: "i386" Family: "unix"
>>>
>>> Site plugin version...
>>> maven-site-plugin 2.0-beta-7
>>>
>>> The basic directory structure is as follows..
>>>
>>> parent
>>> |_module1
>>> | |_pom.xml
>>> |_module2
>>> | |_pom.xml
>>> |_...
>>> |_pom.xml
>>>
>>>
>>> The parent pom is structured like...
>>>
>>> <project xmlns="http://maven.apache.org/POM/4.0.0"
>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>>> http://maven.apache.org/maven-v4_0_0.xsd">
>>> <modelVersion>4.0.0</modelVersion>
>>> <parent>
>>> <groupId>my.company</groupId>
>>> <artifactId>super-pom</artifactId>
>>> <version>1.0</version>
>>> </parent>
>>> <groupId>com.mycompany.testproject</groupId>
>>> <artifactId>testparent</artifactId>
>>> <name>test parent</name>
>>> <packaging>pom</packaging>
>>> <version>1.0.0-SNAPSHOT</version>
>>> ...
>>> <distributionManagement>
>>> <site>
>>> <id>testServer1</id>
>>> <url>file:///var/www/html/</url>
>>> </site>
>>> </distributionManagement>
>>> ...
>>> <modules>
>>> <module>module1</module>
>>> <module>module2</module>
>>> ...
>>> </modules>
>>> ...
>>> </project>
>>>
>>>
>>> The pom for module1 is like...
>>>
>>> <project xmlns="http://maven.apache.org/POM/4.0.0"
>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>>> http://maven.apache.org/maven-v4_0_0.xsd">
>>> <modelVersion>4.0.0</modelVersion>
>>> <parent>
>>> <groupId>com.mycompany.testproject</groupId>
>>> <artifactId>testparent </artifactId>
>>> <version>1.0.0-SNAPSHOT</version>
>>> </parent>
>>> <groupId>com.mycompany.testproject</groupId>
>>> <artifactId>module1</artifactId>
>>> <name>test module1</name>
>>> <packaging>jar</packaging>
>>> <version>1.0.0-SNAPSHOT</version>
>>> ...
>>> </project>
>>>
>>> The site.xml for module1 is as follows...
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <project xmlns="http://maven.apache.org/DECORATION/1.0.0"
>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>> xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.0
>>> http://maven.apache.org/xsd/decoration-1.0.0.xsd">
>>>
>>> <body>
>>> <menu ref="parent" />
>>> <menu name="My Test project">
>>> <item name="My XDoc Test" href="/myTest.html" />
>>> </menu>
>>> <menu ref="reports" />
>>> </body>
>>> </project>
>>>
>>> After reading the docs I thought <menu ref="parent" /> would create a
>>> link in module1's menu back to the parent site. Am I missing something
>>> or is this just a bug in the site plugin?
>>>
>>> http://maven.apache.org/plugins/maven-site-plugin/examples/sitedescriptor.html
>>>
>>>
>>> Including Generated Content
>>>
>>> There are several preset menus that can be used in the site descriptor
>>> to include generated content from your project. These are:
>>>
>>> reports - a menu with links to all the generated reports for your
>>> project
>>> parent - a menu with a link to the parent project's site
>>> modules - a menu containing the links to the sites of the submodules of
>>> this project
>>>
>>> Regards,
>>>
>>> Tom Bollwitt
>>> Mersoft
>>> tlbollwitt@mersoft.com
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>> --
>> Dennis Lundberg
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Dennis Lundberg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Site plugin - no parent link
Posted by Tom Bollwitt <tl...@mersoft.com>.
I upgraded to version 2.0 and I am still not able to get the parent
menu link to generate.
The modules menu reference also does not generate in my child project
sites (never did with beta-7 version either).
At this point I have to assume that there is a problem with my POMs or
site.xml files since it appears that this is working for others.
Regards,
Tom Bollwitt
Mersoft
tlbollwitt@mersoft.com
On Jun 2, 2009, at 1:45 PM, Dennis Lundberg wrote:
> Please start by upgrading the Site Plugin to version 2.0.
>
> Tom Bollwitt wrote:
>> I am testing out the site plugin on a multi module project and the
>> module project's site is not getting a link back to the parent site.
>>
>> I am using maven version...
>> Apache Maven 2.1.0 (r755702; 2009-03-18 14:10:27-0500)
>> Java version: 1.5.0_16
>> OS name: "mac os x" version: "10.5.7" arch: "i386" Family: "unix"
>>
>> Site plugin version...
>> maven-site-plugin 2.0-beta-7
>>
>> The basic directory structure is as follows..
>>
>> parent
>> |_module1
>> | |_pom.xml
>> |_module2
>> | |_pom.xml
>> |_...
>> |_pom.xml
>>
>>
>> The parent pom is structured like...
>>
>> <project xmlns="http://maven.apache.org/POM/4.0.0"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> http://maven.apache.org/maven-v4_0_0.xsd">
>> <modelVersion>4.0.0</modelVersion>
>> <parent>
>> <groupId>my.company</groupId>
>> <artifactId>super-pom</artifactId>
>> <version>1.0</version>
>> </parent>
>> <groupId>com.mycompany.testproject</groupId>
>> <artifactId>testparent</artifactId>
>> <name>test parent</name>
>> <packaging>pom</packaging>
>> <version>1.0.0-SNAPSHOT</version>
>> ...
>> <distributionManagement>
>> <site>
>> <id>testServer1</id>
>> <url>file:///var/www/html/</url>
>> </site>
>> </distributionManagement>
>> ...
>> <modules>
>> <module>module1</module>
>> <module>module2</module>
>> ...
>> </modules>
>> ...
>> </project>
>>
>>
>> The pom for module1 is like...
>>
>> <project xmlns="http://maven.apache.org/POM/4.0.0"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> http://maven.apache.org/maven-v4_0_0.xsd">
>> <modelVersion>4.0.0</modelVersion>
>> <parent>
>> <groupId>com.mycompany.testproject</groupId>
>> <artifactId>testparent </artifactId>
>> <version>1.0.0-SNAPSHOT</version>
>> </parent>
>> <groupId>com.mycompany.testproject</groupId>
>> <artifactId>module1</artifactId>
>> <name>test module1</name>
>> <packaging>jar</packaging>
>> <version>1.0.0-SNAPSHOT</version>
>> ...
>> </project>
>>
>> The site.xml for module1 is as follows...
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <project xmlns="http://maven.apache.org/DECORATION/1.0.0"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.0
>> http://maven.apache.org/xsd/decoration-1.0.0.xsd">
>>
>> <body>
>> <menu ref="parent" />
>> <menu name="My Test project">
>> <item name="My XDoc Test" href="/myTest.html" />
>> </menu>
>> <menu ref="reports" />
>> </body>
>> </project>
>>
>> After reading the docs I thought <menu ref="parent" /> would create a
>> link in module1's menu back to the parent site. Am I missing
>> something
>> or is this just a bug in the site plugin?
>>
>> http://maven.apache.org/plugins/maven-site-plugin/examples/sitedescriptor.html
>>
>> Including Generated Content
>>
>> There are several preset menus that can be used in the site
>> descriptor
>> to include generated content from your project. These are:
>>
>> reports - a menu with links to all the generated reports for your
>> project
>> parent - a menu with a link to the parent project's site
>> modules - a menu containing the links to the sites of the
>> submodules of
>> this project
>>
>> Regards,
>>
>> Tom Bollwitt
>> Mersoft
>> tlbollwitt@mersoft.com
>>
>>
>>
>>
>>
>>
>>
>>
>
>
> --
> Dennis Lundberg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Site plugin - no parent link
Posted by Dennis Lundberg <de...@apache.org>.
Please start by upgrading the Site Plugin to version 2.0.
Tom Bollwitt wrote:
> I am testing out the site plugin on a multi module project and the
> module project's site is not getting a link back to the parent site.
>
> I am using maven version...
> Apache Maven 2.1.0 (r755702; 2009-03-18 14:10:27-0500)
> Java version: 1.5.0_16
> OS name: "mac os x" version: "10.5.7" arch: "i386" Family: "unix"
>
> Site plugin version...
> maven-site-plugin 2.0-beta-7
>
> The basic directory structure is as follows..
>
> parent
> |_module1
> | |_pom.xml
> |_module2
> | |_pom.xml
> |_...
> |_pom.xml
>
>
> The parent pom is structured like...
>
> <project xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd">
> <modelVersion>4.0.0</modelVersion>
> <parent>
> <groupId>my.company</groupId>
> <artifactId>super-pom</artifactId>
> <version>1.0</version>
> </parent>
> <groupId>com.mycompany.testproject</groupId>
> <artifactId>testparent</artifactId>
> <name>test parent</name>
> <packaging>pom</packaging>
> <version>1.0.0-SNAPSHOT</version>
> ...
> <distributionManagement>
> <site>
> <id>testServer1</id>
> <url>file:///var/www/html/</url>
> </site>
> </distributionManagement>
> ...
> <modules>
> <module>module1</module>
> <module>module2</module>
> ...
> </modules>
> ...
> </project>
>
>
> The pom for module1 is like...
>
> <project xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd">
> <modelVersion>4.0.0</modelVersion>
> <parent>
> <groupId>com.mycompany.testproject</groupId>
> <artifactId>testparent </artifactId>
> <version>1.0.0-SNAPSHOT</version>
> </parent>
> <groupId>com.mycompany.testproject</groupId>
> <artifactId>module1</artifactId>
> <name>test module1</name>
> <packaging>jar</packaging>
> <version>1.0.0-SNAPSHOT</version>
> ...
> </project>
>
> The site.xml for module1 is as follows...
>
> <?xml version="1.0" encoding="UTF-8"?>
> <project xmlns="http://maven.apache.org/DECORATION/1.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.0
> http://maven.apache.org/xsd/decoration-1.0.0.xsd">
>
> <body>
> <menu ref="parent" />
> <menu name="My Test project">
> <item name="My XDoc Test" href="/myTest.html" />
> </menu>
> <menu ref="reports" />
> </body>
> </project>
>
> After reading the docs I thought <menu ref="parent" /> would create a
> link in module1's menu back to the parent site. Am I missing something
> or is this just a bug in the site plugin?
>
> http://maven.apache.org/plugins/maven-site-plugin/examples/sitedescriptor.html
>
> Including Generated Content
>
> There are several preset menus that can be used in the site descriptor
> to include generated content from your project. These are:
>
> reports - a menu with links to all the generated reports for your project
> parent - a menu with a link to the parent project's site
> modules - a menu containing the links to the sites of the submodules of
> this project
>
> Regards,
>
> Tom Bollwitt
> Mersoft
> tlbollwitt@mersoft.com
>
>
>
>
>
>
>
>
--
Dennis Lundberg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org