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

MavenRepositorySystemUtils.newSession() misses assignment

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.6.1
    • Fix Version/s: 3.6.2
    • Component/s: None
    • Labels:
      None

      Description

      `new ChainedDependencyGraphTransformer` seems make no sense here.

      public static DefaultRepositorySystemSession newSession()
      {
      // ...
      DependencyGraphTransformer transformer =
      new ConflictResolver( new NearestVersionSelector(), new JavaScopeSelector(),
      new SimpleOptionalitySelector(), new JavaScopeDeriver() );
      
      // seems unnecessary
      new ChainedDependencyGraphTransformer( transformer, new JavaDependencyContextRefiner() );
      
      session.setDependencyGraphTransformer( transformer );
      // ...
      }
      

        Attachments

          Activity

            People

            • Assignee:
              michael-o Michael Osipov
              Reporter:
              ief2009 guofei
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: