App::Git::Workflow::Pom - Tools for maven POM files with git
This documentation refers to App::Git::Workflow::Pom version 0.8
use App::Git::Workflow::Pom qw/get_pom_versions pom_version next_pom_version/; # get all branch POM versions my $versions = $pom->get_pom_versions("pom.xml"); # { # 1.0 => { "some_branch" => "1.0.0-SNAPSHOT" }, # ... # } # extract the version from the POM my $version = $pom->pom_version("pom.xml"); # find the next unused POM version. my $next = $pom->next_pom_version("pom.xml");
This library provides tools for looking at POM files in different branches.
new (%params)
Create a new App::Git::Workflow::Pom object
App::Git::Workflow::Pom
get_pom_versions ($pom_file)
Find all POM versions used in all branches.
pom_version ($xml_text_or_file)
Extract the version number from C$xml_text_or_file>
next_pom_version ($pom, $versions)
Find the next available POM version number.
There are no known bugs in this module.
Please report problems to Ivan Wills (ivan.wills@gmail.com).
Patches are welcome.
Ivan Wills - (ivan.wills@gmail.com)
Copyright (c) 2014 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077). All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
To install App::Git::Workflow, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Git::Workflow
CPAN shell
perl -MCPAN -e shell install App::Git::Workflow
For more information on module installation, please visit the detailed CPAN module installation guide.