Uploaded image for project: 'ShrinkWrap Resolvers'
  1. ShrinkWrap Resolvers
  2. SHRINKRES-173

Configuration methods don't affect pom.xml resolution

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 2.1.0
    • 2.0.2
    • maven
    • None

      Maven Resolver allows to control resolution via following methods:

      • withCentralRepo(...)
      • offline(...)
      • withRemoteRepo(...)
      • withClasspathResolution(...)

      However, with an exception of offline(...) call, all these method can be called in phase where pom.xml resolution was already done if user call loadPomFrom* method.

      This means for example that resolver will touch Maven Central to resolve dependencies in pom.xml file user is loading.

      In order to fix that, these methods should be callable only in configureResolver() phase, before pom.xml is touched.

              kpiwko Karel Piwko
              kpiwko Karel Piwko
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: