Prepare wamp2 svn-1.4.6, TortoiseSVN-1.4.8, LanguagePack-1.4.8.12137-win32-zh_CN.exe
1. Install wamp2
2. Install TortoiseSVN-1.4.8, restart and install the Chinese package LanguagePack-1.4.8.12137-win32-zh_CN.exe
3. Create a svn folder on the D drive (the location of the svn folder can be arbitrary, not necessarily the D drive), create a folder in it www, right-click to create a repository
4. Unzip svn-win32-1.4.6.zip to C:svn-1.4.6, copy intl3_svn.dll, libdb44.dll to Apache’s bin directory;
Copy mod_authz_svn.so, mod_dav_svn.so to Apache’s modules directory
5. Modify apache httpd.conf
Remove # to turn on the blocking of DAV, the content is as follows:
LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
Add two more lines below:
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
6. Create user verification password
Enter dos and go to the bin directory of apache (several common dos commands: cd ../.. is to return to the first two levels of directory dir is the display directory c:>f: is to enter the f drive
copy passwd d: Copy the password to the D drive)
htpasswd -c passwd admin
Among them, admin is the only user myself. After entering the password twice, the passwd file is generated.
Copy the password to the D drive copy passwd d:
Change D drive svn/www/conf/passwd
### This file is an example password file for svnserve.
### Its format is similar to that of svnserve.conf. As shown in the
### example below it contains one section labeled [users].
### The name and password for each user follow, one account per line.
[users]
# harry = harryssecret
# sally = sallyssecret
admin = 123
Change D drive svn/www/conf/authz
### This file is an example authorization file for svnserve.
### Its format is identical to that of mod_authz_svn authorization
### files.
### As shown below each section defines authorizations for the path and
### (optional) repository specified by the section name.
### The authorizations follow. An authorization line can refer to a
### single user, to a group of users defined in a special [groups]
### section, or to anyone using the * wildcard. Each definition can
### grant read (r) access, read-write (rw) access, or no access
### ().
[groups]
# harry_and_sally = harry,sally
group_admin = admin
[/]
@group_admin = rw
# [/foo/bar]
# harry = rw
# * =
# [repository:/baz/fuz]
# @harry_and_sally = rw
# * = r
8. Add the following content at the end of httpd.conf
DAV svn
SVNParentPath D:SVN
AuthType Basic
AuthName "Subversion repositories"
AuthUserFile D:passwd
#AuthzSVNAccessFile D:svnaccessfile
Require valid-user
9. Restart the wamp2 service. Type http://localhost/svn/www in the browser to test whether the svn service is successfully configured. ,
Start the svn service and enter the svn bin directory and run SVNService -install -d -r
10. Open Eclipse and install the Subeclipse svn plug-in.
Help->Software Updates->Find and Install->Search for new features to install->Next->New Remote Site, enter
Name: Subclipse
URL: http://subclipse.tigris.org/update
Click Finish, then download, then install it all the way, and restart Eclipse
11. Configure Eclipse svn, Windows->Preferences->Team->SVN, and set the SVN interface to JavaSVN
12. Create a new Java project, then right-click Team->Share Project->SVN
URL: http://localhost/svn/repos
Enter username and password
o