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

MavenRepositorySystemUtils.newSession() misses assignment

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 3.6.1
    • 3.6.2
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: