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.

Bug 242294

Summary: Maven JAR projects with META-INF/beans.xml are CDI-Projects too!
Product: javaee Reporter: rherschke
Component: CDIAssignee: Sergey Petrov <sj-nb>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Mac OS X   
Issue Type: ENHANCEMENT Exception Reporter:

Description rherschke 2014-02-24 16:24:36 UTC
Currently, the New... - Templates for Context & Dependency Injection are only available when the facet of the project is a WAR or the packaging of the maven project is WAR.

But any JAR project should be enabled for context&dependency injection when there is a beans.xml in the META-INF folder.

So, if there is a META-INF/beans.xml, the New... Wizard should let me choose to create a new Qualifier, Scope or anything related to CDI as it is within a WAR project.

Thx
Comment 1 Sergey Petrov 2014-07-11 12:13:32 UTC
I would say, it's just supported for war now and isn't supported in other cases. and it look more like enhancement to supported cases
Comment 2 Martin Balin 2016-07-07 08:54:43 UTC
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