At school, teams develop their own modules and copy the work to the team lead. The team lead will organize the work. We all know that this has many drawbacks, poor control, and integration between modules is troublesome. The most common problem is package conflicts. When other modules need to call the methods in another module, errors may occur.
I used to only know how to use CVs or SVN version control software, but I don't know how to use it.
It took nearly a month to work out, and the project entered the coding stage. Due to the limited technical level of the company, many development environments should be built by ourselves, and of course the svn environment should also be set up.
Therefore, I worked with Chenchao to find a document for research. After one day, I finally set up the team's SVN environment and tested the functions used to share them with you, I hope you can point out something wrong.
Our development environment is JDK 6.0 + Tomcat 6.0 + myeclipse 6.5.
Steps:
Because SVN is divided into clients and servers, a team or a company's technical development team should have at least one SVN server, and a corresponding resource library should be established on the server, such other team members (clients ), you can use the svn client to use the server's resource library. Of course, this includes, project check-out, upload, and other operations. The server administrator can determine the permissions of different users. This introduction will be detailed below.
1. Install the server:
In the project, my machine is used as a server in development, so I am responsible for server management.
First, download an SVN server (plug-in) from the Internet. Some of these are plug-ins integrated with the IDE environment, and some are installed on dedicated servers.Program. Here I chose a separate installer VisualSVN-Server-1.6.3.msi, which can be downloaded online.
Click the downloaded installer to install it. Select the next step and the installation path. Note: The installation path will be C:/repositories by default. After your server is installed, all the resources you want to create will be saved in this directory, in fact, it is easy to remember the meaning of the repositories English repository.
After the installation is selected, the installation is successful.
2. Open the Server Management page,
Right-click repositores to create the svn resource library
You will be asked to enter the name of the resource library. Note: You should not confirm it so quickly here. You can first check the URL address in the input box, which will be used below.
Create a corresponding user and group, that is, users and groups. You can add users or groups to the created resources.
The server configuration is OK.
You can take a look at the creation of users and groups. It is easy to understand English.
It's easy, not as complicated as you think.
3. Configure the svn environment in myeclipse
After the server is installed, configure the resource library on the server.
This is because it is to be developed in the myeclipse environment. Therefore, you must first add the svn environment configuration for myeclipse.
Click Help> Software Updates> Find and install --> search for new features to intall In the toolbar above myeclipse6.5 To Go To The Install page.
Select new remote site. In the displayed dialog box, enter the name and URL,
This name can be customized and mainly used for myeclipse management,
The URL is generally.
After filling in the above content, finish it, and myeclipse will automatically restart. After the restart, the svn environment in myeclipse will be set up.
Click window --> show View --> Other In the toolbar above myeclipse6.5 to open the svn repository view. This will go to the svn repository page in myeclipse. You can also switch to the svn repository view directly in the quick switch of the view. (If you do not configure the above environment for myeclipse, check whether this option is available)
Right-click the blank area in the "SVN repository" view and click "new ".
You will be asked to enter your url: format:
Http: // pc-200802191563: 8443/SVN/Resoure/
Here we will explain,The pc-200802191563 is the host name of the server,
8843: installed for youVisualSVN-Server-1.6.3.msi default port number,
SVN default, no need to worry
Resource is the name of the resource library you created earlier.
Next, you will be asked to enter the username and password you Just configured on the server.
If you enter it, you will find the resource library configured on your server in the view,
Click the user and password to enter the resource library.
The project is not added to the resource library. Well, let's talk about it later.