Skip to content
Browse files

Add Ant and Maven cookbooks to CI env. Yes, for JVM languages support…

… on Travis.
  • Loading branch information...
1 parent f5a3815 commit b1b13cdb21dcd9826836bccb1e621c9e6e4c46d4 @michaelklishin michaelklishin committed Jul 31, 2011
View
51 vagrant_base/ant/README.md
@@ -0,0 +1,51 @@
+Description
+===========
+
+Installs and configures Apache Ant & Ivy
+
+Requirements
+============
+
+Platform:
+
+* Debian, Ubuntu, CentOS, Red Hat, Fedora
+
+The following Opscode cookbooks are dependencies:
+
+* java
+* jpackage
+
+Attributes
+==========
+
+Usage
+=====
+
+Simply include the recipe where you want Apache Ant & Ivy installed.
+
+TODO
+====
+
+* plugin support
+* global config template - /etc/ant/ant.conf
+
+License and Author
+==================
+
+Author:: Seth Chisamore (<schisamo@opscode.com>)
+
+Copyright 2010, Opscode, Inc.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+
View
14 vagrant_base/ant/metadata.rb
@@ -0,0 +1,14 @@
+maintainer "Opscode, Inc."
+maintainer_email "cookbooks@opscode.com"
+license "Apache 2.0"
+description "Installs/Configures ant"
+long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
+version "0.10.1"
+%w{ java jpackage }.each do |cb|
+ depends cb
+end
+%w{ debian ubuntu centos redhat fedora }.each do |os|
+ supports os
+end
+
+recipe "ant::default", "Installs and configures Ant"
View
41 vagrant_base/ant/recipes/default.rb
@@ -0,0 +1,41 @@
+#
+# Cookbook Name:: ant
+# Recipe:: default
+#
+# Copyright 2010, Opscode, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+include_recipe "java"
+
+case node.platform
+when "centos","redhat","fedora"
+ include_recipe "jpackage"
+end
+
+ant_pkgs = value_for_platform(
+ ["debian","ubuntu",] => {
+ "default" => ["ant","ant-contrib","ivy"]
+ },
+ ["centos","redhat","fedora" ] => {
+ "default" => ["ant","ant-contrib","ivy"]
+ },
+ "default" => ["ant","ant-contrib","ivy"]
+)
+
+ant_pkgs.each do |pkg|
+ package pkg do
+ action :install
+ end
+end
View
50 vagrant_base/maven/README.md
@@ -0,0 +1,50 @@
+Description
+===========
+
+Installs and configures Apache Maven
+
+Requirements
+============
+
+Platform:
+
+* Debian, Ubuntu, CentOS, Red Hat, Fedora
+
+The following Opscode cookbooks are dependencies:
+
+* java
+* jpackage
+
+Attributes
+==========
+
+Usage
+=====
+
+Simply include the recipe where you want Apache Maven installed.
+
+TODO
+====
+
+* plugin support
+* global config template - %M2_HOME%/conf/settings.xml
+
+License and Author
+==================
+
+Author:: Seth Chisamore (<schisamo@opscode.com>)
+
+Copyright 2010, Opscode, Inc.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
View
14 vagrant_base/maven/metadata.rb
@@ -0,0 +1,14 @@
+maintainer "Opscode, Inc."
+maintainer_email "cookbooks@opscode.com"
+license "Apache 2.0"
+description "Installs/Configures maven"
+long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
+version "0.10.0"
+
+%w{ java jpackage }.each do |cb|
+ depends cb
+end
+
+%w{ debian ubuntu centos redhat fedora }.each do |os|
+ supports os
+end
View
29 vagrant_base/maven/recipes/default.rb
@@ -0,0 +1,29 @@
+#
+# Cookbook Name:: maven
+# Recipe:: default
+#
+# Copyright 2010, Opscode, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+include_recipe "java"
+
+case node.platform
+when "redhat", "centos", "fedora"
+ include_recipe "jpackage"
+end
+
+package "maven2" do
+ action :install
+end

0 comments on commit b1b13cd

Please sign in to comment.
Something went wrong with that request. Please try again.