title: How to make Maven resolver for Shrinkwrap work?
body: <p>I have this code:</p>
  
  <pre><code>@Deployment(name = "default")
  public static WebArchive getTestArchive() {
      File[] file = Maven.resolver().loadPomFromFile("../pom.xml")
              .importCompileAndRuntimeDependencies()
              .resolve("org.restlet.gae:org.restlet").withTransitivity().asFile();
      System.out.println("FILE&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;" + file.toString());
      return ShrinkWrap.create(WebArchive.class, "simple.war")
              .addClass(org.restlet.ext.servlet.ServerServlet.class)
              .setWebXML("web.xml")
              .addAsWebInfResource("appengine-web.xml")
              .addAsWebInfResource("logging.properties");
  }
  </code></pre>
  
  <p><strong>However when the test is run it throws this error:</strong></p>
  
  <pre><code>Caused by: org.jboss.shrinkwrap.resolver.api.ResolutionException: Unable to get version for dependency specified by org.restlet.gae:org.restlet:compile, it was not provided in neither &lt;dependencyManagement&gt; nor &lt;dependencies&gt; sections.
      at org.jboss.shrinkwrap.resolver.impl.maven.task.ResolveVersionFromMetadataTask.execute(ResolveVersionFromMetadataTask.java:91)
      at org.jboss.shrinkwrap.resolver.impl.maven.PomEquippedResolveStageBaseImpl.resolveVersion(PomEquippedResolveStageBaseImpl.java:85)
      at org.jboss.shrinkwrap.resolver.impl.maven.ResolveStageBaseImpl.resolveDependency(ResolveStageBaseImpl.java:189)
      at org.jboss.shrinkwrap.resolver.impl.maven.ResolveStageBaseImpl.resolveDependency(ResolveStageBaseImpl.java:184)
      at org.jboss.shrinkwrap.resolver.impl.maven.ResolveStageBaseImpl.resolve(ResolveStageBaseImpl.java:78)
      at org.jboss.shrinkwrap.resolver.impl.maven.ResolveStageBaseImpl.resolve(ResolveStageBaseImpl.java:43)
      ... 58 more
  </code></pre>
  
  <p>My goal is that all the dependencies of the POM to be resolved so (hopefully) the Restlet arquillian test would work.</p>