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

Details

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

    Description

      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).

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: