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

Enhance the api to allow .offline() when using the .import*Dependencies() methods

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Minor Minor
    • 2.0.0-alpha-5
    • 2.0.0-alpha-4
    • api
    • None

      It would be great if I could do something like this:

      Maven.resolver().loadPomFromFile("pom.xml").importRuntimeDependencies().offline().as(File.class);
      

      But the (fluent) api doesn't permit the .offline() method for the class/interface that's returned from the .importRuntimeDependencies() methods.

      For the workaround that I tried to use (but which doesn't pay attention to the offline setting), see the attached test case (v2).

            mmatloka Michal Matloka (Inactive)
            marco.rietveld Marco Rietveld (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: