@@ -12,14 +12,14 @@ Add the MicroProfile and Jakarta EE web profile APIs:
12
12
<dependency >
13
13
<groupId >org.eclipse.microprofile</groupId >
14
14
<artifactId >microprofile</artifactId >
15
- <version >5.0 </version >
15
+ <version >LATEST </version >
16
16
<type >pom</type >
17
17
<scope >provided</scope >
18
18
</dependency >
19
19
<dependency >
20
20
<groupId >jakarta.platform</groupId >
21
21
<artifactId >jakarta.jakartaee-web-api</artifactId >
22
- <version >9.1.0 </version >
22
+ <version >LATEST </version >
23
23
<scope >provided</scope >
24
24
</dependency >
25
25
```
@@ -44,7 +44,7 @@ Add the Liberty Maven plug-in in the **pom.xml** file:
44
44
<plugin >
45
45
<groupId >io.openliberty.tools</groupId >
46
46
<artifactId >liberty-maven-plugin</artifactId >
47
- <version >3.5.1 </version >
47
+ <version >LATEST </version >
48
48
<executions >
49
49
<execution >
50
50
<id >package-server</id >
@@ -68,7 +68,7 @@ Add the Liberty Maven plug-in in the **pom.xml** file:
68
68
<dependency >
69
69
<groupId >org.mariadb.jdbc</groupId >
70
70
<artifactId >mariadb-java-client</artifactId >
71
- <version >3.0.4 </version >
71
+ <version >LATEST </version >
72
72
</dependency >
73
73
</dependencyGroup >
74
74
</copyDependencies >
@@ -80,8 +80,8 @@ Add the MicroProfile and Jakarta EE web profile features in the **server.xml** f
80
80
81
81
``` xml
82
82
<featureManager >
83
- <feature >microProfile-5.0 </feature >
84
- <feature >webProfile-9.1 </feature >
83
+ <feature >microProfile-LATEST </feature >
84
+ <feature >webProfile-LATEST </feature >
85
85
</featureManager >
86
86
```
87
87
@@ -95,7 +95,7 @@ Configure the database connection in the **src/main/liberty/config/server.xml**
95
95
<dataSource id =" DefaultDataSource" jndiName =" jdbc/mariadb-database" type =" java.sql.Driver" >
96
96
<jdbcDriver libraryRef =" jdbcLib" />
97
97
<properties
98
- URL=" jdbc:mariadb://localhost:3306/microprofile_demo "
98
+ URL=" jdbc:mariadb://localhost:3306/demo "
99
99
user=" user"
100
100
password=" Password123!"
101
101
/>
@@ -104,7 +104,7 @@ Configure the database connection in the **src/main/liberty/config/server.xml**
104
104
105
105
> 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 ) :
106
106
>
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 `
108
108
109
109
Implement a JPA Entity and define a named query ([ JPQL] ( https://jakarta.ee/specifications/persistence/3.1/jakarta-persistence-spec-3.1.html#a4665 ) ):
110
110
@@ -147,11 +147,11 @@ List<ProgrammingLanguage> programmingLanguages = query.getResultList();
147
147
```
148
148
149
149
## 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).
151
151
Apache Maven.
152
152
- 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.
155
155
- An SQL client tool like mariadb, DBeaver, or an SQL integration for your IDE.
156
156
157
157
## Running the app
0 commit comments