From c59459cd348a174fb2c0bf5edbb1f496fc37cbf4 Mon Sep 17 00:00:00 2001 From: Oliver Bertuch Date: Tue, 18 Oct 2022 23:33:31 +0200 Subject: [PATCH] build: introduce Payara Arquillian Managed profile #345 - Add Jakarta EE9 and EE10 compatible Payara versions - Add configuration to run Arquillian integration tests in a managed instance of Payara - Add JUnit category to skip tests that should be ignored on Payara --- pom.xml | 91 +++++++++++++++++++ .../rewrite/category/IgnoreForPayara.java | 7 ++ 2 files changed, 98 insertions(+) create mode 100644 test-base/src/main/java/org/ocpsoft/rewrite/category/IgnoreForPayara.java diff --git a/pom.xml b/pom.xml index 90de7cc78..89ca666d6 100644 --- a/pom.xml +++ b/pom.xml @@ -35,6 +35,10 @@ 2.5.5 3.0.1.Final 3.0.1.Final + 2.4.6 + + 5.2022.3 + ${project.build.directory}/payara5 26.1.1.Final @@ -442,9 +446,15 @@ EE10 10.0.0 + 27.0.0.Beta1 + + 6.2022.1.Alpha4 + ${project.build.directory}/payara6 + 5.0.0.Alpha5 5.0.0.Alpha5 + 3.0.alpha6 @@ -575,6 +585,87 @@ + + + + + PAYARA_MANAGED + + false + + + + + + fish.payara.arquillian + payara-client-ee9 + ${version.arquillian.container.managed.payara} + + + + + fish.payara.arquillian + arquillian-payara-server-managed + ${version.arquillian.container.managed.payara} + test + + + + + fish.payara.arquillian + environment-setup + ${version.arquillian.container.managed.payara} + test + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + ${version.dependency.plugin} + + + unpack + pre-integration-test + + unpack + + + + + fish.payara.distributions + payara + ${version.payara} + zip + false + ${project.build.directory} + + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.ocpsoft.rewrite.category.IgnoreForPayara + + --illegal-access=debug --add-opens=java.base/java.util=ALL-UNNAMED + + ${payara.home} + + + + + + + + diff --git a/test-base/src/main/java/org/ocpsoft/rewrite/category/IgnoreForPayara.java b/test-base/src/main/java/org/ocpsoft/rewrite/category/IgnoreForPayara.java new file mode 100644 index 000000000..98aa86826 --- /dev/null +++ b/test-base/src/main/java/org/ocpsoft/rewrite/category/IgnoreForPayara.java @@ -0,0 +1,7 @@ +package org.ocpsoft.rewrite.category; + +/** + * JUnit category which will prevent a certain test to be executed when running the test suite with Payara. + */ +public interface IgnoreForPayara { +}