Migrating dependencies
With the migration from Java EE to the Jakarta EE namespace, we need to update three dependencies that the project uses. In this section, we will look into how to upgrade the Java version of the project, the Payara application server, and the PrimeFaces dependency.
Upgrading the project
To change the Java version Maven uses, we need to make two changes in the pom.xml
file. Inside the pom.xml
file located in the root of the project directory, you can find the source and target Maven uses for the cargo tracker application.
Currently, the project uses Java version 7, and inside the pom.xml
file, you can find the following two lines that confirm this:
<maven.compiler.source>1.7</maven.compiler.source> <maven.compiler.target>1.7</maven.compiler.target>
We upgraded the cargo tracker application to the latest long-term support (LTS) version of Java currently available, which is 17. To upgrade the project, replace 1.7
with 17
so...