Class: Bee::Task::Maven2DependencyResolver

Inherits:
MavenDependencyResolver show all
Defined in:
lib/dependency_resolver.rb

Overview

Maven 2 dependency resolver.

Constant Summary collapse

DEFAULT_REPOSITORY =

Default repository address.

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

Default cache location.

File.expand_path('~/.m2/repository')

Constants inherited from MavenDependencyResolver

Bee::Task::MavenDependencyResolver::DEFAULT_SCOPE, Bee::Task::MavenDependencyResolver::SCOPE_AVAILABILITY

Instance Method Summary collapse

Methods inherited from BaseDependencyResolver

#classpath, #dependencies

Constructor Details

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

Constructor:

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

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

  • verbose: tells if we should be verbose.



428
429
430
431
# File 'lib/dependency_resolver.rb', line 428

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