Import projects from SVN to eclipse

Source: Internet
Author: User

The project is not going to run very soon, so I've summed up the project from SVN to eclipse:

1. Right-click the project, tap properties, find project facets, select dynamic Web Module, Java, javaScript, click OK.

2. Right-click the project, tap build Path, click Add Libraries in Libraries, click Server Runtime, select your desired tomcat.

3. If the item has a red exclamation point, click Build Path, click Add Libraries in Libraries, and click

JRE system Library, select the JRE system you want.
There are two steps to follow:

A solution:
The file Server.xml under 4.servers requires a custom load project.
<context docbase= "file path \ Project name \webroot" path= "project name" reloadable= "true"/>

<context docbase= "E:\jh\BCIMSUI2\src\main\webapp" path= "/bcimsui2" reloadable= "true"/>

5.Tomcat No need to add items to launch directly. If you start the Tomcat discovery item is not loaded, or an error
Could not open ServletContext resource[/web-inf/applicationcontext.xml], you can put other people (or their own before) the project \webroot\ The classes file under Web-inf is copied to the Webroot\web-inf under the project. Restart Tomcat.

Another solution:
4. Find the project path, open the project name \.settings folder under the Org.eclipse.wst.common.component file, modify <wb-resource> inside the source-path= "/ WebRoot ". and delete the WebContent folder under the project path.
5. Add the project to Tomcat and start.


6. If the new changes are not compiled after the fifth step, and the clean workspace or project building workspace error
An internal error occurred during: "Building Workspace". Java Heap Space,
At this point, delete the copy of the classes file, and modify the Eclipse.ini file under Eclipse installation,
Replace the last two lines with:-xms512m,-xmx1024m.

7. Import the project from the external new Find Java project find the user Defalt localtion Select a project click in the output path

Select to Webapp/webinfo and add classes;

8. Add Publish directory Java BuildPath source Add fold webapp do not add

8. Then add the build path plus fold;


10. Add Tomcat Windows Preferences service runtimeeviroment add Select Path

11. Right click on the project Selection Porperties resource under Deployment Assembly see if all add WebApp directories

This is the case in my company, it is possible to configure different methods of the project is not the same, this is for reference only. Please leave a message if you have any questions.

Import projects from SVN to eclipse

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.