apache / netbeans

Apache NetBeans
https://netbeans.apache.org/
Apache License 2.0
2.63k stars 840 forks source link

Project warning with Quarkus maven project #5926

Open vanuatoo opened 1 year ago

vanuatoo commented 1 year ago

Apache NetBeans version

Apache NetBeans 17

What happened

when you generate the maven project and open it in NetBeans, the project fails to load successfully. You can work with the project normally, but there is an indication in the project tree that there is some problem.

How to reproduce

  1. Create Quarkus maven project using either Quarkus website or Quarkus CLI
  2. Open the project in NetBeans
  3. NetBeans loads the project but there is an problem icon left to the project root (see attachment)
  4. When you go to the Resolve Project Problems, it displays a dialog (see attachment)

Did this work correctly in an earlier version?

No / Don't know

Operating System

Mac OS Ventura 13.3.1 on M1

JDK

openjdk version "17.0.7" 2023-04-18 OpenJDK Runtime Environment Temurin-17.0.7+7 (build 17.0.7+7) OpenJDK 64-Bit Server VM Temurin-17.0.7+7 (build 17.0.7+7, mixed mode)

Apache NetBeans packaging

Apache NetBeans binary zip

Anything else

No response

Are you willing to submit a pull request?

No

vanuatoo commented 1 year ago
Screenshot 2023-05-08 at 11 35 43 Screenshot 2023-05-08 at 11 36 00
neilcsmith-net commented 1 year ago

Does the project otherwise work OK?

Some potentially relevant old issues - https://bz.apache.org/netbeans/show_bug.cgi?id=204898 https://bz.apache.org/netbeans/show_bug.cgi?id=269741

There is some commented out code in MavenProjectCache related to running these. There is also code to mark ignored, but I'm not sure we have a way to ignore this warning via the UI?

vanuatoo commented 1 year ago

Project otherwise works OK

neilcsmith-net commented 1 year ago

This is just a warning then, not the project failing to load. You can see similar using the shade plugin.

It might be good to be able to mark such warnings as resolved manually once read.