SVN2Git and Nexus deployment

SVN2Git
1)Check if Ruby is installed
ruby -v
2) Check if git is installed
git -help
3)git svn
4) install svn2git using below command
sudo gem install svn2git
To get author name from svn
time svn log -q svn repo url| awk -F '|' '/^r/ {sub("^ ", "", $2); sub(" $", "", $2); print $2" = "$2" <"$2"@domain.com>"}' | sort -u > ~/users.txt
Nexus deployment
  1. To deploy jar
    mvn -e deploy:deploy-file -DgroupId=packagename -DartifactId=artifactname -Dversion=version -DgeneratePom=true -Dpackaging=jar -DrepositoryId=nexus -Durl=nexus_url -Dfile=path of jar file from local system
  2. To deploy tar
    mvn -e deploy:deploy-file -DgroupId=packagename -DartifactId=artifactname -Dversion=version -DgeneratePom=true -Dpackaging=tar.gz -DrepositoryId=nexus -Durl=nexus url -Dfile=path of tar file from local system
  3. mvn -e deploy:deploy-file -DgroupId=packagename -DartifactId=artifactname -Dversion=version -DgeneratePom=true -Dpackaging=tar.gz -DrepositoryId=nexus -Durl=nexus url -Dfile=path of tar file from local system
  4. To deploy war
    mvn -e deploy:deploy-file -DgroupId=packagename -DartifactId=artifactname -Dversion=version -DgeneratePom=true -Dpackaging=war -DrepositoryId=nexus -Durl=nexus url -Dfile=path of war file from local system
Below set up in setting.xml in ~/.m2 folder
<server> <id>nexus</id> <username>username</username> <password>password</password> </server>

No comments:

Post a Comment