You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Hugo Palma (JIRA)" <ji...@codehaus.org> on 2009/03/10 19:07:13 UTC

[jira] Issue Comment Edited: (MSITE-275) site:stage for multimodule project creates wrong links

    [ http://jira.codehaus.org/browse/MSITE-275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=168803#action_168803 ] 

Hugo Palma edited comment on MSITE-275 at 3/10/09 1:06 PM:
-----------------------------------------------------------

As it turns out, it doesn't even take a multi-module project.
This simple test case that i've attached also reproduces the problem.

Just run site:stage.

      was (Author: hpalma):
    When i run mvn site:stage the links are generated all wrong
  
> site:stage  for multimodule project creates wrong links
> -------------------------------------------------------
>
>                 Key: MSITE-275
>                 URL: http://jira.codehaus.org/browse/MSITE-275
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>          Components: multi module
>    Affects Versions: 2.0-beta-6
>         Environment: Debian testing,maven 2.0.8
>            Reporter: Roman Kitko
>             Fix For: 2.0
>
>         Attachments: MSITE-275-UseCase2.zip, MSITE-275.zip
>
>
> For multimodule project when I exec 'mvn site:stage  -DstagingDirectory=MY_STAGING_DIR', created links in index.html are hardcoded with path to project dir :
> <a href="../../mnt/data/projects/vpda/current/workspace/ws/../../../../../../localhost/home/vpda/site/org.vpda/0.02.01-SNAPSHOT">vpda-common</a>
> When I exec mvn site", then index.html in target/site is correctly generated.
> There is workaround : use site-deploy and specify some property that is resolved in pom.xml as your deploy site url :
> mvn site-deploy  -Dvpda.deployUrlSite=file:///home/rki/tmp/XXX
> My site.xml : 
> <project name="vpda-site">
> 	<bannerLeft>
> 		<name>View providers driven applications</name>
> 		<src>images/vpda.jpg</src>
> 		<href>http://vpda.org/</href>
> 	</bannerLeft>
> 	<body>
> 		<links>
> 			<item name="Home" href="index.html" />
> 			<item name="Maven 2" href="http://maven.apache.org/"/>
> 		</links>
> 		
> 		<menu name="VPDA" inherit="none">
> 			<item name="Introduction" href="introduction.html"/>
> 			<item name="Usage" href="usage.html"/>
> 			<item name="Downloads" href="../${project.artifactId}-${project.version}.zip"/>
> 		</menu>
> 		
> 		<menu ref="modules"/>
> 		<menu ref="reports"/>
> 		<menu ref="parent"/>
> 	</body>
> </project>

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