This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I always get this error: CDI artifact is found but there is no beans.xml file. But a beans.xml is available in src/main/resources/META-INF, which is fine according to the CDI specs.
The beans.xml file must be named: META-INF/beans.xml , or, in a war, WEB-INF/beans.xml or WEB-INF/classes/META-INF/beans.xml there is nothing about "resources.. meta-inf", what specification item do you refer? I suppose some vendors and may be even weld support other locations but these locations are not portable.
You are right about the TARGET locations. src/main/resources/META-INF src/main/webapp/WEB-INF are the maven locations. Maybe it's an problem with Maven Projects only when the target directory isn't fully packaged/compiled now?
I may moss smth in maven, is src/main/resources/META-INF packed in WEB-INF/classes/META-INF/ ?
normally yes, but not if: 1) if you haven't compiled already 2) if you skip the packaging because you don't need it. This happens if you run your maven project via jetty from the src directory instead of the target directory. Packaging/copy to the target dir would be just an big overhead which slow down your app startup. Therefor it would be better the check the beans.xml also from the source directories. Would it be possible?
I'll look what can be done a bit later
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss