-
Notifications
You must be signed in to change notification settings - Fork 0
Migrate Java 8 to Java 21: POM dependency and plugin updates (Steps 1-5) #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,22 +15,16 @@ | |
|
|
||
| <dependencies> | ||
| <dependency> | ||
| <groupId>javax.servlet</groupId> | ||
| <artifactId>javax.servlet-api</artifactId> | ||
| <version>3.1.0</version> | ||
| <groupId>jakarta.servlet</groupId> | ||
| <artifactId>jakarta.servlet-api</artifactId> | ||
| <version>6.0.0</version> | ||
| <scope>provided</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>javax.enterprise</groupId> | ||
| <artifactId>cdi-api</artifactId> | ||
| <version>1.2</version> | ||
| <groupId>jakarta.enterprise</groupId> | ||
| <artifactId>jakarta.enterprise.cdi-api</artifactId> | ||
| <version>4.0.1</version> | ||
| <scope>provided</scope> | ||
| <exclusions> | ||
| <exclusion> | ||
| <groupId>javax.el</groupId> | ||
| <artifactId>javax.el-api</artifactId> | ||
| </exclusion> | ||
| </exclusions> | ||
| </dependency> | ||
| </dependencies> | ||
|
|
||
|
|
@@ -39,15 +33,15 @@ | |
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-war-plugin</artifactId> | ||
| <version>2.5</version> | ||
| <version>3.4.0</version> | ||
| <configuration> | ||
| <failOnMissingWebXml>false</failOnMissingWebXml> | ||
| </configuration> | ||
| </plugin> | ||
| <plugin> | ||
| <groupId>org.eclipse.jetty</groupId> | ||
| <artifactId>jetty-maven-plugin</artifactId> | ||
| <version>9.2.5.v20141112</version> | ||
| <groupId>org.eclipse.jetty.ee10</groupId> | ||
| <artifactId>jetty-ee10-maven-plugin</artifactId> | ||
| <version>12.0.14</version> | ||
|
Comment on lines
+42
to
+44
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔴 Jetty 12 ee10 plugin upgrade without updating XML configs that reference non-existent Jetty 9 classes The Jetty plugin was upgraded from Prompt for agentsWas this helpful? React with 👍 or 👎 to provide feedback.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Acknowledged — this is intentionally deferred. The migration plan explicitly states to keep the existing |
||
| <configuration> | ||
| <!-- | ||
| No need to explicitly configure this if using default name 'jetty-env.xml' | ||
|
|
@@ -61,8 +55,8 @@ | |
| <dependencies> | ||
| <dependency> | ||
| <groupId>org.jboss.weld.servlet</groupId> | ||
| <artifactId>weld-servlet</artifactId> | ||
| <version>2.2.7.Final</version> | ||
| <artifactId>weld-servlet-shaded</artifactId> | ||
| <version>5.1.2.Final</version> | ||
| </dependency> | ||
| </dependencies> | ||
| </plugin> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔴 Jakarta Servlet 6.0 dependency without updating web.xml namespace from Java EE to Jakarta EE
The servlet dependency was upgraded to
jakarta.servlet-api:6.0.0(Jakarta EE 10), butjetty-maven-cdi/src/main/webapp/WEB-INF/web.xml:2-5andjetty-maven-cdi/src/main/webapp/WEB-INF/web-overwrite.xml:2-5still declare the old Java EE namespace (http://java.sun.com/xml/ns/javaeewithversion="3.0"). Jakarta EE 10 requires the namespacehttps://jakarta.ee/xml/ns/jakartaeewithversion="6.0". With the Jetty 12 ee10 environment, the old namespace may cause the web application descriptor to be rejected or misinterpreted at deployment time. Additionally,web-overwrite.xml:15referencesjavax.enterprise.inject.spi.BeanManagerwhich should bejakarta.enterprise.inject.spi.BeanManager.Prompt for agents
Was this helpful? React with 👍 or 👎 to provide feedback.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Acknowledged — this is intentionally deferred. This PR implements only the first 5 steps of a staged migration plan, which are scoped to POM file changes only. The web descriptor XML namespace updates (
web.xml,web-overwrite.xml) and thejavax.enterprise→jakarta.enterprisereference updates will be addressed in subsequent migration steps that cover the source/config file changes.