How to change default Eclipse WTP "Web Resources" dynamic folder

I prefer the following solution, as the configuration is then saved in the .project file and also all files are kept visible in the Eclipse Project Explorer.

Create a Linked Folder called WebContent pointing to /src/main/webapp:

Right click project > New > Folder. Folder name: WebContent. Advanced > Link to alternate location (Linked Folder): PROJECT_LOC/src/main/webapp.


Give Preference to eclipse GUI!

if don't appear to you see this

Unable to find Deployment assembly Eclipse Juno

enter image description here


  1. Disable "Dynamic Web Module" project nature, click "Apply" button
  2. Enable previous option checkbox, notice "Feather configuration available..." at the bottom.
  3. Click "Feather configuration available..." link and change directory
  4. Click "Apply" button

I found the solution: Under .settings folder in your project's folder, there is a file named "org.eclipse.wst.common.component", inside it change the line <wb-resource deploy-path="/" source-path="/WebContent"/> with <wb-resource deploy-path="/" source-path="/src/main/webapp"/>.

That's all!