title: Updating .settings/org.eclipse.wst.common.component file in a maven project
body: <p>I working with a maven project in eclipse and am having trouble with getting the deployment to work without some manual editing of xml files.</p>
  
  <p>When I build the project through maven I get a org.eclipse.wst.common.component xml file in my .settings folder. The file looks like the following:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project-modules id="moduleCoreId" project-version="1.5.0"&gt;
      &lt;wb-module deploy-name="ins-web"&gt;           
          &lt;wb-resource deploy-path="/" source-path="/WebContent"/&gt;
          &lt;wb-resource deploy-path="/WEB-INF/classes" source-path="/src/java"/&gt;
          &lt;property name="context-root" value="ins-web"/&gt;
          &lt;property name="java-output-path"/&gt;
      &lt;/wb-module&gt;
  &lt;/project-modules&gt;
  </code></pre>
  
  <p>The following line is causing the problem:</p>
  
  <pre><code>&lt;wb-resource deploy-path="/" source-path="/WebContent"/&gt;
  </code></pre>
  
  <p>Its looking to deploy everything below the WebContent folder when really it should be looking in src/webapp. The line should therefore look like this:</p>
  
  <pre><code>&lt;wb-resource deploy-path="/" source-path="/src/webapp"/&gt;
  </code></pre>
  
  <p>If I change it manually then it all works fine but I'd like to know if there is a way to avoid manually changing the file to make the build process easier for other people on my team.</p>