Maven::Artifact - An maven artifact definition
version 1.15
use Maven::Artifact; my $artifact = Maven::Artifact->new('javax.servlet:servlet-api:2.5); my $artifact = Maven::Artifact->new('javax.servlet:servlet-api', version => 2.5 packaging => 'jar');
Or, more commonly:
use Maven::Agent; my $agent = Maven::Agent->new(); my $artifact = $agent->resolve('javax.servlet:servlet-api:2.5);
Represents a maven artifact. Artifacts are identified by coordinates. An artifacts coordinate is made up of: groupId:artifactId[:packaging[:classifier]]:version Packaging and classifier are optional, and if not specified, then packaging defaults to jar and classifier is left empty. This representation also contains a uri that is specified by when this artifact gets resolved.
jar
Returns a new artifact indicated by $artifact. If %parts are supplied, their values will be used to override the corresponding values in $artifact before resolution is attempted.
$artifact
%parts
Returns the artifactId.
artifactId
Returns the artifact_name.
artifact_name
Returns the classifier.
classifier
Returns the coordinate representation of this artifact.
Returns the groupId.
groupId
Returns the packaging.
packaging
Returns the url as an URI object.
url
Returns the url.
Returns the version.
version
Sets the groupId to $group_id.
$group_id
Sets the artifactId to $artifact_id.
$artifact_id
Sets the artifact_name to $artifact_name.
$artifact_name
Sets the classifier to $classifier.
$classifier
Sets the packaging to $packaging.
$packaging
Sets the url to $url.
$url
Sets the version to $version.
$version
Returns the value of get_coordinate.
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::Agent
Maven::MvnAgent
Maven::Artifact
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.