Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Resolved
-
12.4
-
None
-
NetBeans version
12.4JDK version
zulu16.32.15 (default), JDK version 8 and 11 installed as wellOS
Windows 10 pro, Version 20H2, Build 19042.1110
Description
Short description
Using the create Java Maven Web project results in a project that cannot be build for nor run on a Jakarta EE 8 server. I provided the created result (mavenproject2.zip) and an altered project which can be built and deployed (mavenproject3.zip) - I would expect the latter to be generated.
Exact steps
- Create new project (Java with Maven, Web Application)
- Execute Clean & Build on this project
- Build will fail because of default maven-war plugin (Version 2.2) of bundled maven. version. (see errorlog1.txt)
- Now execute Clean & Build again with success
- Execute Run.
- Deployment will fail because of unsupported Java version. Generator creates a project with compiler set to Java 11. (see errorlog2.txt)
- Reset compiler version to Java 8.
- Now execute Clean & Build again with success.
- Execute Run, project is successfully deployed.
- Welcome page is triggered but not found (not created in fact).
Actual results
Web project that includes microprofile configuration and cannot be build and deployed directly from generated sources. Java compiler level is set to be 11, there are some configuration options based on IBM (Openliberty I believe) and there are microprofile configuration options being used in a sample Jax RS service.
Minor: The pom.xml is not indented properly.
Expected results
Web project that is Jakarta EE 8 compliant and that can be build and run on a Jakarta EE Server (in my case: Payara Server 5.201.4).
Also, in my opinion the project should deliver a welcome page and be minimal in terms of dependencies and contents (that means also removing microprofile configuration).
Attachments
Attachments
Issue Links
- links to