Puppet Class: maven

Defined in:
modules/maven/manifests/init.pp

Overview

Class maven

Install maven and sets it up with default mirroring to archiva.wikimedia.org



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'modules/maven/manifests/init.pp', line 4

class maven {
    if !defined(Package['maven']) {
        package { 'maven':
            ensure => present,
        }
    }

    file { '/etc/maven/settings.xml':
        ensure  => present,
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
        source  => 'puppet:///modules/maven/settings.xml',
        require => Package['maven'],
    }

    # Install ivysettings uses archiva.wikimedia.org repositories to resolve dependencies.
    # This can be used with spark jobs to resolve dependencies at runtime.
    # While perhaps 'ivy' things don't belong in a WMF maven model, this is the easiest
    # place to store this information.
    # See: https://phabricator.wikimedia.org/T216093
    file { '/etc/maven/ivysettings.xml':
        ensure  => present,
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
        source  => 'puppet:///modules/maven/ivysettings.xml',
        require => Package['maven'],
    }
}