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.
1. Create a Maven enterprise application with web module and ejb module 2. Create a Maven library project (inside the enterprise application directory) and set its source level to 1.5 3. Create an EJB in the EJB module with remote interface in the library, and build the EAR with dependencies You will see that javaee-api-6.0.jar will be packaged inside the ear. This is because the library declares dependency on this API (as is imports javax.ejb.Remote) as follows: <dependency> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>6.0</version> </dependency> The workaround is to add <scope>provided</scope> to the dependency declaration. That should also be the fix - the IDE must generated the dependency correctly.
Sounds right.
Fixed: http://hg.netbeans.org/web-main/rev/9cbd59832985