1 Reply Latest reply on Mar 2, 2015 10:19 AM by kpiwko

    Arquillian gives "Could not find metadata in central (http://repo1.maven.org/maven2)" error

    davidj

      Hi,

      I've got an Arquillian test which works fine except for an error message.  The error message doesn't prevent the test from being successful.  I'm just curious why this error message is being displayed.  I'm also concerned that my test is doing an unnecessary network connection to Maven Central.

      My Arquillian test is very simple, I create a Web Archive with an EJB and a Jar file:

       

      @Deployment

      public static WebArchive createDeployment() {

       

          PomEquippedResolveStage pom = Maven.resolver().loadPomFromFile("" + "pom.xml");

          File[] vcrEntities = pom.resolve("com.incomm.acme:vendorcallrouting-entity").withTransitivity().asFile();

       

          return ShrinkWrap.create(WebArchive.class, "transaction-health-monitor-facade.war")

                  .addAsLibraries(vcrEntities)

                  .addClass("com.incomm.acme.ejb.vcr.TransactionHealthMonitorFacade")

                  .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");

      }

       

      The exact error message is:

       

      Feb 27, 2015 3:32:30 PM org.jboss.shrinkwrap.resolver.impl.maven.logging.LogTransferListener transferFailed

      WARNING: Failed downloading com/acme/itrac/vendorcallrouting-entity/1.0-SNAPSHOT/maven-metadata.xml from http://repo1.maven.org/maven2/. Reason:

      org.eclipse.aether.transfer.MetadataNotFoundException: Could not find metadata com.acme.itrac:vendorcallrouting-entity:1.0-SNAPSHOT/maven-metadata.xml in central (http://repo1.maven.org/maven2)

       

      Remember, the test runs find and is obviously finding the Jar file in my local repository, but apparently not before looking for it in Maven Central.

       

      I'm using Eclipse Luna.

      I don't have a settings.xml file (I've never had one).

       

      My pom file has the usual Arquillian Stuff in it.