Friday, December 30, 2011

installing the SVN

Use the following site to install svn plug-in
Proxy setting in the windows
1.       Go to C:\Documents and Settings\user\Application data\subversion\
2.       Find server file
3.       Add the proxy setting
[global]
http-proxy-host = web-proxy.mycompany.com
http-proxy-port = 8080
http-proxy-username = <userID>
http-proxy-password = <password>


Installing and using the Maven

Follow the following steps to create the Maven
1.        Download the latest version of Maven from the following site

2.        Extract the downloaded zip file
3.        Create .bat file using the following line
a.        @SET MAVEN_ARGS=%*
b.       @SET JAVA_HOME=C:\HOMEWARE\sunjdk160_10
c.        @SET JAVA_CMD="%JAVA_HOME%\bin\java.exe"
d.       @SET M2_HOME=C:\HOMEWARE\mywork\apache-maven-3.0.3
e.        @SET CPATH=%M2_HOME%\boot\plexus-classworlds-2.4.jar
f.         %JAVA_CMD% -classpath %CPATH% -Dclassworlds.conf=%M2_HOME%\bin\m2.conf -Dmaven.home=%M2_HOME% org.codehaus.classworlds.Launcher %MAVEN_ARGS% -e
4.        Name this batch file as “mvn.bat”
5.        Then run the mvn –version for checking the installation
6.      Change the JAVA_HOME and M2_HOME path as per the installation of java and maven

Setting the repository
1.       Go to the path which is specified in the M2_HOME
2.       Then open the conf folder
3.       Find the setting.xml file
4.       Find the <localRepository /> tag
a.       Specify the repository  path as per the convince
                                                              i.      <localRepository>C:\HOMEWARE\maven-local-repo</localRepository>
5.       If you’re in the office
a.       find the available and accessible mirrors and fill in the  <mirror />
b.      configure all public repositories and plug-in repository in the <profile />
Using Maven
1.       Download a project from the one of the famous site
a.       svn checkout http://micrite.googlecode.com/svn/trunk/ micrite-read-only
2.       Extract the zip file in the c:\
3.       Copy our mvn.bat file in to the  project file and run the following commands
a.       mvn clean          
b.      mvn install
c.       mvn eclips:eclipse