Skip to content

[MEAR-227] Configuration option includeInApplicationXml accessible for all modules #398

Open

Description

@jira-importer

Marek Gregor opened MEAR-227 and commented

Currently includeInApplicationXml configuration option is available only for jarModule: https://maven.apache.org/plugins/maven-ear-plugin/modules.html#jarModule

We need to use it also for another module (in our case it is webModule). I think it will be fine to enable this option for all modules (ejb, web, ...). The motivation is to enable specific ear to be built with modules by default not described in application.xml. Person responsible for deploying will add modules to application.xml based on current case.


No further details from MEAR-227

Activity

  1. jira-importer commented on Oct 8, 2022

    @jira-importer
    Author

    Slawomir Jaranowski commented

    I as see the standard module was added to application.xml by default.
    Can you retest with the latest version of m-ear-p

  2. elharo commented on Jul 28, 2026

    @elharo
    Contributor

    per Gemini:

    If you look closely at the current API and documentation for the latest maven-ear-plugin (version 3.4.0), the includeInApplicationXml property is still explicitly restricted to JarModule. It is not present in the base AbstractEarModule class, meaning you still cannot configure this property for a webModule, ejbModule, or any other standard Java EE module.

    The standard behavior of the plugin is—and always has been—to automatically include standard modules (like WARs and EJBs) in the generated application.xml. However, the original reporter's goal was the exact opposite: they wanted the ability to package a webModule inside the EAR without it being automatically written into the application.xml. They wanted the toggle exposed for all modules so they could set includeInApplicationXml=false, leaving the deployment team to manually configure the XML based on the specific deployment environment.

    Because standard modules still lack this configuration toggle and cannot be omitted from the generated deployment descriptor without being entirely excluded from the EAR archive, the issue remains a valid, unresolved feature request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions