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

Using asSingleFile only works if you return a single file

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • None
    • None
    • None

      In this code example

      return Maven.resolver().offline().loadPomFromFile("pom.xml")
      .resolve(artifact)
      .withTransitivity().asFile()[0];

      You should be able to replace asFile()[0] with asSingleFile, however it doesn't work since multiple files are actually returned.

              Unassigned Unassigned
              meetoblivion_jira John Ament (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: