Class: Bee::Task::MavenDependencyResolver

Inherits:
BaseDependencyResolver show all
Includes:
Util::BuildErrorMixin
Defined in:
lib/dependency_resolver.rb

Overview

Maven 1 dependency resolver.

Direct Known Subclasses

Maven2DependencyResolver

Constant Summary collapse

DEFAULT_REPOSITORY =

Default repository.

'http://repo1.maven.org/maven'
DEFAULT_CACHE =

Default cache location.

File.expand_path('~/.maven/repository')
DEFAULT_SCOPE =

Default dependency scope.

'compile'
SCOPE_AVAILABILITY =

scope availability: list for a given dependency scope the implied classpath scopes

{
  'compile'  => ['compile', 'test', 'runtime'],
  'provided' => ['compile', 'test'],
  'runtime'  => ['test', 'runtime'],
  'test'     => ['test'],
}

Instance Method Summary collapse

Methods inherited from BaseDependencyResolver

#classpath, #dependencies

Constructor Details

#initialize(file, scope, verbose = false) ⇒ MavenDependencyResolver

Constructor:

  • file: dependency file (should be maven.xml).

  • scope: the scope for dependencies (compile, runtime or test).

  • verbose: tells if we should be verbose.



341
342
343
344
# File 'lib/dependency_resolver.rb', line 341

def initialize(file, scope, verbose=false)
  super(file, scope, verbose)
  @cache = DEFAULT_CACHE
end