You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Frederic Müller (JIRA)" <ji...@codehaus.org> on 2010/02/11 18:07:55 UTC

[jira] Created: (MSITE-462) Broken module links

Broken module links
-------------------

                 Key: MSITE-462
                 URL: http://jira.codehaus.org/browse/MSITE-462
             Project: Maven 2.x Site Plugin
          Issue Type: Bug
    Affects Versions: 2.1
            Reporter: Frederic Müller
         Attachments: project.tar.gz

The goal site:stage always leads to the same broken links no matter what I do. I created the most simple project layout under "/home/fmu01/Projekte/test-parent" and still it won't work.


-- 
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-462) Broken module links

Posted by "Frederic Müller (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=209866#action_209866 ] 

Frederic Müller commented on MSITE-462:
---------------------------------------

Maybe I didn't understand the thought behind stage but isn't it intended to create a local working site? I mean what url am I supposed to supply? Doesn't it work out of the box without configuration? And if it doesn't, why isn't there any error message?

The project page states:
""
To review/test the generated web site before an official deploy, you can stage the site in a specific directory. It will use the <distributionManagement>  element or the project hierarchy to link the project and its modules.

Just execute the site:stage goal from your project with the stagingDirectory parameter as shown below:

mvn site:stage -DstagingDirectory=C:\fullsite
""

Even supplying the stagingDirectory it leads to the same twisted links. So linking the modules by project hierachie doesn't work as promised or am I getting something wrong here?

> Broken module links
> -------------------
>
>                 Key: MSITE-462
>                 URL: http://jira.codehaus.org/browse/MSITE-462
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Frederic Müller
>         Attachments: project.tar.gz
>
>
> The goal site:stage always leads to the same broken links no matter what I do. I created the most simple project layout under "/home/fmu01/Projekte/test-parent" and still it won't work.

-- 
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-462) Broken module links

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

Dennis Lundberg commented on MSITE-462:
---------------------------------------

If you tell us which links are broken we might be able to help you.

> Broken module links
> -------------------
>
>                 Key: MSITE-462
>                 URL: http://jira.codehaus.org/browse/MSITE-462
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Frederic Müller
>         Attachments: project.tar.gz
>
>
> The goal site:stage always leads to the same broken links no matter what I do. I created the most simple project layout under "/home/fmu01/Projekte/test-parent" and still it won't work.

-- 
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-462) Broken module links

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

Frederic Müller closed MSITE-462.
---------------------------------

    Resolution: Not A Bug

I see my mistake. Initial project setup set a url for both poms. Removing that url lead to a working staging site. Thanks for the help.

> Broken module links
> -------------------
>
>                 Key: MSITE-462
>                 URL: http://jira.codehaus.org/browse/MSITE-462
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Frederic Müller
>         Attachments: project.tar.gz
>
>
> The goal site:stage always leads to the same broken links no matter what I do. I created the most simple project layout under "/home/fmu01/Projekte/test-parent" and still it won't work.

-- 
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-462) Broken module links

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

Dennis Lundberg commented on MSITE-462:
---------------------------------------

The URLs should be the ones where the site will eventually appear at, once the staging site has been verified.

The Site Plugin uses these URLs when calculating links in the generated site. If a link is determined to be within the same site - a relative link is created.

In your project you have told the Site Plugin that the parent and child will end up at the *same* URL. This will cause the Site Plugin to create strange links.

More info about relative links at:
http://maven.apache.org/plugins/maven-site-plugin/faq.html#Why_do_my_absolute_links_get_translated_into_relative_links

> Broken module links
> -------------------
>
>                 Key: MSITE-462
>                 URL: http://jira.codehaus.org/browse/MSITE-462
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Frederic Müller
>         Attachments: project.tar.gz
>
>
> The goal site:stage always leads to the same broken links no matter what I do. I created the most simple project layout under "/home/fmu01/Projekte/test-parent" and still it won't work.

-- 
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-462) Broken module links

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

Dennis Lundberg commented on MSITE-462:
---------------------------------------

Frederic, in your test project you have supplied the same URL in both the parent and child POM. I suggest that you remove the <url> elements from both POMs and try again.

> Broken module links
> -------------------
>
>                 Key: MSITE-462
>                 URL: http://jira.codehaus.org/browse/MSITE-462
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Frederic Müller
>         Attachments: project.tar.gz
>
>
> The goal site:stage always leads to the same broken links no matter what I do. I created the most simple project layout under "/home/fmu01/Projekte/test-parent" and still it won't work.

-- 
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-462) Broken module links

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

Dennis Lundberg commented on MSITE-462:
---------------------------------------

I had a look at the POMs and the both specify the same URL, which points to the Maven site. This will not work as relative links are calculated based on the value of the <url> element in the POM. You need to specify proper URLs in the parent and child POMs.

> Broken module links
> -------------------
>
>                 Key: MSITE-462
>                 URL: http://jira.codehaus.org/browse/MSITE-462
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Frederic Müller
>         Attachments: project.tar.gz
>
>
> The goal site:stage always leads to the same broken links no matter what I do. I created the most simple project layout under "/home/fmu01/Projekte/test-parent" and still it won't work.

-- 
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-462) Broken module links

Posted by "Frederic Müller (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=210011#action_210011 ] 

Frederic Müller commented on MSITE-462:
---------------------------------------

Well since I didn't supply any url at all I somehow expexted the plugin to use urls that represent the project's file structure. Maybe generating pseudo urls like http://localhost/test-parent and http://localhost/test-parent/test-module would do the trick. I'm most likely never even going to publish anywhere. I'm simply trying to generate the site to easily create human readable reports. 

Does my idea seem reasonable?

> Broken module links
> -------------------
>
>                 Key: MSITE-462
>                 URL: http://jira.codehaus.org/browse/MSITE-462
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Frederic Müller
>         Attachments: project.tar.gz
>
>
> The goal site:stage always leads to the same broken links no matter what I do. I created the most simple project layout under "/home/fmu01/Projekte/test-parent" and still it won't work.

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