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 new Maven-based Java EE 6 Enterprise application 2. Build it with dependencies You will see that application.xml was generated in the output, which is not necessary for EE 6. I guess it can be suppressed (if this is easily doable in the maven-ear-plugin), what do you think David?
What is inside generated application.xml? It should not be needed.
This is what is generated: <?xml version="1.0" encoding="UTF-8"?> <application xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_6.xsd" version="6"> <display-name>mavenproject91-ear</display-name> <module> <ejb>mavenproject91-ejb-1.0-SNAPSHOT.jar</ejb> </module> <module> <web> <web-uri>mavenproject91-web-1.0-SNAPSHOT.war</web-uri> <context-root>/mavenproject91-web</context-root> </web> </module> </application>
The only reason why you may want application.xml is context-root. If you delete your application.xml then filename of war will be used instead which in your case will be "/mavenproject91-web-1.0-SNAPSHOT". Otherwise application.xml is not needed since EE 5.
Well, context root is often needed (and /mavenproject91-web-1.0-SNAPSHOT is an ugly context path), so application.xml may often be useful. We should still think about this - changing to TASK.
+1 application.xml currently also gets generated if there is only an ejb module and no web module.
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