lib/ruby_maven.rb in ruby-maven-3.3.9 vs lib/ruby_maven.rb in ruby-maven-3.3.10
- old
+ new
@@ -23,9 +23,13 @@
module RubyMaven
POLYGLOT_VERSION = "0.1.15"
def self.exec( *args )
+ if File.exist?('settings.xml') and not args.member?('-s') and not args.member?('--settings')
+ args << '-s'
+ args << 'settings.xml'
+ end
if args.member?('-version') or args.member?('--version') or args.member?('-v')
warn "Polyglot Maven Extension #{version}"
launch( '--version' )
elsif defined? Bundler
# it can be switching from ruby to jruby with invoking maven