#!/usr/bin/env ruby require 'maven/ruby/maven' mvn = Maven::Ruby::Maven.new args = ARGV.dup + [ 'validate', '-Dtesla.dump.pom=pom.xml' ] ARGV.clear # clean up in case another script gets executed it gets clear ARGV mvn.exec(*args)