Skip to content
This repository was archived by the owner on Jun 2, 2019. It is now read-only.

Commit 7f6e7d9

Browse files
committed
Merge pull request #51 from tstibbs/batch_mode
Run maven in batch mode to prevent log spam
2 parents f4d8e56 + 29b38ec commit 7f6e7d9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/puppet/provider/maven/mvn.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def download(dest, latest, offline = false)
122122
debug "mvn downloading (if needed) repo file #{msg} to #{dest} from #{repos.join(', ')}"
123123
end
124124

125-
command = ["mvn org.apache.maven.plugins:maven-dependency-plugin:#{plugin_version}:get #{command_string} -DremoteRepositories=#{repos.join(',')} -Ddest=#{dest} -Dtransitive=false -Ppuppet-maven #{options}"]
125+
command = ["mvn -B org.apache.maven.plugins:maven-dependency-plugin:#{plugin_version}:get #{command_string} -DremoteRepositories=#{repos.join(',')} -Ddest=#{dest} -Dtransitive=false -Ppuppet-maven #{options}"]
126126

127127
timeout = @resource[:timeout].nil? ? 0 : @resource[:timeout].to_i
128128
output = nil

spec/unit/puppet/provider/maven/mvn_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@
259259
end
260260

261261
it 'should default to plugin version 2.4' do
262-
should match /mvn org\.apache\.maven\.plugins:maven-dependency-plugin:2\.4:get/
262+
should match /mvn -B org\.apache\.maven\.plugins:maven-dependency-plugin:2\.4:get/
263263
end
264264

265265
it 'should pass no repoId' do
@@ -400,7 +400,7 @@
400400
let(:params) { { pluginversion: '2.5' } }
401401

402402
it 'should pass provided version' do
403-
should match /mvn org\.apache\.maven\.plugins:maven-dependency-plugin:2\.5:get/
403+
should match /mvn -B org\.apache\.maven\.plugins:maven-dependency-plugin:2\.5:get/
404404
end
405405
end
406406

0 commit comments

Comments
 (0)