Giter Club home page Giter Club logo

maven's Introduction

Description

Install and configure maven2 and maven3 from the binaries provided by the maven project

Has maven LWRP for pulling a maven artifact from a maven repository and placing it in an arbitrary location.

Has maven_repo LWRP that allows you to add your custom repo to the list of repos searched for artifacts

Requirements

Platform:

  • Debian, Ubuntu, CentOS, Red Hat, Fedora

The following Opscode cookbooks are dependencies:

  • java - this cookbook not only depends on the java virtual machine but it also depends on the java_ark LWRP present in the java cookbooks
  • ark - used to unpack the maven tarball

Attributes

  • default['maven']['version'] defaults to 2
  • default['maven']['m2_home'] defaults to '/usr/local/maven/'
  • default['maven']['m2_download_url'] the download url for maven2
  • default['maven']['m2_checksum'] the checksum, which you will have to recalculate if you change the download url
  • default['maven']['m3_download_url'] download url for maven3
  • default['maven']['m3_checksum'] the checksum, which you will have to recalculate if you change the download url

Usage

Simply include the recipe where you want Apache Maven installed.

Providers/Resources

maven

  • artifact_id: if this is not specified, the resource's name is used
  • group_id: group_id for the artifact
  • version: version of the artifact
  • dest: the destination folder for the jar and its dependencies
  • packaging: defaults to 'jar'
  • repositories: array of maven repositories to use, defaults to ["http://repo1.maven.apache.org/maven2"]
  • owner: the owner of the resulting file, default is root
  • mode: integer value for file permissions, default is 0644

Examples

maven "mysql-connector-java" do
  group_id "mysql"
  version "5.1.19"
  dest "/usr/local/tomcat/lib/"
end

maven_repo

TODO, coming soon

License and Author

Author:: Scott Chisamore ([email protected]) Author:: Bryan W. Berry ([email protected])

Copyright 2010, Opscode

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.

maven's People

Contributors

bryanwb avatar nathenharvey avatar schisamo avatar

Stargazers

Andrea Campi avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.