You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2006/04/06 08:16:48 UTC

[jira] Closed: (MSITE-110) Use reactor to find parent URL where possible patch (patch also includes improved calculate relative path and better read modules from filesystem POM functionality)

     [ http://jira.codehaus.org/browse/MSITE-110?page=all ]
     
Brett Porter closed MSITE-110:
------------------------------

      Assign To: Brett Porter
     Resolution: Fixed
    Fix Version: 2.0-beta-5

applied, with a rather large modification: the voodoo to load the pom from the repository was replaced with loading from a file using the project builder (one liner), which should achieve all the proper inheritance and interpolation required.

> Use reactor to find parent URL where possible patch (patch also includes improved calculate relative path and better read modules from filesystem POM functionality)
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>          Key: MSITE-110
>          URL: http://jira.codehaus.org/browse/MSITE-110
>      Project: Maven 2.x Site Plugin
>         Type: Bug

>     Versions: 2.0
>  Environment: win32, JVM 1.5.0.04, maven-2.1-SNAPSHOT, site-2.0-SNAPSHOT
>     Reporter: John Allen
>     Assignee: Brett Porter
>      Fix For: 2.0-beta-5
>  Attachments: AbstractSiteRenderingMojo.patch
>
>
> project.getParent().getUrl() returns non-interpolated values - using the reactor environment to locate the parent gives an interpolated url.
> Additionally the patch includes a improved 'source the module details from the filesystem' functionality which is used in non-reactor environments, if a module is found not to define a URL (as it commonly doesnt as its inherited from parent) then the repository is queried instead.
> Patch also includes a more powerful 'calculate realtive path' function that can handle divergent pathes share a common ancestor (e.g ../../../foo/bar/index.html) which is used to calculate parent and module hrefs.

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