Sha256: c3403af759c822f88bec1bb29a4f4f547cf80628c0bafd5427b0e450be702fa5

Contents?: true

Size: 525 Bytes

Versions: 1

Compression:

Stored size: 525 Bytes

Contents

# encoding: UTF-8

module Expert
  class Maven

    class << self
      def execute(cmd)
        system("#{mvn_path} #{cmd}")
      end

      def resolve
        execute('dependency:resolve')
      end

      def build_classpath(output_file)
        execute("dependency:build-classpath -Dmdep.outputFile=#{output_file}")
      end

      def mvn_path
        @mvn_path ||= File.expand_path(
          "../../../vendor/apache-maven-#{Expert::MAVEN_VERSION}/bin/mvn",
          __FILE__
        )
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
expert-1.0.0 lib/expert/maven.rb