Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Home

uggedal edited this page · 2 revisions
Clone this wiki locally

Forenkling av maven eksempel

class maven {
  exec { "install maven":
    command => "wget http://mirrorservice.nomedia.no/apache.org//maven/binaries/apache-maven-3.0.3-bin.tar.gz -O - | tar xz",
    cwd => "/opt",
    creates => "/opt/apache-maven-3.0.3/bin/mvn",
  }

  file { "/usr/bin/mvn":
    ensure => link,
    target => "/opt/apache-maven-3.0.3/bin/mvn",
    require => Exec["install maven"],
  }
}
Something went wrong with that request. Please try again.