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

NoResolvedResultException when trying to resolve a POM

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 2.2.0-beta-1
    • maven
    • None
    • Hide

      Execute the following code

      import org.jboss.shrinkwrap.resolver.api.maven.Maven;
      
      public class ResolvePomExample {
      
      	public static void main(String[] args) {
      
      		Maven.resolver().resolve("org.jboss:jboss-parent:pom:12")
      				.withoutTransitivity().asSingleFile();
      		
      		// Exception in thread "main" org.jboss.shrinkwrap.resolver.api.NoResolvedResultException: Unable to resolve dependencies, none of them were found.
      		// at org.jboss.shrinkwrap.resolver.impl.maven.MavenFormatStageImpl.getSingle(MavenFormatStageImpl.java:115)
      		// at org.jboss.shrinkwrap.resolver.impl.maven.MavenFormatStageImpl.asSingle(MavenFormatStageImpl.java:107)
      		// at org.jboss.shrinkwrap.resolver.impl.maven.MavenFormatStageImpl.asSingleFile(MavenFormatStageImpl.java:56)
      		// at ResolvePomExample.main(ResolvePomExample.java:8)
      		
      
      	}
      
      }
      
      Show
      Execute the following code import org.jboss.shrinkwrap.resolver.api.maven.Maven; public class ResolvePomExample { public static void main( String [] args) { Maven.resolver().resolve( "org.jboss:jboss-parent:pom:12" ) .withoutTransitivity().asSingleFile(); // Exception in thread "main" org.jboss.shrinkwrap.resolver.api.NoResolvedResultException: Unable to resolve dependencies, none of them were found. // at org.jboss.shrinkwrap.resolver.impl.maven.MavenFormatStageImpl.getSingle(MavenFormatStageImpl.java:115) // at org.jboss.shrinkwrap.resolver.impl.maven.MavenFormatStageImpl.asSingle(MavenFormatStageImpl.java:107) // at org.jboss.shrinkwrap.resolver.impl.maven.MavenFormatStageImpl.asSingleFile(MavenFormatStageImpl.java:56) // at ResolvePomExample.main(ResolvePomExample.java:8) } }

    Description

      Trying to resolve a "pom" results in an org.jboss.shrinkwrap.resolver.api.NoResolvedResultException: Unable to resolve dependencies, none of them were found.

      Looking at the local Maven repository, the POM was actually loaded from the remote repo, but it's not returned:

      Maven.resolver().resolve("org.jboss:jboss-parent:pom:12").withoutTransitivity().asSingleFile();
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fuinorg Michael Schnell (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: