Maven Project Web Site
  1. Maven Project Web Site
  2. MNGSITE-124

Better documentation related to repository order

    Details

    • Type: Improvement Improvement
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Labels:
      None
    • Number of attachments :
      0

      Description

      I was not able to find clear documentation describing the order of repositories used during a build. For example, the documentation should answer the following questions.
      1. Which repositories are used first, the ones defined in settings.xml or in the pom.xml or super pom?
      2. The order of repositories defined in the settings.xml profiles seems to be the reverse of what one would expect when viewed in the effective-pom, why is this?
      3. If a repository ID in settings.xml matches one defined in pom.xml which one takes priority?

      Some additional information is available in the JBoss build forum.
      http://community.jboss.org/thread/160185

        Issue Links

          Activity

          Hide
          Ondrej Zizka added a comment - - edited

          It would be useful if one could modify the order by permuting the order of activated profiles.
          Which means, mvn -Pabc,def,ghi would give different repo order than mvn -Pghi,abc,def .

          Does Maven documentation say something about the effect of profile activation ordering?
          Since this is not yet documented, this could be a good time to enable such feature before the current state gets carved to the stone.

          Show
          Ondrej Zizka added a comment - - edited It would be useful if one could modify the order by permuting the order of activated profiles. Which means, mvn -Pabc,def,ghi would give different repo order than mvn -Pghi,abc,def . Does Maven documentation say something about the effect of profile activation ordering? Since this is not yet documented, this could be a good time to enable such feature before the current state gets carved to the stone.
          Hide
          Paul Gier added a comment -

          It would be useful if one could modify the order by permuting the order of activated profiles.
          Which means, mvn -Pabc,def,ghi would give different repo order than mvn -Pghi,abc,def .

          Ondrej, can you open a new issue for this, since this would be a new feature. Currently the order of activated profiles on the command line does not affect their activation order.

          Show
          Paul Gier added a comment - It would be useful if one could modify the order by permuting the order of activated profiles. Which means, mvn -Pabc,def,ghi would give different repo order than mvn -Pghi,abc,def . Ondrej, can you open a new issue for this, since this would be a new feature. Currently the order of activated profiles on the command line does not affect their activation order.
          Hide
          Ondrej Zizka added a comment -

          Paul, done, MNG-4946 .

          Show
          Ondrej Zizka added a comment - Paul, done, MNG-4946 .

            People

            • Assignee:
              Unassigned
              Reporter:
              Paul Gier
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: