Changes between Version 7 and Version 8 of centosSetup

Show
Ignore:
Timestamp:
04/17/09 16:22:49 (10 years ago)
Author:
dee (IP: 152.54.6.155)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • centosSetup

    v7 v8  
    5050=== Switch to Java 1.5.x === 
    5151  ''alternatives --config java'' - Choose the '''jre-1.5.0-sun''' version of java. 
     52 
     53  add ''export JAVA_HOME=/usr/lib/jvm/java-1.5.0'' to your shell initialization such as '''~/.bash_profile'''. 
    5254=== Upgrade Maven and Configure with alternatives === 
    5355  In a scratch directory retrieve the 2.0.10 version of maven ''wget http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-2.0.10-bin.tar.gz'' 
     
    6264alternatives --config maven (choose the 2.0.10 version) 
    6365}}} 
     66  Modify the script at '''/usr/bin/mvn''' to support alternatives by editing it. The updated version looks like this: 
     67{{{ 
     68#!/bin/sh 
     69if [ -f /usr/share/java-utils/java-functions ] ; then 
     70  . /usr/share/java-utils/java-functions 
     71  set_jvm 
     72  set_javacmd 
     73fi 
     74 
     75# export M2_HOME=/usr/share/maven2 
     76export M2_HOME=/usr/share/maven 
     77echo $JAVA_HOME 
     78export JAVA_HOME; $M2_HOME/bin/mvn $@ 
     79}}} 
     80  Once JAVA_HOME is set correctly ''mvn -version'' should report '''Maven version: 2.0.10'''.