Maven
  1. Maven
  2. MNG-5000

[regression] child distributionManagment.site.url not correct in a flat directory layout when child's artifactId doesn't match its module name

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.2
    • Fix Version/s: 3.0.3
    • Component/s: None
    • Labels:
      None
    • Environment:
      windows

      Description

      There is a multimodule flat project structure:
      root
      module1
      module2

      module1 has an artifactID of 'module1' (same as directory name)
      modulu2 has an artifactID of 'module-2' (different to directory name)

      After a 'mvn site-deploy' the generated report has the folder structure:
      /root
      /root/module-2
      /module1

      So based on the artifactID the submodules are created as a child of the root - or not.
      This is at least inconsistent and should be changed to be handled always the same - independent of the artifactID.

      This is also important for other plugins (i.e. the dashboard plugin).
      They seem to have some hardcoded directory structure (preferring submodules as childs of the root report).
      Due to this bug (see http://jira.codehaus.org/browse/MOJO-1630) the links between reports there still don't work as long as artifactID=module's directory.

      Attached you will find a testcase (based on maven3, but can also be used with maven2 when the version of the site-plugin is changed).

        Issue Links

          Activity

          Stefan Hansel created issue -
          Stefan Hansel made changes -
          Field Original Value New Value
          Attachment artifact-id-testcase.zip [ 53450 ]
          Lukas Theussl made changes -
          Summary site:deploy -> folder structure is different when artifactId=module's directory child distributionManagment.site.url not correct in a flat directory layout
          Lukas Theussl made changes -
          Project Maven 2.x and 3.x Site Plugin [ 11146 ] Maven 2 & 3 [ 10500 ]
          Key MSITE-548 MNG-5000
          Affects Version/s 3.0-beta-3 [ 16729 ]
          Affects Version/s 3.0.2 [ 16952 ]
          Complexity Intermediate
          Benjamin Bentmann made changes -
          Assignee Benjamin Bentmann [ bentmann ]
          Resolution Not A Bug [ 6 ]
          Status Open [ 1 ] Closed [ 6 ]
          Stefan Hansel made changes -
          Resolution Not A Bug [ 6 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Benjamin Bentmann made changes -
          Link This issue is related to MNG-3134 [ MNG-3134 ]
          Benjamin Bentmann made changes -
          Summary child distributionManagment.site.url not correct in a flat directory layout [regression] child distributionManagment.site.url not correct in a flat directory layout when child's artifactId doesn't match its module name
          Benjamin Bentmann made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Fix Version/s 3.0.3 [ 17061 ]
          Lukas Theussl made changes -
          Link This issue is related to MSITE-579 [ MSITE-579 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 08:49:45 UTC 2015 [ 1428223785911 ]
          Mark Thomas made changes -
          Link This issue is related to MSITE-579 [ MSITE-579 ]
          Mark Thomas made changes -
          Workflow jira [ 12715252 ] Default workflow, editable Closed status [ 12755732 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 21:45:26 UTC 2015 [ 1428270326204 ]
          Mark Thomas made changes -
          Link This issue is related to MSITE-579 [ MSITE-579 ]
          Mark Thomas made changes -
          Workflow jira [ 12953060 ] Default workflow, editable Closed status [ 12990388 ]

            People

            • Assignee:
              Benjamin Bentmann
              Reporter:
              Stefan Hansel
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development