Maven Site Plugin
  1. Maven Site Plugin
  2. MSITE-594

release:stage does not properly compute new or project.URLs for projects


    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Incomplete
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: site:stage(-deploy)
    • Labels:


      In the case where you have a multi-module project and each module has its own which is common with projects that like their sites to be version numbered (see example beolw) the release:stage plugin fails to get the project's site properly deployed. From a brief look it seems release:sxtage is only computing a new URL for the owning project and not all the child projects. What's more it looks like its changing the site deployment URL and not the project's corresponding project URL. This results in the site deployment for children going to their original pom.xml specific locations regardless of them being 'staged' (i.e. they're not staged, they've just gone live!). Nearly as bad is that all the relative links for connecting modules and parents and banners together are broken too, as they are based upoin the project.URL which hasnt been touched by the release:stage mojo. site:stage makes a better fist of this, basically you need to remap the entire URL domain (site distro and project url) to be under some other parent space for you to successfully stage sites (see site:stage)

      This kind of mistake has come up in the past, simply put a project can define all its own settings for everything so anything that makes assumptions based on inheritence or 'defaults' is just gonna break the system.

      Example of how sub-project's defining their own site deployemtn and project URL information:



        skaze created issue -
        Arnaud HERITIER made changes -
        Field Original Value New Value
        Component/s stage [ 13620 ]
        stephenconnolly made changes -
        Affects Version/s 2.0-beta-8 [ 13812 ]
        Component/s site:stage(-deploy) [ 14611 ]
        Project Maven 2.x Release Plugin [ 11144 ] Maven 2.x and 3.x Site Plugin [ 11146 ]
        Component/s stage [ 13620 ]
        Key MRELEASE-395 MSITE-594
        Lukas Theussl made changes -
        Assignee Lukas Theussl [ lukas ]
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Incomplete [ 4 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:16:22 UTC 2015 [ 1428239782088 ]
        Mark Thomas made changes -
        Workflow jira [ 12726740 ] Default workflow, editable Closed status [ 12757124 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 01:19:02 UTC 2015 [ 1428283142430 ]
        Mark Thomas made changes -
        Workflow jira [ 12964464 ] Default workflow, editable Closed status [ 13001508 ]
        Mark Thomas made changes -
        Assignee Lukas JOSEFIK [ lukas ] Lukas Theussl [ ltheussl ]


          • Assignee:
            Lukas Theussl
          • Votes:
            0 Vote for this issue
            0 Start watching this issue


            • Created: