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 filesdb
: Project data files and revisionshooks
: Templates for useful automation commandslocks
: Logs of locked files, checked out and modified by developersformat
(file): Contains information about the repository's layoutREADME.txt
(file): Getting started...