Setting up a Subversion server

Next, we will create a repository for our projects, configure a user named svnpackt to have access to the repository, and import a dummy Maven project named packt-app into the repository. The process is the same for Linux and Windows.

Creating a Subversion repository

A Subversion repository is simply a directory in the filesystem containing repository configuration files and our project's files. To create a repository, open a terminal and enter the following command:

$ svnadmin create $PATH_REPO

Replace $PATH_REPO with a directory, for example, /home/dev/repo.

To verify the creation of the repository, navigate to $PATH_REPO. The following directories should have been created:

  • conf: Subversion configuration files
  • db: Project ...

Get Sonar Code Quality Testing Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.