Skip to content

Commit 42f596f

Browse files
committed
Updated Microprofile example dependencies
1 parent d16d4ec commit 42f596f

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

microprofile/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ Add the MicroProfile and Jakarta EE web profile APIs:
1212
<dependency>
1313
<groupId>org.eclipse.microprofile</groupId>
1414
<artifactId>microprofile</artifactId>
15-
<version>5.0</version>
15+
<version>LATEST</version>
1616
<type>pom</type>
1717
<scope>provided</scope>
1818
</dependency>
1919
<dependency>
2020
<groupId>jakarta.platform</groupId>
2121
<artifactId>jakarta.jakartaee-web-api</artifactId>
22-
<version>9.1.0</version>
22+
<version>LATEST</version>
2323
<scope>provided</scope>
2424
</dependency>
2525
```
@@ -44,7 +44,7 @@ Add the Liberty Maven plug-in in the **pom.xml** file:
4444
<plugin>
4545
<groupId>io.openliberty.tools</groupId>
4646
<artifactId>liberty-maven-plugin</artifactId>
47-
<version>3.5.1</version>
47+
<version>LATEST</version>
4848
<executions>
4949
<execution>
5050
<id>package-server</id>
@@ -68,7 +68,7 @@ Add the Liberty Maven plug-in in the **pom.xml** file:
6868
<dependency>
6969
<groupId>org.mariadb.jdbc</groupId>
7070
<artifactId>mariadb-java-client</artifactId>
71-
<version>3.0.4</version>
71+
<version>LATEST</version>
7272
</dependency>
7373
</dependencyGroup>
7474
</copyDependencies>
@@ -80,8 +80,8 @@ Add the MicroProfile and Jakarta EE web profile features in the **server.xml** f
8080

8181
```xml
8282
<featureManager>
83-
<feature>microProfile-5.0</feature>
84-
<feature>webProfile-9.1</feature>
83+
<feature>microProfile-LATEST</feature>
84+
<feature>webProfile-LATEST</feature>
8585
</featureManager>
8686
```
8787

@@ -95,7 +95,7 @@ Configure the database connection in the **src/main/liberty/config/server.xml**
9595
<dataSource id="DefaultDataSource" jndiName="jdbc/mariadb-database" type="java.sql.Driver">
9696
<jdbcDriver libraryRef="jdbcLib"/>
9797
<properties
98-
URL="jdbc:mariadb://localhost:3306/microprofile_demo"
98+
URL="jdbc:mariadb://localhost:3306/demo"
9999
user="user"
100100
password="Password123!"
101101
/>
@@ -104,7 +104,7 @@ Configure the database connection in the **src/main/liberty/config/server.xml**
104104

105105
> If you are using [MariaDB SkySQL](https://mariadb.com/products/skysql/), enable SSL and specify the path to the CA chain file that you can download from the [SkySQL Portal](https://cloud.mariadb.com):
106106
>
107-
> `jdbc:mariadb://demo-db0000xxxx.mdb000xxxx.db.skysql.net:5047/microprofile_demo?sslMode=verify-ca&serverSslCert=/path/to/your/skysql_chain.pem`
107+
> `jdbc:mariadb://demo-db0000xxxx.mdb000xxxx.db.skysql.net:5047/demo?sslMode=verify-ca&serverSslCert=/path/to/your/skysql_chain.pem`
108108
109109
Implement a JPA Entity and define a named query ([JPQL](https://jakarta.ee/specifications/persistence/3.1/jakarta-persistence-spec-3.1.html#a4665)):
110110

@@ -147,11 +147,11 @@ List<ProgrammingLanguage> programmingLanguages = query.getResultList();
147147
```
148148

149149
## Requirements
150-
- Java 17 or later. Previous versions should work (update the version in the pom.xml file).
150+
- Java 21 or later. Previous versions should work (update the version in the **pom.xml** file).
151151
Apache Maven.
152152
- Eclipse GlassFish 6.2.5 or later.
153-
- MariaDB server. If you don't want to install anything extra, try creating a free [SkySQL account](https://cloud.mariadb.com).
154-
- MariaDB Connector/J 3.0.4 or later.
153+
- MariaDB server.
154+
- MariaDB Connector/J 3.2.0 or later.
155155
- An SQL client tool like mariadb, DBeaver, or an SQL integration for your IDE.
156156

157157
## Running the app

microprofile/src/main/liberty/config/server.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<server description="Microprofile with MariaDB demo">
33

44
<featureManager>
5-
<feature>microProfile-5.0</feature>
6-
<feature>webProfile-9.1</feature>
5+
<feature>microProfile-6.0</feature>
6+
<feature>webProfile-10.0</feature>
77
</featureManager>
88

99
<httpEndpoint id="defaultHttpEndpoint" httpPort="9080" httpsPort="9443" />
@@ -18,12 +18,12 @@
1818

1919
<dataSource id="DefaultDataSource" jndiName="jdbc/mariadb-database" type="java.sql.Driver">
2020
<jdbcDriver libraryRef="jdbcLib" />
21-
<properties URL="jdbc:mariadb://localhost:3306/microprofile_demo" user="user" password="Password123!" />
21+
<properties URL="jdbc:mariadb://localhost:3306/demo" user="user" password="Password123!" />
2222
<!--
2323
If you are using MariaDB SkySQL (https://mariadb.com/products/skysql),
2424
enable SSL and specify the path to the CA chain file that you can download
2525
from the SkySQL Portal (https://cloud.mariadb.com):
26-
jdbc:mariadb://demo-db0000xxxx.mdb000xxxx.db.skysql.net:5047/microprofile_demo?sslMode=verify-ca&serverSslCert=/path/to/your/skysql_chain.pem
26+
jdbc:mariadb://demo-db0000xxxx.mdb000xxxx.db.skysql.net:5047/demo?sslMode=verify-ca&serverSslCert=/path/to/your/skysql_chain.pem
2727
-->
2828
</dataSource>
2929

0 commit comments

Comments
 (0)