title: Maven Hides Web.xml from Eclipse and JBossAS Tools after Update Project Configuration
body: <p>I'm using Eclipse Indigo, with the "Jboss Maven Integration" and "JBossAS Tools" plugins from JBoss Tools 3.3 installed (none of the other twenty or so JBoss Tools plugins). The application is being deployed to a JBoss 4.2 using the JBossAS Tools 4.2 runtime.</p>
  
  <p>Here are the steps to reproduce the problem...</p>
  
  <h2>1. Create Dynamic Web Project</h2>
  
  <p><img src="https://i.stack.imgur.com/bwpJm.png" alt="Dynamic Web Project with default settings for JBoss AS 4.2 runtime"></p>
  
  <p><img src="https://i.stack.imgur.com/5k9GK.png" alt="Standard Maven webapp directory structure"></p>
  
  <p><img src="https://i.stack.imgur.com/ydTDw.png" alt="Still using Maven standard directory structure"></p>
  
  <p>The project is created with a default deployment descriptor which contains a list of welcome files. The "Welcome Pages" icon can be expanded in the Project Explorer, listing the files in "web.xml".</p>
  
  <p><img src="https://i.stack.imgur.com/dLwhJ.png" alt="Project Explorer reflects the contents of web.xml"></p>
  
  <h2>2. Convert to Maven Project</h2>
  
  <p>I right-click the project and select "Configure > Convert to Maven Project". I specify "war" packaging and give it a name and description.</p>
  
  <p><img src="https://i.stack.imgur.com/le37L.png" alt="Settings to be put into the pom.xml file"></p>
  
  <p>At this point, you can modify and save "web.xml" and the changes will immediately reflected in the Project Explorer.</p>
  
  <h2>3. Update Project Configuration</h2>
  
  <p>Have Maven update the project configuration by right-clicking the project, then selecting "Maven > Update Project Configuration...". (Usually you would change some build configuration in the POM before doing this, but the problem happens even if you just update right away.)</p>
  
  <h2>4. Web.xml isn't Read by Eclipse Anymore</h2>
  
  <p>Immediately after updating the project, everything looks fine. But the next time you save "web.xml" it is no longer properly displayed in the Project Explorer.</p>
  
  <p><img src="https://i.stack.imgur.com/GIo9x.png" alt="Project Explorer no longer reflects the contents of web.xml"></p>
  
  <p>It's really weird because even though "web.xml" isn't being displayed properly, Eclipse opens the file correctly when you double click on Deploymen Descriptor in the Project Explorer.</p>
  
  <p>The Project Explorer's inability to display the contents isn't the real problem. It just indicates that Eclipse can't see "web.xml" properly. The real problem is that using JBoss Tools, I can't redeploy the solution by pressing the "Touch Descriptors" button (the little hand) because it tells me the project doesn't have any descriptors to touch. It seems like Eclipse is unable to give a reference to "web.xml" to the JBoss plugin or something...</p>
  
  <p>Any ideas? :)</p>