SVN SERVER SETUP

svn-server-setup

SVN SERVER SETUP

Step to setting subversion server for administrator:-
1. Check to see if subversion is installed:-
# rpm -q subversion
subversion-1.4.4-1.fc7
or
#svn –version
svn, version 1.5.2 (r32768)
compiled Oct 4 2008, 02:48:59
If you see “package subversion not installed” you will need to install subversion before
proceeding. Otherwise you should see something similar to “ subversion-1.4.4-1.fc7”
2. Login in as root:-
3. Create a directory to hold all your repositories:-
#mkdir /home/svnserver/svn
4. Create a repository. In this example we will create a repository called “repositories”:-
# svnadmin create /home/svnserver/svn
5. list the repository files and directory :-
#ls
conf db format hooks locks README.txt
6. Create a SVN user
6.1 vi /home/svnserver/svn/conf/svnserve.conf
In that file add these three lines:
anon-access=write
auth-access=write
password-db=passwd
Note:- Do not leave space before this three lines.
6.2 Create a password file.
vi /home/svnserver/svn/conf/passwd
In that file add a line for your user:
# add users in the format : user = password
user = mypassword
7. Create a directory to hold all your project in repositories:-
# mkdir /home/svnserver/svn/myproject
8. Try importing source code into the repository. Change to a directory containing the files you want to
check in.
# svn -m “Intailly importing” import /home/svnproject/source/myproject file:///home/svnserver/svn/myproject
9. Start the SVN Server as Daemon:-
#svnserve -d
10. Try checking it out of the repository:- (Check out)
home/user/source# svn co svn://192.168.0.103/home/svnserver/svn/myproject
11. Try checking it in of the repository:- ( Check in)
#svn ci -m “log message” /home/user/source/myproject/

Release Artificats with Maven Release and Git Flow Plugins

artificats-with-maven-release-and-git-flow

There are various ways using you can release the artifacts.  There are two plugins which is being frequently used is…

  1. Maven Release Plugin
  2. Maven Git Flow Plugin

Maven Release Plugin
This plugin is used to release a project with Maven, saving a lot of repetitive, manual work. Releasing a project is made in two steps: prepare and perform.

Maven Git Flow Plugin
The Maven JGit-Flow Plugin is based on and is a replacement for the maven-release-plugin enabling support for git-flow style releases via maven.

Reference
http://george-stathis.com/2013/11/09/painless-maven-project-releases-with-maven-gitflow-plugin/
http://maven.apache.org/maven-release/maven-release-plugin/examples/prepare-release.html
http://stackoverflow.com/questions/4466714/how-to-customise-the-tag-format-of-the-maven-release-plugin
https://bitbucket.org/atlassian/jgit-flow/wiki/Home
http://maven.apache.org/maven-release/maven-release-plugin/examples/prepare-release.html#Overriding_the_default_tag_name_format
http://www.fiveminutes.eu/maven-release-plugin-8-tips-tricks/
https://bitbucket.org/atlassian/jgit-flow/wiki/Home.wiki#!getting-the-plugin
http://blogs.atlassian.com/2013/05/maven-git-flow-plugin-for-better-releases/