Class: Bee::Task::MavenDependencyResolver
- Inherits:
-
BaseDependencyResolver
- Object
- BaseDependencyResolver
- Bee::Task::MavenDependencyResolver
- Includes:
- Util::BuildErrorMixin
- Defined in:
- lib/dependency_resolver.rb
Overview
Maven 1 dependency resolver.
Direct Known Subclasses
Constant Summary collapse
- DEFAULT_REPOSITORY =
Default repository.
'http://repo1.maven.org/maven'
- DEFAULT_CACHE =
Default cache location.
File.('~/.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
-
#initialize(file, scope, verbose = false) ⇒ MavenDependencyResolver
constructor
Constructor: - file: dependency file (should be maven.xml).
Methods inherited from BaseDependencyResolver
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 |