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]