###
# to set java environment, use in /home/dspace/.bash_profile
###
export JAVA_HOME='/usr/lib/jvm/java'
export JRE_HOME="/usr/lib/jvm/jre"
export JAVA_OPTS="-Xmx1G -Xms64m -Dfile.encoding=UTF-8"
###
# to install apache-maven, get from http://maven.apache.org/
###
cd [other-apps]
# download, verify and unpack, e.g. apache-maven-2.2.1
ln -s apache-maven-2.2.1 apache-maven
cd /home/dspace/bin
ln -s [other-apps]/apache-maven/bin/mvn mvn
# to confirm availability
mvn -h
###
# to install proxy settings for apache-maven, use /home/dspace/.m2/settings.xml
###
<settings>
<proxies>
<proxy>
<active>true</active>
<protocol>http</protocol>
<host>[your_proxy_server]</host>
<port>[port_number]</port>
</proxy>
</proxies>
</settings>
###
# to install apache-ant, get from http://ant.apache.org/
###
cd [other-apps]
# download, verify and unpack, e.g. apache-ant-1.7.1
ln -s apache-ant-1.7.1 apache-ant
cd /home/dspace/bin
ln -s [other-apps]/apache-ant/bin/ant ant
# to confirm availability
ant -h
|