Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-5892

Java Maven Web Project not created properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Resolved
    • 12.4
    • 12.6
    • None
    • NetBeans version
      12.4

      JDK version
      zulu16.32.15 (default), JDK version 8 and 11 installed as well

      OS
      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

      1. Create new project (Java with Maven, Web Application)
      2. Execute Clean & Build on this project
      3. Build will fail because of default maven-war plugin (Version 2.2) of bundled maven. version. (see errorlog1.txt)
      4. Now execute Clean & Build again with success
      5. Execute Run.
      6. Deployment will fail because of unsupported Java version. Generator creates a project with compiler set to Java 11. (see errorlog2.txt)
      7. Reset compiler version to Java 8.
      8. Now execute Clean & Build again with success.
      9. Execute Run, project is successfully deployed.
      10. 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

        1. 1_used_create_dialog.png
          51 kB
          Thomas Schuster
        2. 2_bundled_maven.png
          52 kB
          Thomas Schuster
        3. 3_pom.png
          174 kB
          Thomas Schuster
        4. 4_index_page_missing.png
          11 kB
          Thomas Schuster
        5. errorlog1.txt
          15 kB
          Thomas Schuster
        6. errorlog2.txt
          6 kB
          Thomas Schuster
        7. mavenproject2.zip
          8 kB
          Thomas Schuster
        8. mavenproject3.zip
          8 kB
          Thomas Schuster

        Issue Links

          Activity

            People

              javajuneau Josh Juneau
              thomas42 Thomas Schuster
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h