Hello,
I'm creating a test archive per MavenImporter following way:
@Deployment public static WebArchive createServiceDeployment() { WebArchive serviceArchive = ShrinkWrap .create(MavenImporter.class) .configureFromFile(new File("C:/Users/vbaghdas/.m2/settings.xml")) .loadPomFromFile("../dsuite-parent-demo-service/dsuite-parent-demo-service-impl/pom.xml") .importBuildOutput() .as(WebArchive.class); System.out.println(serviceArchive.toString(true)); return serviceArchive; }
In the log I see, that Arquillian is still trying to connect to the central repo:
WARNUNG: Failed downloading de/bonprix/base/dsuite-parent-jersey-server/0.0.1-SNAPSHOT/maven-metadata.xml from http://repo1.maven.org/maven2/. Reason: org.eclipse.aether.transfer.MetadataTransferException: Could not transfer metadata de.bonprix.base:dsuite-parent-jersey-server:0.0.1-SNAPSHOT/maven-metadata.xml from/to central (http://repo1.maven.org/maven2): Error transferring file: Connection timed out: connect from http://repo1.maven.org/maven2/de/bonprix/base/dsuite-parent-jersey-server/0.0.1-SNAPSHOT/maven-metadata.xml
And this, despite of explicitely pointing the settings.xml file with correct maven repo in the code below ...
One note: one of the binded arquillian libs is "arquillian-service-deployer-spring-3". I noticed, that count of warnings of mentioned type getted even more, after I added the library
Maybe someone can help.
Thanks,
Regards,
Vagharshak Baghdasaryan