Maven 1
  1. Maven 1
  2. MAVEN-1726

CLONE -Add the possibility to use parent pom present in repo

    Details

    • Type: New Feature New Feature
    • Status: Open Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.0.2, 1.1-beta-1, 1.1-beta-2, 1.1-beta-3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      1

      Description

      For the extend tag, we can support http protocol, or another syntax like this <extend>$

      {repo}

      /aGroupId/poms/anArtifactId-version.pom</extend>. Personally, I prefer the second solution.

      With this features, users can share default pom parameter between all their projects, and it prepare the introduction of pom V4.

        Activity

        Hide
        Manfred Mayer added a comment -

        For the extend tag the extend of a pom should be possible like this <extend>$

        {maven.repo.local}/aGroupId/poms/anArtifactId-version.pom</extend>.
        I think this would be a nice feature extension for Maven 1.1.
        I created a patch for the current 1.1-beta3-SNAPSHOT, which parses the string in <extend>${maven.repo.local}

        /aGroupId/poms/anArtifactId-version.pom</extend>
        and tries to download "aGroupId/poms/anArtifactId-version.pom" with the common artifact-download-mechanism from the specified remote repositories to the local repository. It also supports the SNAPSHOT mechanism, and works fine.

        IMHO this change is not very invasive, because it only becomes active, if the specified parent pom cannot be found.

        Show
        Manfred Mayer added a comment - For the extend tag the extend of a pom should be possible like this <extend>$ {maven.repo.local}/aGroupId/poms/anArtifactId-version.pom</extend>. I think this would be a nice feature extension for Maven 1.1. I created a patch for the current 1.1-beta3-SNAPSHOT, which parses the string in <extend>${maven.repo.local} /aGroupId/poms/anArtifactId-version.pom</extend> and tries to download "aGroupId/poms/anArtifactId-version.pom" with the common artifact-download-mechanism from the specified remote repositories to the local repository. It also supports the SNAPSHOT mechanism, and works fine. IMHO this change is not very invasive, because it only becomes active, if the specified parent pom cannot be found.
        Hide
        Manfred Mayer added a comment -

        patch to the last comment (for downloading parent poms)

        Show
        Manfred Mayer added a comment - patch to the last comment (for downloading parent poms)
        Hide
        Arnaud Heritier added a comment -

        Will not be fixed in maven 1.0.X
        I'm not sure that it will not create side-effects. You can share the pom but what about properties (used in the parent pom for example ...) ???

        Show
        Arnaud Heritier added a comment - Will not be fixed in maven 1.0.X I'm not sure that it will not create side-effects. You can share the pom but what about properties (used in the parent pom for example ...) ???

          People

          • Assignee:
            Unassigned
            Reporter:
            Manfred Mayer
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: