Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Download and install SVNKit from http://product-dist.wso2.com/tools/svnkit-all-1.8.7.wso2v1.jar into the <PRODUCT_HOME>/repository/components/dropins folder.
  2. Download http://maven.wso2.org/nexus/content/groups/wso2-public/com/trilead/trilead-ssh2/1.0.0-build215/trilead-ssh2-1.0.0-build215.jar and copy it to the <PRODUCT_HOME>/repository/components/lib folder. This .jar file is necessary for the SVNKit to work as expected.
  3. In a console window, enter the following command to create a new repository: 
    svnadmin create <PathToRepository>/<RepoName> 


    For example: 
    svnadmin create ~/depsyncrepo
  4. Open <PathToRepository>/<RepoName>/conf/svnserve.conf and set following lines to configure authentication for the new repository.
    anon-access = none         (Specifies what kind of access anonymous users have; in this case, none)
    auth-access = write       (Specifies what authenticated users can do; in this case, they can write, which also includes reading) 
    password-db = passwd     (Specifies the source of authentication; in this case, the file named passwd, which resides in the same directory as svnserve.conf)

  5. Open <PathToRepository>/<RepoName>/conf/passwd and add the following line in the format of <username>:<password> to add a new user:
    repouser:repopassword

The SVN repository is now available with the user credentials you specified. If you want want to test and further configure the repository, see the following references:

...