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

CHiRo79 picture CHiRo79 · Aug 6, 2010 · Viewed 20.1k times · Source

I need to change the default Eclipse WTP "Web Resources" dynamic folder. Currently it points to WebContent, and I need to point to src\main\webapp.

Answer

CHiRo79 picture CHiRo79 · Aug 9, 2010

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!