GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [MEAR-227] Configuration option includeInApplicationXml accessible for all modules · Issue #398 · apache/maven-ear-plugin

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

New issue
Copy link
New issue
Copy link
Open
Open
[MEAR-227] Configuration option includeInApplicationXml accessible for all modules#398
Copy link
Labels
enhancementNew feature or requestpriority:majorMajor loss of function

Description

@jira-importer
jira-importer
opened on Apr 1, 2016
Issue body actions

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
    jira-importer
    on Oct 8, 2022
    Author
    More actions

    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. jira-importer
    added
    enhancementNew feature or request
    priority:majorMajor loss of function
    waiting-for-feedbackWaiting for 90 days until issues or pull request will be closed
    on Jun 9, 2025
  3. github-actions
    removed
    waiting-for-feedbackWaiting for 90 days until issues or pull request will be closed
    on Jun 9, 2025
  4. elharo commented on Jul 28, 2026

    @elharo
    elharo
    on Jul 28, 2026
    Contributor
    More actions

    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

    enhancementNew feature or requestpriority:majorMajor loss of function

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.