Skip to content

Commit

Permalink
fix maven download url;move maven version to attr
Browse files Browse the repository at this point in the history
  • Loading branch information
loky9000 committed Jan 22, 2016
1 parent 1051512 commit b7b6963
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
default['cookbook-qubell-build']['dest_path'] = "/tmp"
default['cookbook-qubell-build']['dest_name'] = "ROOT"
default['cookbook-qubell-build']['target'] = "/tmp/mvn"
default['cookbook-qubell-build']['maven_version'] = "3.2.1"
default['cookbook-qubell-build']['artifacts'] = []
4 changes: 2 additions & 2 deletions metadata.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name "cookbook-qubell-build"
version "0.3.0"

depends "git", "2.7.1"
depends "git", "2.7.0"
depends "java", "1.11.7"
depends "yum", "2.3.1"
depends "apt", "2.3.9"
depends "apt", "2.7.0"
4 changes: 2 additions & 2 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
to "/usr/bin/mvn3"
end
when "rhel"
mvn_version = "3.2.1"
mvn_version = node['cookbook-qubell-build']['maven_version']
remote_file "/opt/apache-maven.tar.gz" do
source "http://mirror.olnevhost.net/pub/apache/maven/binaries/apache-maven-#{mvn_version}-bin.tar.gz"
source "http://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/#{mvn_version}/apache-maven-#{mvn_version}-bin.tar.gz"
end

bash "unpack apache-maven" do
Expand Down

0 comments on commit b7b6963

Please sign in to comment.