table of Contents
0. a new warehouse in svn server
1. Create mavenProject: "svnTest-parent" pom
2. Create mavenProject: "svnTest-Tools" jar
3. Create mavenProject: "svnTest-manager" pom
4. Create maven Module: "svnTest-dao" jar
5. Create maven Module: "svnTest-service" jar
6. Create maven Module: "svnTest-web" war
11. In svn repository to see the deployed projects
12. If the project is accidentally deleted, can be detected
First, when learning this one, you must first have a foundation in eclipse using the svn: https://blog.csdn.net/qq_40323256/article/details/91948883
0. a new warehouse in svn server
Into the bin file in the installation directory of the SVN server folder, double-click VisualAVN Server.msc window to pop up VisualAVN Server
Create a new warehouse, right [Repositories] - [Create New Repository ...]
Before you create a maven project, the first integrated look at its environment, Reference: https://blog.csdn.net/qq_40323256/article/details/90140747
1. Create mavenProject: " svnTest-parent " POM
2. Create mavenProject: " svnTest-Tools " JAR
3. Create mavenProject: " svnTest-Manager " POM
4. Create Module Maven: " svnTest-DAO " JAR
5. Create Module Maven: " svnTest-Service " JAR
.
6. Create Module Maven: " svnTest-Web " the WAR
This error is simple to resolve, add a web.xml on it, right [svnTest-web] - [javeEE tools] - [generate deployment descriptor stub], you can see not being given, as follows:
7. Directory display
8. Right [svnTest-parent Project] - [team] - [share project ...] - [svn]
Then submit
There are some items may not be submitted after submission, because there is a conflict, this time directly to update, you can submit again
9. Right [svnTest-Tools project] - [team] - [share project ...] - [svn]
Each time .settings and other documents to be manually ignore a lot of trouble, so come a little faster method to open the [window] - [preference]
10.右键【svnTest-manager项目】-【team】-【share project...】-【svn】
target目录的要忽略,方法同上:【window】-【preference】
11.在svn资源库中查看部署好的项目
打开svn资源库:【window】-【show view】-【other...】-【SVN】-“SVN资源库”
12.如果项目不小心被删除了,可以进行检出
检出操作:
但是我们如何将svnTest-dao,svnTest-service,svnTest-web的目录放在和svnTest-manager同级的目录呢?
直接在空白处右键【import】-【maven】-【existing maven projects】