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

Resolve just a pom.xml

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • 2.2.6
    • None
    • None

    Description

      What's the correct way to resolve a pom.xml ? My use case is to obtain a BOM.

      Maven.resolver().resolve("org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-bom:pom:3.0.0-beta-2").withoutTransitivity().asFile();
      
      MavenResolvedArtifact artifact = Maven.resolver().resolve("org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-bom:pom:3.0.0-beta-2").withoutTransitivity()
                  .asSingle(MavenResolvedArtifact.class);
      

      they both fail? Am I doing something wrong or is this behavior broken for pom files?

      Attachments

        Activity

          People

            pberan@redhat.com Petr Beran
            pantinor@redhat.com Paolo Antinori
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: