Check out maven project from svn in Eclipse

Many beginners are confused. The directory structure seen after checking out the maven project from svn in Eclipse is not the maven directory structure, so how should the project be converted into a maven project? Specific steps are as follows:

Select svn-->Check out the project from svn, then enter the svn address, and follow the prompts to check out the maven project from svn step by step

After the checkout is successful, the maven project just checked out will be displayed in the project explorer. But at this time, the directory structure of the project is not the directory structure of the maven project, and needs to be converted into the directory structure of the maven project.

There are two ways to convert to a maven project at this point.

(1) Click the project directly, right-click to select configure, and select convert to maven project


(2) Delete the project in the project explorer, and re-import the maven project from the workspace.

The specific operations are as follows:

1. First delete the project just checked out from svn (don't delete the corresponding project in the workspace, this operation just deletes the display of the project from the project explorer)

      Right-click and select delete, and select ok (note that delete project contents on disk in the pop-up box cannot be selected, otherwise the project just checked out will be deleted from the workspace folder)

2, and then re-import the maven project.

    Right-click in the blank area of ​​the project explorer and select import, select import maven, select extending maven projects, select the maven project just checked out in the workspace, and click OK to import into Eclipse.


Finally, after the conversion is successful, an M icon with a yellow svn icon will appear on the left side of the project. At this point, the maven project has been successfully checked out from svn.


Reprinted from: https://jingyan.baidu.com/article/a948d6510e1af00a2dcd2ec2.html

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326764741&siteId=291194637