Skip to content

Commit

Permalink
Merge pull request #141 from jhanders34/jhanders34-branch
Browse files Browse the repository at this point in the history
Update dependencies for Jakarta EE 11 TCK
  • Loading branch information
cherylking authored Oct 15, 2024
2 parents e8732af + 25ea26b commit 8ea8e90
Show file tree
Hide file tree
Showing 12 changed files with 55 additions and 43 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,9 @@ jobs:
max-parallel: 7
matrix:
os: [ubuntu-latest, windows-latest]
java: [8, 11, 17]
java: [11, 17, 21]
runtime: [ol, wlp-ee9, wlp-ee10]
runtime_version: [24.0.0.9]
exclude:
- java: 8
runtime: wlp-ee10

steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@

An Arquillian container adapter (`DeployableContainer` implementation) that can start and stop a local Liberty process and run tests on it over a remote protocol (effectively in a different JVM). For an introduction to testing microservices with the Arquillian Liberty Managed container and [Open Liberty](https://openliberty.io/), check out the [this guide](https://openliberty.io/guides/arquillian-managed.html).

**Jakarta EE 9 and 10:** for Arquillian Liberty Managed container documentation with Jakarta EE 9 and EE 10, click [here](liberty-managed/JakartaEE9_README.md).
**Jakarta EE 9, 10 and 11:** for Arquillian Liberty Managed container documentation with Jakarta EE 9, 10 and 11, click [here](liberty-managed/JakartaEE9_README.md).

**Java EE 8 or below:** for Arquillian Liberty Managed container documentation with Java EE 8 or below, click [here](liberty-managed/README.md).

### Arquillian Liberty Remote Container

An Arquillian container adapter (`DeployableContainer` implementation) that can connect and run against a remote (different JVM, different machine) Liberty server and run tests on it over a remote protocol (effectively in a different JVM).

**Jakarta EE 9 and 10:** for Arquillian Liberty Remote container documentation with Jakarta EE 9 and EE 10, click [here](liberty-remote/JakartaEE9_README.md).
**Jakarta EE 9, 10 and 11:** for Arquillian Liberty Remote container documentation with Jakarta EE 9, 10 and 11, click [here](liberty-remote/JakartaEE9_README.md).

**Java EE 8 or below:** for Arquillian Liberty Remote container documentation with Java EE 8 or below, click [here](liberty-remote/README.md).

Expand Down
16 changes: 9 additions & 7 deletions liberty-managed/JakartaEE9_README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
# Arquillian Liberty Managed with Jakarta EE 9 and 10
# Arquillian Liberty Managed with Jakarta EE 9, 10 and 11

An Arquillian container adapter (`DeployableContainer` implementation) that can start and stop a local Liberty process and run tests on it over a remote protocol (effectively in a different JVM).

## Prerequisites

**Prerequisite Version**

This `DeployableContainer` has been tested with the latest release of Open Liberty. Requires Jakarta EE 9 or 10.
This `DeployableContainer` has been tested with the latest release of Open Liberty. Requires Jakarta EE 9, 10 or 11.

For Java EE 8 projects and below, check out the documentation [here](README.md).

For Jakarta EE 9 projects using Java SE 8, you will need to use the 2.x versions of the Liberty Arquillian plugin.

**Prerequisite Configuration**

The following features are required in the `server.xml` of the Liberty server.
Expand All @@ -19,7 +21,7 @@ The following features are required in the `server.xml` of the Liberty server.
<featureManager>
<feature>pages-3.0</feature>
<feature>localConnector-1.0</feature>
<feature>usr:arquillian-support-jakarta-2.1</feature> <!-- Optional, needed for reliable reporting of correct DeploymentExceptions -->
<feature>usr:arquillian-support-jakarta-3.0</feature> <!-- Optional, needed for reliable reporting of correct DeploymentExceptions -->
</featureManager>
```

Expand All @@ -30,11 +32,11 @@ or
<featureManager>
<feature>restfulWS-3.0</feature>
<feature>localConnector-1.0</feature>
<feature>usr:arquillian-support-jakarta-2.1</feature> <!-- Optional, needed for reliable reporting of correct DeploymentExceptions -->
<feature>usr:arquillian-support-jakarta-3.0</feature> <!-- Optional, needed for reliable reporting of correct DeploymentExceptions -->
</featureManager>
```

Read more about configuring the `arquillian-support-jakarta-2.1` feature [here](../liberty-support-feature/JakartaEE9_README.md).
Read more about configuring the `arquillian-support-jakarta-3.0` feature [here](../liberty-support-feature/JakartaEE9_README.md).

You will also need to enable the `applicationMonitor` MBean support in your `server.xml`:

Expand All @@ -56,7 +58,7 @@ To enable Arquillian Liberty Managed in your project, add the following to your
<dependency>
<groupId>org.jboss.arquillian</groupId>
<artifactId>arquillian-bom</artifactId>
<version>1.7.0.Final</version>
<version>1.9.1.Final</version>
<scope>import</scope>
<type>pom</type>
</dependency>
Expand All @@ -68,7 +70,7 @@ To enable Arquillian Liberty Managed in your project, add the following to your
<dependency>
<groupId>io.openliberty.arquillian</groupId>
<artifactId>arquillian-liberty-managed-jakarta</artifactId>
<version>2.1.3</version>
<version>3.0.0</version>
<scope>test</scope>
</dependency>
...
Expand Down
2 changes: 1 addition & 1 deletion liberty-managed/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ An Arquillian container adapter (`DeployableContainer` implementation) that can

This `DeployableContainer` has been tested with the latest two releases of Open Liberty and WebSphere Liberty. Requires Java EE 8 or below.

For Jakarta EE 9 and EE 10 projects, check out the documentation [here](JakartaEE9_README.md).
For Jakarta EE 9, 10 and 11 projects, check out the documentation [here](JakartaEE9_README.md).

**Prerequisite Configuration**

Expand Down
6 changes: 3 additions & 3 deletions liberty-managed/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.openliberty.arquillian</groupId>
<artifactId>arquillian-parent-liberty-jakarta</artifactId>
<version>3.0-SNAPSHOT</version>
<version>3.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down Expand Up @@ -193,12 +193,12 @@
<version>${version.surefire.plugin}</version>
<configuration>
<skip>true</skip>
<systemProperties>
<systemPropertyVariables>
<property>
<name>java.util.logging.config.file</name>
<value>${loggingPropertiesFile}</value>
</property>
</systemProperties>
</systemPropertyVariables>
<argLine>-Dproject.build.directory=${project.build.directory}</argLine>
<trimStackTrace>false</trimStackTrace>
</configuration>
Expand Down
12 changes: 7 additions & 5 deletions liberty-remote/JakartaEE9_README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
# Arquillian Liberty Remote with Jakarta EE 9 and 10
# Arquillian Liberty Remote with Jakarta EE 9, 10 and 11

An Arquillian container adapter (`DeployableContainer` implementation) that can connect and run against a remote (different JVM, different machine) Liberty server andrun tests on it over a remote protocol (effectively in a different JVM).

## Prerequisites

**Prerequisite Version**

This `DeployableContainer` has been tested with the latest release of Open Liberty. Requires Jakarta EE 9 or EE 10.
This `DeployableContainer` has been tested with the latest release of Open Liberty. Requires Jakarta EE 9, 10 or 11

For Java EE 8 projects and below, check out the documentation [here](README.md).

For Jakarta EE 9 projects using Java SE 8, you will need to use the 2.x versions of the Liberty Arquillian plugin.

**Prerequisite Configuration**

The following features are required in the `server.xml` of the Liberty server.
Expand Down Expand Up @@ -64,7 +66,7 @@ To enable Arquillian Liberty Remote in your project, add the following to your `
<dependency>
<groupId>org.jboss.arquillian</groupId>
<artifactId>arquillian-bom</artifactId>
<version>1.7.0.Final</version>
<version>1.9.1.Final</version>
<scope>import</scope>
<type>pom</type>
</dependency>
Expand All @@ -76,7 +78,7 @@ To enable Arquillian Liberty Remote in your project, add the following to your `
<dependency>
<groupId>io.openliberty.arquillian</groupId>
<artifactId>arquillian-liberty-remote-jakarta</artifactId>
<version>2.1.3</version>
<version>3.0.0</version>
<scope>test</scope>
</dependency>
...
Expand Down Expand Up @@ -134,7 +136,7 @@ xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/a
<dependency>
<groupId>io.openliberty.arquillian</groupId>
<artifactId>arquillian-liberty-remote-jakarta</artifactId>
<version>2.1.3</version>
<version>3.0.0</version>
</dependency>
</dependencies>
</profile>
Expand Down
2 changes: 1 addition & 1 deletion liberty-remote/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ An Arquillian container adapter (`DeployableContainer` implementation) that can

This `DeployableContainer` has been tested with the latest two releases of Open Liberty and WebSphere Liberty. Requires Java EE 8 or below.

For Jakarta EE 9 and 10 projects, check out the documentation [here](JakartaEE9_README.md).
For Jakarta EE 9, 10 and 11 projects, check out the documentation [here](JakartaEE9_README.md).

**Prerequisite Configuration**

Expand Down
6 changes: 3 additions & 3 deletions liberty-remote/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>io.openliberty.arquillian</groupId>
<artifactId>arquillian-parent-liberty-jakarta</artifactId>
<version>3.0-SNAPSHOT</version>
<version>3.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>arquillian-liberty-remote-jakarta</artifactId>
Expand Down Expand Up @@ -57,12 +57,12 @@
<version>${version.surefire.plugin}</version>
<configuration>
<skip>true</skip>
<systemProperties>
<systemPropertyVariables>
<property>
<name>java.util.logging.config.file</name>
<value>${loggingPropertiesFile}</value>
</property>
</systemProperties>
</systemPropertyVariables>
</configuration>
<executions>
<execution>
Expand Down
18 changes: 10 additions & 8 deletions liberty-support-feature/JakartaEE9_README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# Arquillian support Liberty user feature with Jakarta EE 9 and 10
# Arquillian support Liberty user feature with Jakarta EE 9, 10 and 11

A Liberty user feature which allows deployment exceptions to be reported more reliably when using the Liberty Managed Jakarta container.

The Arquillian support feature adds an additional http endpoint which the Arquillian container can query to determine the cause when an application fails to start.

It is only for supporting the running of Arquillian tests and must not be installed on a production system.

Requires Jakarta EE 9 or 10. For Java EE 8 projects and below, check out the documentation [here](README.md).
Requires Jakarta EE 9, 10 or 11. For Java EE 8 projects and below, check out the documentation [here](README.md).

For Jakarta EE 9 projects using Java SE 8, you will need to use the 2.x versions of the Liberty Arquillian plugin.

## Configuring with a Maven project

Expand All @@ -19,7 +21,7 @@ Example:
<dependency>
<groupId>io.openliberty.arquillian</groupId>
<artifactId>arquillian-liberty-support-jakarta</artifactId>
<version>2.1.3</version>
<version>3.0.0</version>
</dependency>
</dependencies>
<plugin>
Expand All @@ -40,7 +42,7 @@ Example:
<artifactItem>
<groupId>io.openliberty.arquillian</groupId>
<artifactId>arquillian-liberty-support-jakarta</artifactId>
<version>2.1.3</version>
<version>3.0.0</version>
<type>zip</type>
<classifier>feature</classifier>
<overWrite>false</overWrite>
Expand All @@ -50,12 +52,12 @@ Example:
</configuration>
</plugin>
```
Then add `<feature>usr:arquillian-support-jakarta-2.1</feature>` to the `<featureManager>` section of your `server.xml`.
Then add `<feature>usr:arquillian-support-jakarta-3.0</feature>` to the `<featureManager>` section of your `server.xml`.
```
<featureManager>
<feature>pages-3.0</feature>
<feature>localConnector-1.0</feature>
<feature>usr:arquillian-support-jakarta-2.1</feature>
<feature>usr:arquillian-support-jakarta-3.0</feature>
</featureManager>
```

Expand All @@ -67,12 +69,12 @@ git clone [email protected]:OpenLiberty/liberty-arquillian.git
mvn install
```
2. Extract the arquillian-liberty-support-jakarta-x.x.x-feature.zip into the `usr` directory of your Liberty runtime
3. Add `<feature>usr:arquillian-support-jakarta-2.1</feature>` to the `<featureManager>` section of your `server.xml`
3. Add `<feature>usr:arquillian-support-jakarta-3.0</feature>` to the `<featureManager>` section of your `server.xml`

```
<featureManager>
<feature>pages-3.0</feature>
<feature>localConnector-1.0</feature>
<feature>usr:arquillian-support-jakarta-2.1</feature>
<feature>usr:arquillian-support-jakarta-3.0</feature>
</featureManager>
```
2 changes: 1 addition & 1 deletion liberty-support-feature/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The Arquillian support feature adds an additional http endpoint which the Arquil

It is only for supporting the running of Arquillian tests and must not be installed on a production system.

Requires Java EE 8 or below. For Jakarta EE 9 and 10 projects, check out the documentation [here](JakartaEE9_README.md).
Requires Java EE 8 or below. For Jakarta EE 9, 10 and 11 projects, check out the documentation [here](JakartaEE9_README.md).

## Configuring with a Maven project

Expand Down
6 changes: 3 additions & 3 deletions liberty-support-feature/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.openliberty.arquillian</groupId>
<artifactId>arquillian-parent-liberty-jakarta</artifactId>
<version>3.0-SNAPSHOT</version>
<version>3.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down Expand Up @@ -36,7 +36,7 @@
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
<version>3.5.0</version>
<version>6.4.0</version>
<executions>
<execution>
<goals>
Expand Down Expand Up @@ -124,4 +124,4 @@
</dependencies>


</project>
</project>
19 changes: 14 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<!-- Artifact Configuration -->
<groupId>io.openliberty.arquillian</groupId>
<artifactId>arquillian-parent-liberty-jakarta</artifactId>
<version>3.0-SNAPSHOT</version>
<version>3.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Arquillian Container Liberty Jakarta Parent</name>
<description>Jakarta Liberty Container integrations for the Arquillian Project</description>
Expand All @@ -38,12 +38,14 @@
<!-- Properties -->
<properties>
<!-- Versioning -->
<version.arquillian_core>1.7.0.Final</version.arquillian_core>
<version.surefire.plugin>3.0.0-M7</version.surefire.plugin>
<version.arquillian_core>1.9.1.Final</version.arquillian_core>
<version.arquillian_jakarta>10.0.0.Final</version.arquillian_jakarta>
<version.surefire.plugin>3.2.5</version.surefire.plugin>

<!-- override from parent -->
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.release>11</maven.compiler.release>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.source>11</maven.compiler.source>

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Expand All @@ -65,6 +67,13 @@
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.jboss.arquillian.jakarta</groupId>
<artifactId>arquillian-jakarta-bom</artifactId>
<version>${version.arquillian_jakarta}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down

0 comments on commit 8ea8e90

Please sign in to comment.