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

The local ArtifactRepository is broken when using enhanced local repo

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.9.0, 4.0.0-alpha-3
    • None
    • None
    • None

    Description

      This happens when using split repositories with maven resolver 1.9.x.
      This breaks the flatten-maven-plugin for example.

      The reason is that maven injects a org.apache.maven.artifact.repository.ArtifactRepository instance for the ${localRepository} which is the same than the one available from MavenExecutionRequest.getLocalRepository() .  

      Unfortunately those objects do not wrap the maven resolver local repository implementation and the layout is hardcoded.  The actual implementation is created by https://github.com/apache/maven/blob/maven-3.9.x/maven-core/src/main/java/org/apache/maven/bridge/MavenRepositorySystem.java#L638

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              gnodet Guillaume Nodet
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: