Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-1158

DependencyCollectorBuilder more configurable

    XMLWordPrintableJSON

Details

    Description

      DefaultDependencyCollectorBuilder is using a lot default which are not possible to override for different use cases.
      Such

      DependencyGraphTransformer transformer =
      new ConflictResolver( new NearestVersionSelector(), new VerboseJavaScopeSelector(),
      new SimpleOptionalitySelector(), new JavaScopeDeriver() );
      session.setDependencyGraphTransformer( transformer );
      
      DependencySelector depFilter =
      new AndDependencySelector( new DirectScopeDependencySelector( JavaScopes.TEST ),
      new DirectScopeDependencySelector( JavaScopes.PROVIDED ),
      new OptionalDependencySelector(),
      new ExclusionDependencySelector() );
      session.setDependencySelector( depFilter );
      
      session.setConfigProperty( ConflictResolver.CONFIG_PROP_VERBOSE, true );
      session.setConfigProperty( DependencyManagerUtils.CONFIG_PROP_VERBOSE, true );
      

      Attachments

        Issue Links

          Activity

            People

              olamy Olivier Lamy
              olamy Olivier Lamy
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: