Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6528801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T09:34:07+00:00 2026-05-25T09:34:07+00:00

I have setup multi-modules environment with Maven, Eclipse, WTP. The Eclipse Plugins I installed

  • 0

I have setup multi-modules environment with Maven, Eclipse, WTP.
The Eclipse Plugins I installed are:

  • m2e

  • m2e-extras

  • m2e-overlay

I have a war module(w2) that depends on another war module(w1), w1 has a web.xml file, and w2 doesn’t have it’s own, it uses overlay web.xml from w1. Whenever I click maven -> Update project configuration, eclipse automatically generates an empty web.xml for w2 which I really don’t want.

How can I disable this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T09:34:08+00:00Added an answer on May 25, 2026 at 9:34 am

    By default, m2e-wtp specifically asks WTP to not generate a web.xml if none exists and adds the Dynamic Web Facet 2.5 by default (or 3.0 if some JavaEE 6 dependencies are detected in the classpath).
    The only reason WTP would create the web.xml would be if we asked to install a facet version <=2.4. But these facets can only be inferred from an existing web.xml. See the irony?

    So what you see is most likely a bug and you might want to create a bug report with a sample project attached to https://issues.sonatype.org/browse/MECLIPSEWTP

    In the mean time you can try to use a dev build of m2e-wtp 0.14.0, available from http://download.jboss.org/jbosstools/builds/staging/m2eclipse-wtp-e37/all/repo/, as I recently made changes in the way Dynamic Facet version changes are handled.

    And as for the overlay exclusion configuration described in the first reply, that wouldn’t work for you since you want to specifically use w1’s web.xml, not exclude it. I would rather invert the overlay order like :

    <plugin>
      <groupId>org.apache.maven.plugins</groupId> 
      <artifactId>maven-war-plugin</artifactId> 
      <configuration>
        <overlays>
          <overlay>
            <groupId>foo.bar</groupId> 
            <artifactId>w1</artifactId> 
          </overlay>
          <overlay>
             <!-- this is the current w2, 
                  it's resources will be overridden by w1
              -->
          </overlay>
        </overlays>
      </configuration>
    </plugin>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How do you setup a multi-developer XDebug PHP environment? I have the following setup:
I have a multi module Spring project that I set up using Maven: my-root
I'm trying to work out the best way to setup our multi-module Apache Maven
i have created a multi-module maven project and i am trying to write and
We have a multi-module project documented with the (excellent) Sphinx. Our setup is not
I have a multi-module maven project with an installer sub-project. The installer will be
I have setup a git repository in a linux server, and installed the latest
I have a medium size project split into 3 modules: Core, plugins (in short
I'm using the Drupal Quiz module, and have setup some basic quizzes and stuff
I have a three-level multi-nested form in Rails. The setup is like this: Projects

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.