use of com.artipie.maven.http.MavenProxySlice in project maven-adapter by artipie.
the class MavenProxyIT method setUp.
@BeforeEach
void setUp() throws Exception {
final JettyClientSlices slices = new JettyClientSlices();
slices.start();
this.storage = new InMemoryStorage();
this.server = new VertxSliceServer(MavenProxyIT.VERTX, new LoggingSlice(new MavenProxySlice(slices, URI.create("https://repo.maven.apache.org/maven2"), Authenticator.ANONYMOUS, new FromStorageCache(this.storage))));
this.port = this.server.start();
Testcontainers.exposeHostPorts(this.port);
this.cntn = new GenericContainer<>("maven:3.6.3-jdk-11").withCommand("tail", "-f", "/dev/null").withWorkingDirectory("/home/").withFileSystemBind(this.tmp.toString(), "/home");
this.cntn.start();
}
Aggregations