Is Maven installed?

asked 2017-05-07 00:14:41 -0600

Sourav gravatar image

updated 2017-05-07 19:29:13 -0600

Hi there,

I am trying to download war files from my maven repository. It is hosted in

$repo = { id => "myrepo", username => "admin", password => "password", url => "", }

maven { "/tmp/myfile.war": groupid => "", artifactid => "assess-maven", version => "latest", packaging => "war", repos => $repo, ensure => "latest", }

The error which I am seeing -

Error: mvn returned 1: Is Maven installed? Error: /Stage[main]/Main/Node[]/Maven[/temp/myfile.war]/ensure: change from absent to latest failed: mvn returned 1: Is Maven installed?

I am probably doing it wrong. Can anyone please take a look?


edit retag flag offensive close merge delete


What module are you using for the 'maven' class? Does that have an expected path/configuration/installation for ensuring that it knows how to find maven if it's installed, or a way to install it for you? Without knowing more about your modules, we can't help much.

DarylW gravatar imageDarylW ( 2017-05-07 22:29:53 -0600 )edit

Hi Daryl, I am using puppet-maven -

Sourav gravatar imageSourav ( 2017-05-07 22:40:23 -0600 )edit

Could you please post the debug output of your agent run? It looks to be falling over about line 137 of but a debug would help see why.

ross.murray gravatar imageross.murray ( 2017-05-09 02:39:45 -0600 )edit