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

Inconsistent order of repositories and pluginRepositories from profiles in settings (regression Maven 3)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.3, 3.0.4
    • 3.1.0-alpha-1
    • Settings
    • None
    • Mac OS 10.7 and Windows XP
      Java 1.6.0

    Description

      Repositories and pluginRepositories defined in profiles in settings.xml are not order consistently. This is a regression compared to Maven 2.

      Scenario:

      • Settings.xml defines two profiles, A and B (in this order).
      • Both profiles define a repository and a pluginRepository, A-repo/A-pluginrepo and B-repo/B-pluginrepo respectively.

      When checking the effective pom (help:effective-pom) the resulting list of repositories and pluginRepositories shows that they are not ordered consistently. The order is B-repo, A-repo and A-pluginrepo, B-pluginrepo respectively. With Maven 2.2.1 they are ordered consistently (and what I argue is correct): B-repo, A-repo and B-pluginrepo, A-pluginrepo.

      Attachments

        1. MNG-5280-IT.patch
          17 kB
          Anders Hammar
        2. fake-maven-plugin-1.0.jar
          3 kB
          Anders Hammar
        3. MNG-5280-maven-model-builder.patch
          2 kB
          Anders Hammar

        Activity

          People

            Unassigned Unassigned
            afloom Anders Hammar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: