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

Installing workspace reader triggers MNG-5503

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.1
    • 3.2.2
    • None
    • Patch

    Description

      It looks like Maven 3.2.1 introduced a regression. Installing
      extension which provides workspace reader triggers MNG-5503.

      Maven resolves artifacts from reactor, workspace, repositories (in
      that order). In standard Maven distribution there is no workspace,
      but Maven provides an extension point which allows extensions to
      install workspace reader by providing a component with role
      org.eclipse.aether.repository.WorkspaceReader and role hint ide.

      Installing workspace reader extension in Maven 3.2.1 triggers a
      regression - Maven fails to resolve artifacts produced by reactor
      build (MNG-5503). Even though artifact is present in reactor Maven
      queries workspace about it and if artifact is not found there it
      continues with repositories. Expected behaviour is resolving artifact
      from reactor.

      Steps to reproduce this:

      1) download and extract apache-maven-3.2.1-bin.tar.gz
      2) download dummy-extension.tar.gz and build it with mvn package
      3) download reproducer for MNG-5503 from: https://bugzilla.redhat.com/attachment.cgi?id=784786
      4) try to build reproducer project, it succeeds
      5) copy dummy-extension-1.0.0.jar to Maven lib/ext
      6) try to build reproducer project, it fails

      When repeating the same steps for Maven 3.1.1 failure is not reproducible.

      Attachments

        1. 0001-MNG-5591-Set-role-hint-for-ReactorReader-to-default.patch
          1.0 kB
          Mikolaj Izdebski
        2. dummy-extension.tar.gz
          0.8 kB
          Mikolaj Izdebski

        Issue Links

          Activity

            People

              igorfie igorfie
              mizdebsk Mikolaj Izdebski
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: