Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 688
CHiRo79 Avatar asked Aug 06 '10 10:08

CHiRo79


People also ask

How do I change the WebContent folder in eclipse?

Right click your dynamic web project and open "Properties". Find Deployment Assembly and you should be able to set context paths from there. Save this answer.

What is web content folder in eclipse?

This Java classes folder is created while importing a WAR file. You can also use the Java Build Path properties page to create Java classes folders. WebContent. Contains all of the web resources. For example, the HTML files, JSP files, and image files that are used to create a web application.


2 Answers

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!

like image 98
CHiRo79 Avatar answered Sep 26 '22 06:09

CHiRo79


Give Preference to eclipse GUI!

if don't appear to you see this

Unable to find Deployment assembly Eclipse Juno

enter image description here

like image 28
elciospy Avatar answered Sep 26 '22 06:09

elciospy