Resource Type: maven
- Defined in:
- lib/puppet/type/maven.rb
- Providers:
-
mvn
Overview
Maven repository files.
Properties
-
ensure
(defaults to: present)
May be one of two values: ‘present’ or ‘latest’. When ‘present’ (the default) the specified maven artifact is downloaded when no file exists at ‘path’ (or ‘name’ if no path is specified.) This is approporate when the specified maven artifact refers to a released (non-SNAPSHOT) artifact. If ‘latest’ is specified and the value of version is ‘RELEASE’, ‘LATEST’, or a SNAPSHOT the repository is queried for the most recent version.
Supported values:- present
- latest
Parameters
-
artifactid
The Maven artifact id, ie. ‘maven-core’
-
classifier
The Maven artifact classifier, ie. ‘sources’
-
group
Group to run Maven as. Defaults to group of the user executing puppet.
-
groupid
The Maven arifact group id, ie. ‘org.apache.maven’
-
id
The Maven repository id, ie. ‘org.apache.maven:maven-core:jar:3.0.5’, ‘org.apache.maven:maven-core:jar:sources:3.0.5’
-
options
Other options to pass to mvn.
-
packaging
The Maven artifact packaging, ie. ‘jar’
-
path (namevar)
The destination path of the downloaded file.
-
pluginversion
Version of the dependency plugin to use.
-
provider
The specific backend to use for this ‘maven` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.
-
repoid
Id of the repository to use. Useful for mirroring, authentication,…
-
repos
Repositories to use for artifact downloading. Defaults to repo1.maven.apache.org/maven2
-
timeout
Download timeout.
-
user
User to run Maven as. Useful to share a local repo and settings.xml. Defaults to user executing puppet.
-
version
The Maven artifact version, ie. ‘3.0.5’