Nexus::Uploader - Upload files to a Sonatype Nexus instance. Modelled on CPAN::Uploader.
version 1.0.0
This is the Nexus user to log in with. It defaults to anonymous.
anonymous
The Nexus password. It is *strongly* advised that you take advantage of the Nexus user tokens feature!
Default is the empty string.
The Nexus URL (base URL) to use. Defaults to http://localhost:8081/repository/maven-releases.
The group to use when uploading. The group is a Maven concept, and the best approximation to CPAN is probably the CPAN author ID.
group
Defaults to AUTHORID if not provided.
AUTHORID
The artefact name to use when uploading - there is no default. A good value for CPAN modules would be the distribution name.
The version of the artefact being uploaded. There is no default.
group and artefact atrributes have colons and full stops modified as follows:
artefact
:: goes to - . goes to /
This is in order to maintain compatibility with Maven's conventions.
The method that does the grunt work of uploading (via a PUT request) to a standard Nexus repository, i.e. not the Staging suite.
Nexus::Uploader->upload_file($file, \%arguments); $uploader->upload_file($file);
Valid %arguments are the attributes specified above.
%arguments
Included for compatibility with CPAN::Uploader - passes straight through to the info logging level.
info
Included for compatibility with CPAN::Uploader - passes straight through to the debug logging level.
debug
- CPAN::Uploader
Brad Macpherson <brad@teched-creations.com>
This software is copyright (c) 2015 by Brad Macpherson.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Nexus::Uploader, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Nexus::Uploader
CPAN shell
perl -MCPAN -e shell install Nexus::Uploader
For more information on module installation, please visit the detailed CPAN module installation guide.