Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-4878

Inheritance of URLs behaves differently for aggregated and non-aggregated child projects

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 3.0
    • None
    • None
    • Apache Maven 3.0 (r1004208; 2010-10-04 13:50:56+0200)
      Java version: 1.6.0_20

    Description

      AFAIK, inheritance and aggregation are orthogonal in Maven. Whether a child project is a module of its parent, however, affects how URLs are inherited. (This bug affects /project/url, /project/distributionManagement/site/url, /project/scm/connection, /project/scm/developerConnection, and /project/scm/url.)

      This is exemplified by the attached projects, which serve as a testcase. The aggregated child project does respect the trailing slash of its parent's URLs and thus does not append its own artifactId to the URLs. The non-aggregated child, however, does not respect the trailing slash; consequently, its artifactId is added erroneously: A /project/url of http://www.example.org/projects/${project.artifactId}/ is turned into http://www.example.org/projects/non-aggregated-child/non-aggregated-child/ in the non-aggregated child project, whereas it becomes http://www.example.org/projects/aggregated-child/ in the aggregated child project. (Note that both projects are children of the same parent project.)

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            bentmann Benjamin Bentmann
            sewe Andreas Sewe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment