Have done...it's at http://jira.codehaus.org/browse/MSITE-269

Just wanted to see if anyone had encountered the same or had a work around? What i've settled on is that i've removed the project url from the pom which fixes the links however it causes link problems in inherited menus in child modules....

The site plugin's been a bit of a nightmare for me with a multi-module project... fix\work around one thing and it causes another issue...

Cam

Wayne Fay wrote:
This reads like a bug report. This is not the correct place to file
bugs. Please go file this in JIRA.

Wayne

On 10/31/07, Cam <[EMAIL PROTECTED]> wrote:
Hi,

i've encountered a bit of an issue in the site generation plugin, in the
site.xml file i have 2 links specified:

<item name="Build" href="${test.domain.url}/build" />
<item name="About" href="${test.site.url}/index.html" />

And in the pom i have these properties:

<test.domain.url>http://208.75.85.243/</test.domain.url>
<test.site.url>http://208.75.85.243/test/${test.version}/site</test.site.url>

Just by property substitution the resulting urls should be:

http://208.75.85.243/build
http://208.75.85.243/test/0.1-SNAPSHOT/site/index.html

However they seem to be being modified by the site plugin and result in
these links:

http://208.75.85.243/test/0.1-SNAPSHOT/site/build
http://208.75.85.243/test/0.1-SNAPSHOT/site/test/0.1-SNAPSHOT/site/index.html

I think this has something to do with the link generation as if i remove
the project's url all links stay as what was specified in the properties.

I'm guessing this is a bug....i've included a simple pom.xml and
site.xml which can be used to see the behavior.

Thanks,
Cam

pom.xml
=======
<?xml version="1.0" encoding="UTF-8"?>
<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>

   <groupId>test</groupId>
   <artifactId>test</artifactId>
   <packaging>pom</packaging>
   <version>0.1-SNAPSHOT</version>

   <name>Test</name>
   <url>${test.domain.url}</url>

   <properties>
       <test.version>${project.version}</test.version>

       <test.domain.url>http://208.75.85.243/</test.domain.url>


<test.site.url>http://208.75.85.243/test/${test.version}/site</test.site.url>

<test.site.deploy.url>file:///srv/www/test/${test.version}/site</test.site.deploy.url>
   </properties>

   <distributionManagement>
       <site>
           <id>test.site</id>
           <name>site</name>
           <url>${test.site.deploy.url}</url>
       </site>
   </distributionManagement>

   <build>
       <plugins>
           <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-site-plugin</artifactId>
               <version>2.0-beta-6-SNAPSHOT</version>
           </plugin>
       </plugins>
   </build>
</project>


site.xml
======
<?xml version="1.0" encoding="UTF-8"?>
<project name="Test">

   <bannerLeft>
       <name>Test</name>
       <href>${test.site.url}</href>
   </bannerLeft>

   <version position="left" />

   <publishDate format="d MMM yyyy HH:mm:ss Z" />

   <body>
       <links>
           <item name="Build" href="${test.domain.url}/build" />
       </links>

       <menu name="Test" inherit="bottom">
           <item name="About" href="${test.site.url}/index.html" />
       </menu>
   </body>
</project>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to