0 Replies Latest reply on Jul 4, 2018 4:28 AM by bonsaitree

    could not transfer artifact

    bonsaitree

      Hi,

      I'm new with arquillian and shrinkwrap.

       

      I try to use shrinkwrap to load artifacts from the pom for an aquillian test.

      But I always get:

      Jul 04, 2018 10:17:09 AM org.jboss.shrinkwrap.resolver.impl.maven.logging.LogTransferListener transferFailed

      WARNUNG: Failed downloading org/jboss/arquillian/arquillian-bom/1.1.8.Final/arquillian-bom-1.1.8.Final.pom from http://repo1.maven.org/maven2/. Reason:

      org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact org.jboss.arquillian:arquillian-bom:pom:1.1.8.Final from/to central (http://repo1.maven.org/maven2): Error transferring file: Connection refused: connect from http://repo1.maven.org/maven2/org/jboss/arquillian/arquillian-bom/1.1.8.Final/arquillian-bom-1.1.8.Final.pom

       

      Here the code:

      @Deployment

      public static WebArchive  createDeployment()

      {

             

          File[] libs = Maven.resolver()

              .loadPomFromFile("pom.xml")

              .importRuntimeAndTestDependencies()

              .resolve()

              .withTransitivity()

              .asFile();

          .....

      }

       

      I use Eclipse for development.

      When I use maven for the compile everything works. I have access to the internet.

       

      Thanks for help

      Oliver