OndroMih opened a new issue, #4927: URL: https://github.com/apache/netbeans/issues/4927
### Apache NetBeans version Apache NetBeans 16 release candidate ### What happened When * A Maven EAR project contains a WAR module * The project uses maven-ear-plugin >= 3.0.0 * Deployment to GlassFish (I think the behavior is similar to any other app server) Then: * Deployment fails * The exploded EAR generated by Netbeans in `target/gfdeploy` contains both an exploded directory and original JAR/WAR * The exploded module directories in EAR don't match the expected path defined in `META-INF/application.xml`  Expected: * Deployment is successful * The exploded EAR contains only epxloded module directories * The names of the exploded module directories match what's defined in `application.xml` (match the names of the original JAR/WAR files) ### How to reproduce Reproducer: * [ear-sample-maven-project.zip](https://github.com/apache/netbeans/files/9945637/ear-sample-maven-project.zip) * Build the top level parent POM module * Run the `ear-sample-ear` module with [Eclipse GlassFish 7.0.0-M9](https://github.com/eclipse-ee4j/glassfish/releases/tag/7.0.0-M9) or newer. ### Did this work correctly in an earlier version? No / Don't know ### Operating System Ubuntu Linux 22.04.1 LTS ### JDK openjdk version "17.0.4" (Zulu17.36+13-CA) ### Apache NetBeans packaging Apache NetBeans Snap Package ### Anything else _No response_ ### Are you willing to submit a pull request? Yes ### Code of Conduct Yes -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
