You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Roman Kitko (JIRA)" <ji...@codehaus.org> on 2007/11/30 16:42:57 UTC

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

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


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

        

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

Posted by "Jörg Hohwiller (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=181871#action_181871 ] 

Jörg Hohwiller commented on MSITE-275:
--------------------------------------

I have seen that 2.0 has been released. However links are still totally wrong if site is staged. Has this ever been tested?
Should I reopen this one or what issue has Hugo Palma created, that might still be open? I would tend to reopen 276 since this describes the same problem I still have with 2.0.

> 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

       

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

Posted by "Hugo Palma (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSITE-275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hugo Palma updated MSITE-275:
-----------------------------

    Attachment: MSITE-275-UseCase2.zip

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

        

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

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=168779#action_168779 ] 

Dennis Lundberg commented on MSITE-275:
---------------------------------------

Hugo, if this is not working for you, then you need to supply us with a test project that shows that. This issue has been closed as fixed in 2.0 - so it should work in the current 2.0-SNAPSHOT.

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

        

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

Posted by "Hugo Palma (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=168760#action_168760 ] 

Hugo Palma commented on MSITE-275:
----------------------------------

I'm still getting this problem with both 2.0-beta-8-SNAPSHOT and 2.0-SNAPSHOT.
If i revert back to 2.0-beta-5 it works fine.

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

        

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

Posted by "Jörg Hohwiller (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=143229#action_143229 ] 

Jörg Hohwiller commented on MSITE-275:
--------------------------------------

I reported MSITE-276 which has been marked as a duplicate of this issue.
The bug still exists for 2.0-beta-7.
Could you please test site:stage for your next release!

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

       

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

Posted by "Hugo Palma (JIRA)" <ji...@codehaus.org>.
    [ 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

        

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

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=138216#action_138216 ] 

bentmann edited comment on MSITE-275 at 6/11/08 11:17 AM:
-------------------------------------------------------------------

Attached is a test project that has working inter-module links in the navibar but weird links for the right banner in the sub modules. To be explicit, both
{noformat}
mvn site:stage
{noformat}
and
{noformat}
mvn site:stage-deploy -DstagingSiteURL=file:/G:/foo
{noformat}
seem to produce bad links for the banner.

As suggested by the reporter, the demo project has a property named {{site.url}} that can be used in combination with {{site-deploy}} to mimic a regular site deployment on the local disk.

      was (Author: bentmann):
    Attached is a test project that has working inter-module links in the navibar but weird links for the right banner in the sub modules.
  
> 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
>         Attachments: 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

        

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

Posted by "Hugo Palma (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=168910#action_168910 ] 

Hugo Palma commented on MSITE-275:
----------------------------------

My issue is not about the links from the parent project to the modules but about any links that should be generated from the href attribute on a site.xml file.
I'll create another issue as it has nothing to do with the banner link issue as well.

Thanks.

> 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

        

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

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=137743#action_137743 ] 

Dennis Lundberg commented on MSITE-275:
---------------------------------------

I used the sample-project attached to MSITE-195 to try this.

Using the latest 2.0-beta-7-SNAPSHOT this issue no longer seems to be a problem.

Can someone else please confirm this?

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

        

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

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSITE-275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Lundberg closed MSITE-275.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0

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

        

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

Posted by "Jörg Hohwiller (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=161782#action_161782 ] 

Jörg Hohwiller commented on MSITE-275:
--------------------------------------

I have retested this with 2.0-beta-8-SNAPSHOT and it works.

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

       

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

Posted by "John Allen (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_121587 ] 

John Allen commented on MSITE-275:
----------------------------------

We also experience this, the new relative link processing done in beta-6 doesnt work with stage

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

        

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

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSITE-275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann updated MSITE-275:
------------------------------------

    Attachment: MSITE-275.zip

Attached is a test project that has working inter-module links in the navibar but weird links for the right banner in the sub modules.

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

        

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

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=168908#action_168908 ] 

Dennis Lundberg commented on MSITE-275:
---------------------------------------

Hugo, I think you are hitting another issue. This issue is about the links from the parent project to the modules. So it takes a multi module project to reproduce it.

Perhaps you are referring to Benjamin's comment about the right banner?
If so, then please create a new issue for that or attach check out MSITE-273 and see if that is what you are experiencing.

> 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