Skip to content

Commit

Permalink
add code to install custom maven package
Browse files Browse the repository at this point in the history
  • Loading branch information
mpapis committed Sep 15, 2013
1 parent c013af9 commit 6940566
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/db
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,4 @@ epel6_key=https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6
epel6_rpm=https://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
epel5_key=https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-5
epel5_rpm=https://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
maven_version=3.1.0
1 change: 1 addition & 0 deletions config/md5
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
apache-maven-3.1.0-bin.tar.gz=e251cf1a584b4a5f13ae118abaacd08a
curl-7.19.7.tar.gz=ecb2e37e45c9933e2a963cabe03670ab
GemStone-27184.Darwin-i386.tar.gz=292b3b169656a8451cfa19c228828e5a
GemStone-27184.Linux-x86_64.tar.gz=cfabd4dd73d2656fc10243e35dd7452b
Expand Down
14 changes: 14 additions & 0 deletions scripts/functions/build_requirements_helpers
Original file line number Diff line number Diff line change
Expand Up @@ -212,3 +212,17 @@ is_jruby_post17()
esac
true # for OSX
}

requirements_install_maven()
{
typeset maven_version maven_file maven_url
maven_version="$(__rvm_db "maven_version")"
maven_file="apache-maven-${maven_version}-bin.tar.gz"
maven_url="http://www.apache.org/dist/maven/maven-${maven_version%%.*}/${maven_version}/binaries/${maven_file}"

mkdir -p "${rvm_path}/java/" &&
"${rvm_scripts_path}/fetch" "${maven_url}" &&
__rvm_package_extract "${rvm_archives_path}/${maven_file}" "${rvm_path}/java/"
ln -s "${rvm_path}/java/apache-maven-${maven_version}/bin"/mvn "${rvm_bin_path}"/mvn ||
return $?
}

0 comments on commit 6940566

Please sign in to comment.