This is an automated email from the ASF dual-hosted git repository. aldettinger pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/main by this push: new 1d40ec6f2a master: add test with openshift #4077 (#4078) 1d40ec6f2a is described below commit 1d40ec6f2a23dfa88343413277bd905c75724200 Author: Alexandre Gallice <aldettin...@gmail.com> AuthorDate: Wed Sep 7 22:11:26 2022 +0200 master: add test with openshift #4077 (#4078) * master: add test with openshift #4077 * fixup --- integration-tests/master-openshift/pom.xml | 271 +++++++++++++++++++++ .../component/master/it/MasterResource.java | 36 +++ .../quarkus/component/master/it/MasterRoutes.java | 46 ++++ .../src/main/resources/application.properties | 18 ++ .../component/master/it/MasterOpenShiftIT.java | 24 ++ .../component/master/it/MasterOpenShiftTest.java | 129 ++++++++++ .../master/it/MasterOpenShiftTestResource.java | 55 +++++ integration-tests/pom.xml | 1 + tooling/scripts/test-categories.yaml | 1 + tooling/test-list/pom.xml | 1 + 10 files changed, 582 insertions(+) diff --git a/integration-tests/master-openshift/pom.xml b/integration-tests/master-openshift/pom.xml new file mode 100644 index 0000000000..ba700166be --- /dev/null +++ b/integration-tests/master-openshift/pom.xml @@ -0,0 +1,271 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +--> +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>org.apache.camel.quarkus</groupId> + <artifactId>camel-quarkus-build-parent-it</artifactId> + <version>2.13.0-SNAPSHOT</version> + <relativePath>../../poms/build-parent-it/pom.xml</relativePath> + </parent> + + <artifactId>camel-quarkus-integration-test-master-openshift</artifactId> + <name>Camel Quarkus :: Integration Tests :: Master With OpenShift</name> + <description>Integration tests for Camel Quarkus Master extension with OpenShift</description> + + <properties> + <quarkus.runner>${project.build.directory}/quarkus-app/quarkus-run.jar</quarkus.runner> + </properties> + + <dependencies> + <dependency> + <groupId>org.apache.camel.quarkus</groupId> + <artifactId>camel-quarkus-file</artifactId> + </dependency> + <dependency> + <groupId>org.apache.camel.quarkus</groupId> + <artifactId>camel-quarkus-kubernetes</artifactId> + </dependency> + <dependency> + <groupId>org.apache.camel.quarkus</groupId> + <artifactId>camel-quarkus-log</artifactId> + </dependency> + <dependency> + <groupId>org.apache.camel.quarkus</groupId> + <artifactId>camel-quarkus-master</artifactId> + </dependency> + <dependency> + <groupId>org.apache.camel.quarkus</groupId> + <artifactId>camel-quarkus-microprofile-health</artifactId> + </dependency> + <dependency> + <groupId>org.apache.camel.quarkus</groupId> + <artifactId>camel-quarkus-timer</artifactId> + </dependency> + <dependency> + <groupId>io.quarkus</groupId> + <artifactId>quarkus-resteasy</artifactId> + </dependency> + <dependency> + <groupId>io.quarkus</groupId> + <artifactId>quarkus-openshift-client</artifactId> + </dependency> + + <!-- test dependencies --> + <dependency> + <groupId>io.quarkus</groupId> + <artifactId>quarkus-junit5</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>io.rest-assured</groupId> + <artifactId>rest-assured</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.camel.quarkus</groupId> + <artifactId>camel-quarkus-integration-tests-process-executor-support</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>io.quarkus</groupId> + <artifactId>quarkus-test-openshift-client</artifactId> + <scope>test</scope> + <exclusions> + <exclusion> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>io.quarkus</groupId> + <artifactId>quarkus-junit4-mock</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.awaitility</groupId> + <artifactId>awaitility</artifactId> + <scope>test</scope> + </dependency> + </dependencies> + + <profiles> + + <profile> + <id>full</id> + <activation> + <property> + <name>!quickly</name> + </property> + </activation> + <build> + <plugins> + <plugin> + <!-- Move surefire:test to integration-test phase to be able to run + java -jar target/*runner.jar from a test --> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <executions> + <execution> + <id>default-test</id> + <goals> + <goal>test</goal> + </goals> + <phase>integration-test</phase> + <configuration> + <systemProperties> + <quarkus.runner>${quarkus.runner}</quarkus.runner> + </systemProperties> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + + <profile> + <id>native</id> + <activation> + <property> + <name>native</name> + </property> + </activation> + <properties> + <quarkus.package.type>native</quarkus.package.type> + <quarkus.runner>${project.build.directory}/${project.artifactId}-${project.version}-runner</quarkus.runner> + </properties> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-failsafe-plugin</artifactId> + <executions> + <execution> + <goals> + <goal>integration-test</goal> + <goal>verify</goal> + </goals> + </execution> + </executions> + <configuration> + <systemProperties> + <quarkus.runner>${quarkus.runner}</quarkus.runner> + </systemProperties> + </configuration> + </plugin> + </plugins> + </build> + </profile> + <profile> + <id>virtualDependencies</id> + <activation> + <property> + <name>!noVirtualDependencies</name> + </property> + </activation> + <dependencies> + <!-- The following dependencies guarantee that this module is built after them. You can update them by running `mvn process-resources -Pformat -N` from the source tree root directory --> + <dependency> + <groupId>org.apache.camel.quarkus</groupId> + <artifactId>camel-quarkus-file-deployment</artifactId> + <version>${project.version}</version> + <type>pom</type> + <scope>test</scope> + <exclusions> + <exclusion> + <groupId>*</groupId> + <artifactId>*</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>org.apache.camel.quarkus</groupId> + <artifactId>camel-quarkus-kubernetes-deployment</artifactId> + <version>${project.version}</version> + <type>pom</type> + <scope>test</scope> + <exclusions> + <exclusion> + <groupId>*</groupId> + <artifactId>*</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>org.apache.camel.quarkus</groupId> + <artifactId>camel-quarkus-log-deployment</artifactId> + <version>${project.version}</version> + <type>pom</type> + <scope>test</scope> + <exclusions> + <exclusion> + <groupId>*</groupId> + <artifactId>*</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>org.apache.camel.quarkus</groupId> + <artifactId>camel-quarkus-master-deployment</artifactId> + <version>${project.version}</version> + <type>pom</type> + <scope>test</scope> + <exclusions> + <exclusion> + <groupId>*</groupId> + <artifactId>*</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>org.apache.camel.quarkus</groupId> + <artifactId>camel-quarkus-microprofile-health-deployment</artifactId> + <version>${project.version}</version> + <type>pom</type> + <scope>test</scope> + <exclusions> + <exclusion> + <groupId>*</groupId> + <artifactId>*</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>org.apache.camel.quarkus</groupId> + <artifactId>camel-quarkus-timer-deployment</artifactId> + <version>${project.version}</version> + <type>pom</type> + <scope>test</scope> + <exclusions> + <exclusion> + <groupId>*</groupId> + <artifactId>*</artifactId> + </exclusion> + </exclusions> + </dependency> + </dependencies> + </profile> + </profiles> + +</project> diff --git a/integration-tests/master-openshift/src/main/java/org/apache/camel/quarkus/component/master/it/MasterResource.java b/integration-tests/master-openshift/src/main/java/org/apache/camel/quarkus/component/master/it/MasterResource.java new file mode 100644 index 0000000000..c9eb6c9a84 --- /dev/null +++ b/integration-tests/master-openshift/src/main/java/org/apache/camel/quarkus/component/master/it/MasterResource.java @@ -0,0 +1,36 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.camel.quarkus.component.master.it; + +import javax.inject.Inject; +import javax.ws.rs.GET; +import javax.ws.rs.Path; + +import org.apache.camel.CamelContext; + +@Path("/master") +public class MasterResource { + + @Inject + CamelContext camelContext; + + @Path("/camel/stop/leader") + @GET + public void stopLeaderRoute() throws Exception { + camelContext.getRouteController().stopRoute("leader"); + } +} diff --git a/integration-tests/master-openshift/src/main/java/org/apache/camel/quarkus/component/master/it/MasterRoutes.java b/integration-tests/master-openshift/src/main/java/org/apache/camel/quarkus/component/master/it/MasterRoutes.java new file mode 100644 index 0000000000..f2e669da23 --- /dev/null +++ b/integration-tests/master-openshift/src/main/java/org/apache/camel/quarkus/component/master/it/MasterRoutes.java @@ -0,0 +1,46 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.camel.quarkus.component.master.it; + +import javax.enterprise.context.ApplicationScoped; + +import org.apache.camel.Exchange; +import org.apache.camel.builder.RouteBuilder; +import org.apache.camel.component.kubernetes.cluster.KubernetesClusterService; +import org.eclipse.microprofile.config.inject.ConfigProperty; + +@ApplicationScoped +public class MasterRoutes extends RouteBuilder { + + @ConfigProperty(name = "application.id") + String applicationId; + + @Override + public void configure() throws Exception { + KubernetesClusterService clusterService = new KubernetesClusterService(); + clusterService.setPodName(applicationId); + getContext().addService(clusterService); + + // Output the id of the application into a file + from("master:ns:timer:test?period=100") + .id("leader") + .setBody(constant("leader")) + .setHeader(Exchange.FILE_NAME, constant(String.format("%s.txt", applicationId))) + .log(String.format("Application %s is writing into file", applicationId)) + .to("file:target/cluster/"); + } +} diff --git a/integration-tests/master-openshift/src/main/resources/application.properties b/integration-tests/master-openshift/src/main/resources/application.properties new file mode 100644 index 0000000000..0054a293a2 --- /dev/null +++ b/integration-tests/master-openshift/src/main/resources/application.properties @@ -0,0 +1,18 @@ +## --------------------------------------------------------------------------- +## Licensed to the Apache Software Foundation (ASF) under one or more +## contributor license agreements. See the NOTICE file distributed with +## this work for additional information regarding copyright ownership. +## The ASF licenses this file to You under the Apache License, Version 2.0 +## (the "License"); you may not use this file except in compliance with +## the License. You may obtain a copy of the License at +## +## http://www.apache.org/licenses/LICENSE-2.0 +## +## Unless required by applicable law or agreed to in writing, software +## distributed under the License is distributed on an "AS IS" BASIS, +## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +## See the License for the specific language governing permissions and +## limitations under the License. +## --------------------------------------------------------------------------- + +application.id = leader diff --git a/integration-tests/master-openshift/src/test/java/org/apache/camel/quarkus/component/master/it/MasterOpenShiftIT.java b/integration-tests/master-openshift/src/test/java/org/apache/camel/quarkus/component/master/it/MasterOpenShiftIT.java new file mode 100644 index 0000000000..901a5fa025 --- /dev/null +++ b/integration-tests/master-openshift/src/test/java/org/apache/camel/quarkus/component/master/it/MasterOpenShiftIT.java @@ -0,0 +1,24 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.camel.quarkus.component.master.it; + +import io.quarkus.test.junit.QuarkusIntegrationTest; + +@QuarkusIntegrationTest +class MasterOpenShiftIT extends MasterOpenShiftTest { + +} diff --git a/integration-tests/master-openshift/src/test/java/org/apache/camel/quarkus/component/master/it/MasterOpenShiftTest.java b/integration-tests/master-openshift/src/test/java/org/apache/camel/quarkus/component/master/it/MasterOpenShiftTest.java new file mode 100644 index 0000000000..40d9f89277 --- /dev/null +++ b/integration-tests/master-openshift/src/test/java/org/apache/camel/quarkus/component/master/it/MasterOpenShiftTest.java @@ -0,0 +1,129 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.camel.quarkus.component.master.it; + +import java.io.IOException; +import java.nio.charset.StandardCharsets; +import java.nio.file.Path; +import java.nio.file.Paths; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.TimeUnit; + +import io.fabric8.openshift.client.server.mock.OpenShiftServer; +import io.quarkus.test.common.QuarkusTestResource; +import io.quarkus.test.junit.QuarkusTest; +import io.quarkus.test.kubernetes.client.OpenShiftTestServer; +import io.restassured.RestAssured; +import org.apache.camel.quarkus.test.support.process.QuarkusProcessExecutor; +import org.apache.commons.io.FileUtils; +import org.awaitility.Awaitility; +import org.eclipse.microprofile.config.Config; +import org.eclipse.microprofile.config.ConfigProvider; +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.condition.DisabledOnOs; +import org.junit.jupiter.api.condition.OS; +import org.zeroturnaround.exec.StartedProcess; + +import static org.hamcrest.MatcherAssert.assertThat; +import static org.hamcrest.Matchers.emptyString; + +@QuarkusTestResource(MasterOpenShiftTestResource.class) +@QuarkusTest +class MasterOpenShiftTest { + + @OpenShiftTestServer + private OpenShiftServer mockOpenShiftServer; + + @BeforeAll + public static void deleteClusterFiles() throws IOException { + FileUtils.deleteDirectory(Paths.get("target/cluster/").toFile()); + } + + @Test + @DisabledOnOs(value = OS.WINDOWS, disabledReason = "kubernetes.master contains ':' that would clash as JVM arg on windows") + public void testFailover() throws IOException { + Config config = ConfigProvider.getConfig(); + List<String> jvmArgs = new ArrayList<>(); + jvmArgs.add("-Dapplication.id=follower"); + + // Copy the configurations set by OpenShiftServerTestResource.start() + jvmArgs.add("-Dkubernetes.master=" + config.getValue("kubernetes.master", String.class)); + jvmArgs.add("-Dkubernetes.auth.tryKubeConfig=" + config.getValue("kubernetes.auth.tryKubeConfig", String.class)); + jvmArgs.add("-Dquarkus.tls.trust-all=" + config.getValue("quarkus.tls.trust-all", String.class)); + jvmArgs.add("-Dkubernetes.namespace=" + config.getValue("kubernetes.namespace", String.class)); + jvmArgs.add("-Dkubernetes.trust.certificates=" + config.getValue("kubernetes.trust.certificates", String.class)); + jvmArgs.add( + "-Dkubernetes.auth.tryServiceAccount=" + config.getValue("kubernetes.auth.tryServiceAccount", String.class)); + jvmArgs.add("-Dhttp2.disable=" + config.getValue("http2.disable", String.class)); + + // Start secondary application process + QuarkusProcessExecutor quarkusProcessExecutor = new QuarkusProcessExecutor(jvmArgs.toArray(String[]::new)); + StartedProcess process = quarkusProcessExecutor.start(); + + // Wait until the process is fully initialized + awaitStartup(quarkusProcessExecutor); + + try { + // Verify that this process is the cluster leader + Awaitility.await().atMost(10, TimeUnit.SECONDS).with().until(() -> { + return readLeaderFile("leader").equals("leader"); + }); + + // Verify the follower hasn't took leader role + assertThat(readLeaderFile("follower"), emptyString()); + + // Stop camel and delete the lease mock to trigger fail-over + RestAssured.given().get("/master/camel/stop/leader").then().statusCode(204); + mockOpenShiftServer.getKubernetesClient().leases().delete(); + + // Verify that the secondary application has been elected as the + // cluster leader + Awaitility.await().atMost(10, TimeUnit.SECONDS).until(() -> { + return readLeaderFile("follower").equals("leader"); + }); + } finally { + if (process != null && process.getProcess().isAlive()) { + process.getProcess().destroy(); + } + } + } + + private void awaitStartup(QuarkusProcessExecutor quarkusProcessExecutor) { + Awaitility.await().atMost(10, TimeUnit.SECONDS).pollDelay(1, TimeUnit.SECONDS).until(() -> { + return isApplicationHealthy(quarkusProcessExecutor.getHttpPort()); + }); + } + + private boolean isApplicationHealthy(int port) { + try { + int status = RestAssured.given().port(port).get("/q/health").then().extract().statusCode(); + return status == 200; + } catch (Exception e) { + return false; + } + } + + private String readLeaderFile(String fileName) throws IOException { + Path path = Paths.get(String.format("target/cluster/%s.txt", fileName)); + if (path.toFile().exists()) { + return FileUtils.readFileToString(path.toFile(), StandardCharsets.UTF_8); + } + return ""; + } +} diff --git a/integration-tests/master-openshift/src/test/java/org/apache/camel/quarkus/component/master/it/MasterOpenShiftTestResource.java b/integration-tests/master-openshift/src/test/java/org/apache/camel/quarkus/component/master/it/MasterOpenShiftTestResource.java new file mode 100644 index 0000000000..f2930a225a --- /dev/null +++ b/integration-tests/master-openshift/src/test/java/org/apache/camel/quarkus/component/master/it/MasterOpenShiftTestResource.java @@ -0,0 +1,55 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.camel.quarkus.component.master.it; + +import io.fabric8.kubernetes.api.model.Pod; +import io.fabric8.kubernetes.api.model.PodBuilder; +import io.fabric8.kubernetes.api.model.PodList; +import io.fabric8.kubernetes.api.model.PodListBuilder; +import io.quarkus.test.kubernetes.client.OpenShiftServerTestResource; + +public class MasterOpenShiftTestResource extends OpenShiftServerTestResource { + @Override + protected void configureServer() { + super.configureServer(); + + final Pod leader = new PodBuilder() + .withNewMetadata() + .withName("leader") + .withNamespace("test") + .and() + .build(); + final Pod follower = new PodBuilder() + .withNewMetadata() + .withName("follower") + .withNamespace("test") + .and() + .build(); + + PodList podList = new PodListBuilder() + .withNewMetadata() + .withResourceVersion("1") + .endMetadata() + .withItems(leader, follower) + .build(); + + server.expect() + .get() + .withPath("/api/v1/namespaces/test/pods") + .andReturn(200, podList).always(); + } +} diff --git a/integration-tests/pom.xml b/integration-tests/pom.xml index 722ffc8147..fd8a2ad83a 100644 --- a/integration-tests/pom.xml +++ b/integration-tests/pom.xml @@ -143,6 +143,7 @@ <module>lumberjack</module> <module>mail</module> <module>master</module> + <module>master-openshift</module> <module>messaging</module> <module>micrometer</module> <module>microprofile</module> diff --git a/tooling/scripts/test-categories.yaml b/tooling/scripts/test-categories.yaml index 2fe1b676f5..5ed3e6cf87 100644 --- a/tooling/scripts/test-categories.yaml +++ b/tooling/scripts/test-categories.yaml @@ -127,6 +127,7 @@ group-08: - dozer - jq - master + - master-openshift - pdf - saxon - syndication diff --git a/tooling/test-list/pom.xml b/tooling/test-list/pom.xml index f8aa32c9b0..81dab25e21 100644 --- a/tooling/test-list/pom.xml +++ b/tooling/test-list/pom.xml @@ -57,6 +57,7 @@ <excludes> <exclude>support/**/*</exclude> <exclude>master/pom.xml</exclude> + <exclude>master-openshift/pom.xml</exclude> <exclude>main-command-mode/pom.xml</exclude> <exclude>main-unknown-args-fail/pom.xml</exclude> <exclude>main-unknown-args-ignore/pom.xml</exclude>