Maven::Command - A command builder for mvn
version 1.03
use Maven::Command qw(mvn_artifact_params mvn_command); # mvn -X package my $command = mvn_command({'-X' => undef}, 'package'); `$command`; # mvn --settings "/opt/shared/.m2/settings.xml" dependency:get \ # -DgroupId="javax.servlet" \ # -DartifactId="servlet-api" \ # -Dversion="2.5" my $artifact = Maven::Artifact->new('javax.servlet:servlet-api:2.5'); my $command = mvn_command( {'--settings' => "/opt/shared/.m2/settings.xml"} 'package', mvn_artifact_params($artifact)); `$command`;
The base class for agents specifying the minimal interface. Subclasses must implement the _download_remote method.
_download_remote
Generates a parameter hash from the coordinate values of $artifact.
$artifact
Builds an mvn command as a string. %mvn_options can be any supported option to mvn, @goals_and_phases can be any list of goals or phases to be executed and %parameters are any parameters that should be supplied as system properties (typically used to specify parameters to the goals as needed).
mvn
%mvn_options
@goals_and_phases
%parameters
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.