Maven::Repositories - An ordered collection of repositories from which to resolve artifacts
version 1.12
# Dont use Repositories directly... instead: use Maven::Agent; my $agent = Maven::Agent->new(); $agent->resolve('javax.servlet:servlet-api:2.5');
Represents an ordered collection of repositories that can be used to resolve Maven::Artifact's. This class should not be used directly. Instead you should use an Maven::Agent.
Maven::Artifact
Maven::Agent
Adds maven central to the list of repositories. Passes all arguments through to add_repository.
add_repository
Add your $local_repository_path to the list of repositories.
$local_repository_path
Adds $url to the list of repositories. $agent will be used to connect to the repository. The current options are:
$url
$agent
The name of the metadata file. Defaults to 'maven-metadata.xml'.
Returns the repository that contains $url.
Will attempt to resolve $artifact. $artifact can be either an instance of Maven::Artifact or a coordinate string of the form groupId:artifactId[:packaging[:classifier]]:version If resolution was successful, a new Maven::Artifact will be returned with its uri set. Otherwise, undef will be returned. If %parts are supplied, their values will be used to override the corresponding values in $artifact before resolution is attempted.
$artifact
uri
undef
%parts
Calls resolve, and, if resolution was successful, the new $artifact will be returned, otherwise, croak will be called.
croak
Lucas Theisen <lucastheisen@pastdev.com>
This software is copyright (c) 2014 by Lucas Theisen.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Please see those modules/websites for more information related to this module.
Maven::MvnAgent
Maven::Maven
To install Maven::Agent, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Maven::Agent
CPAN shell
perl -MCPAN -e shell install Maven::Agent
For more information on module installation, please visit the detailed CPAN module installation guide.