Skip to content
Permalink
Browse files

install maven on workers

  • Loading branch information...
adriaanm committed Jan 27, 2015
1 parent c8018e2 commit 9fe08ed951fc364c8c7ab6de06d89233b22ca084
Showing with 20 additions and 2 deletions.
  1. +13 −0 files/default/epel-apache-maven.repo.erb
  2. +1 −1 recipes/_worker-init-debian.rb
  3. +6 −1 recipes/_worker-init-rhel.rb
@@ -0,0 +1,13 @@
[epel-apache-maven]
name=maven from apache foundation.
baseurl=http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-7Server/$basearch/
enabled=1
skip_if_unavailable=1
gpgcheck=0

[epel-apache-maven-source]
name=maven from apache foundation. - Source
baseurl=http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-7Server/SRPMS
enabled=0
skip_if_unavailable=1
gpgcheck=0
@@ -9,6 +9,6 @@

include_recipe "java"

%w{ant ant-contrib ant-optional}.each do |pkg|
%w{ant ant-contrib ant-optional maven}.each do |pkg|
package pkg
end
@@ -14,6 +14,11 @@
# JAVA_HOME=/usr/lib/jvm/java implies there must be a /usr/lib/jvm-exports/java, which is not created by the oracle rpm
directory '/usr/lib/jvm-exports/java'

%w{ant ant-contrib ant-junit}.each do |pkg|
cookbook_file "epel-apache-maven.repo.erb" do
owner 'root'
path "/etc/yum.repos.d/epel-apache-maven.repo"
end

%w{ant ant-contrib ant-junit apache-maven}.each do |pkg|
package pkg
end

0 comments on commit 9fe08ed

Please sign in to comment.
You can’t perform that action at this time.