Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'COOK-386'

* COOK-386:
  added maven cookbook
  • Loading branch information...
commit 9db8e4528b22a6c12d0b1ad579c5935bb19e8bca 2 parents 4ad26a2 + 7b7499b
@schisamo schisamo authored
View
50 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
50 maven/metadata.json
@@ -0,0 +1,50 @@
+{
+ "providing": {
+ },
+ "maintainer": "Opscode, Inc.",
+ "replacing": {
+ },
+ "description": "Installs/Configures maven",
+ "maintainer_email": "cookbooks@opscode.com",
+ "groupings": {
+ },
+ "attributes": {
+ },
+ "recommendations": {
+ },
+ "dependencies": {
+ "java": [
+
+ ],
+ "jpackage": [
+
+ ]
+ },
+ "suggestions": {
+ },
+ "long_description": "Description\n===========\n\nInstalls and configures Apache Maven\n\nRequirements\n============\n\nPlatform: \n\n* Debian, Ubuntu, CentOS, Red Hat, Fedora\n\nThe following Opscode cookbooks are dependencies:\n\n* java\n* jpackage\n\nAttributes\n==========\n\nUsage\n=====\n\nSimply include the recipe where you want Apache Maven installed.\n\nTODO\n====\n\n* plugin support\n* global config template - %M2_HOME%/conf/settings.xml\n\nLicense and Author\n==================\n\nAuthor:: Seth Chisamore (<schisamo@opscode.com>)\n\nCopyright 2010, Opscode, Inc.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n",
+ "platforms": {
+ "debian": [
+
+ ],
+ "fedora": [
+
+ ],
+ "centos": [
+
+ ],
+ "ubuntu": [
+
+ ],
+ "redhat": [
+
+ ]
+ },
+ "name": "maven",
+ "version": "0.0.1",
+ "conflicting": {
+ },
+ "license": "Apache 2.0",
+ "recipes": {
+ }
+}
View
14 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.0.1"
+
+%w{ java jpackage }.each do |cb|
+ depends cb
+end
+
+%w{ debian ubuntu centos redhat fedora }.each do |os|
+ supports os
+end
View
29 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
Please sign in to comment.
Something went wrong with that request. Please try again.