NAME

Nexus::Uploader - Upload files to a Sonatype Nexus instance. Modelled on CPAN::Uploader.

VERSION

version 1.0.1

ATTRIBUTES

username

This is the Nexus user to log in with. It defaults to anonymous.

password

The Nexus password. It is *strongly* advised that you take advantage of the Nexus user tokens feature!

Default is the empty string.

nexus_URL

The Nexus URL (base URL) to use. Defaults to http://localhost:8081/repository/maven-releases.

group

The group to use when uploading. The group is a Maven concept, and the best approximation to CPAN is probably the CPAN author ID.

Defaults to AUTHORID if not provided.

artefact

The artefact name to use when uploading - there is no default. A good value for CPAN modules would be the distribution name.

version

The version of the artefact being uploaded. There is no default.

group and artefact processing

group and artefact attributes have colons and full stops modified as follows:

:: goes to -
. goes to /

This is in order to maintain compatibility with Maven's conventions.

METHODS

upload_file

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.

log

Included for compatibility with CPAN::Uploader - passes straight through to the info logging level.

log_debug

Included for compatibility with CPAN::Uploader - passes straight through to the debug logging level.

SEE ALSO

- CPAN::Uploader

AUTHORS

  • Brad Macpherson <brad@teched-creations.com>

  • Sven Willenbuecher <sven.willenbuecher@gmx.de>

COPYRIGHT AND LICENSE

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.