diff --git a/mvn-resolver-transport-http3/src/test/java/com/artipie/aether/transport/http3/ArtipieAndPluginFromCentralIT.java b/mvn-resolver-transport-http3/src/test/java/com/artipie/aether/transport/http3/ArtipieAndPluginFromCentralIT.java index fb4093d..fe780c3 100644 --- a/mvn-resolver-transport-http3/src/test/java/com/artipie/aether/transport/http3/ArtipieAndPluginFromCentralIT.java +++ b/mvn-resolver-transport-http3/src/test/java/com/artipie/aether/transport/http3/ArtipieAndPluginFromCentralIT.java @@ -25,9 +25,6 @@ */ public class ArtipieAndPluginFromCentralIT { - private static final Logger LOGGER = - LoggerFactory.getLogger(ArtipieAndPluginFromCentralIT.class); - private GenericContainer mavenClient; private GenericContainer artipie; @@ -79,19 +76,18 @@ void buildsWithMavenProfile() throws IOException, InterruptedException { this.putClasspathResourceToClient("ArtipieAndPluginFromCentralIT/com/example/test-maven-profile/maven-settings.xml", "/w/settings.xml"); this.putClasspathResourceToClient("ArtipieAndPluginFromCentralIT/com/example/test-maven-profile/pom.xml", "/w/pom.xml"); final Container.ExecResult exec = this.mavenClient.execInContainer( - "mvn", "install", "-DskipTests", "-s", "settings.xml", "-Daether.connector.https.securityMode=insecure" + "mvn", "install", "-X", "-DskipTests", "-s", "settings.xml", "-Daether.connector.https.securityMode=insecure" ); String res = String.join("\n", exec.getStdout(), exec.getStderr()); - LOGGER.info(res); MatcherAssert.assertThat("Maven install status is not successful", exec.getExitCode() == 0); MatcherAssert.assertThat( res, Matchers.stringContainsInOrder( "Downloaded from central: https://repo.maven.apache.org/maven2/com/artipie/maven/resolver/maven-resolver-transport-http3", - "BUILD SUCCESS", - "Request over HTTP/3.0 done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/args4j/args4j/2.33/args4j-2.33.jar", - "Request over HTTP/3.0 done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/org/springframework/spring-web/6.1.0/spring-web-6.1.0.jar", - "Request over HTTP/1.1 done, method=GET, resp status=200, url=https://repo.maven.apache.org/maven2/org/apache/maven/maven-archiver/3.6.0/maven-archiver-3.6.0.pom" + "HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/args4j/args4j/2.33/args4j-2.33.jar", + "HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/org/springframework/spring-web/6.1.0/spring-web-6.1.0.jar", + "HTTP/1.1 request done, method=GET, resp status=200, url=https://repo.maven.apache.org/maven2/org/apache/maven/maven-archiver/3.6.0/maven-archiver-3.6.0.pom", + "BUILD SUCCESS" ) ); } @@ -104,19 +100,18 @@ void buildsWithMavenProfile() throws IOException, InterruptedException { void buildsWithPomRepo() throws IOException, InterruptedException { this.putClasspathResourceToClient("ArtipieAndPluginFromCentralIT/com/example/test-pom-repo/pom.xml", "/w/pom.xml"); final Container.ExecResult exec = this.mavenClient.execInContainer( - "mvn", "install", "-Daether.connector.https.securityMode=insecure" + "mvn", "install", "-X", "-Daether.connector.https.securityMode=insecure" ); String res = String.join("\n", exec.getStdout(), exec.getStderr()); - LOGGER.info(res); MatcherAssert.assertThat("Maven install status is not successful", exec.getExitCode() == 0); MatcherAssert.assertThat( res, Matchers.stringContainsInOrder( "Downloaded from central: https://repo.maven.apache.org/maven2/com/artipie/maven/resolver/maven-resolver-transport-http3", - "BUILD SUCCESS", - "Request over HTTP/3.0 done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/args4j/args4j/2.33/args4j-2.33.jar", - "Request over HTTP/3.0 done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/org/springframework/spring-web/6.1.0/spring-web-6.1.0.jar", - "Request over HTTP/1.1 done, method=GET, resp status=200, url=https://repo.maven.apache.org/maven2/org/apache/maven/maven-archiver/3.6.0/maven-archiver-3.6.0.pom" + "HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/args4j/args4j/2.33/args4j-2.33.jar", + "HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/org/springframework/spring-web/6.1.0/spring-web-6.1.0.jar", + "HTTP/1.1 request done, method=GET, resp status=200, url=https://repo.maven.apache.org/maven2/org/apache/maven/maven-archiver/3.6.0/maven-archiver-3.6.0.pom", + "BUILD SUCCESS" ) ); } @@ -134,19 +129,18 @@ void buildsWithPomRepo() throws IOException, InterruptedException { void buildsWithPomPluginRepo() throws IOException, InterruptedException { this.putClasspathResourceToClient("ArtipieAndPluginFromCentralIT/com/example/test-pom-plugin-repo/pom.xml", "/w/pom.xml"); final Container.ExecResult exec = this.mavenClient.execInContainer( - "mvn", "install", "-Daether.connector.https.securityMode=insecure" + "mvn", "install", "-X", "-Daether.connector.https.securityMode=insecure" ); String res = String.join("\n", exec.getStdout(), exec.getStderr()); - LOGGER.info(res); MatcherAssert.assertThat("Maven install status is not successful", exec.getExitCode() == 0); MatcherAssert.assertThat( res, Matchers.stringContainsInOrder( "Downloaded from central: https://repo.maven.apache.org/maven2/com/artipie/maven/resolver/maven-resolver-transport-http3", - "BUILD SUCCESS", - "Request over HTTP/3.0 done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/args4j/args4j/2.33/args4j-2.33.jar", - "Request over HTTP/3.0 done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/org/springframework/spring-web/6.1.0/spring-web-6.1.0.jar", - "Request over HTTP/3.0 done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/org/apache/maven/maven-archiver/3.6.0/maven-archiver-3.6.0.pom" + "HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/args4j/args4j/2.33/args4j-2.33.jar", + "HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/org/springframework/spring-web/6.1.0/spring-web-6.1.0.jar", + "HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/org/apache/maven/maven-archiver/3.6.0/maven-archiver-3.6.0.pom", + "BUILD SUCCESS" ) ); }