Uploading and checking out Maven project in SVN

Time:2019-10-25

Preface

In enterprise development, SVN is often used to control code version for us, and Maven is often used to manage projects. Next, I’ll show you how to upload Maven projects to SVN and check them out from SVN.

Upload to SVN

There is no difference between Maven project upload and normal project upload. Here is a brief introduction:

  • Right click Project; select team; select share project;

Uploading and checking out Maven project in SVN

  • Select SVN for warehouse type and click Next

Uploading and checking out Maven project in SVN

  • Select the repository you want to share. Click Next

Uploading and checking out Maven project in SVN

  • Select to use the specified module name. Then select the location to upload in the browse. Then click finish.
  • Click Finish to enter the synchronization view interface. This interface requires us to choose which content resources to upload to SVN. We will select files other than. Classpath. Project. Setting. GIT and right-click to select submit (1. Select files that do not need to be submitted and right-click to add them to ignore or set them in window – > preference – > SVN).

detection

  • The difference between checking out Maven project and other projects is that it needs to be converted to Maven project after checking out.

Uploading and checking out Maven project in SVN

  • Select the Maven project to export in the SVN repository. Then right-click to select check out as.

Uploading and checking out Maven project in SVN

  • Then select check out as an item in the workspace (be careful not to select it incorrectly). Click finish.
  • When the project is checked out, it is not a maven project. Need to convert to Maven project.
  • Select the project and right-click to select convert to Maven project under configure.

Uploading and checking out Maven project in SVN

If it is an aggregate Maven project, we only upload the total aggregation module when uploading. When we check out the project, we can delete it first, but remember not to check delete project contents on disk. Then we can import the Maven project.