Skip to content

Intware-Consulting/nexus-migrator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nexus-migrator

The application can be used to download and upload raw Nexus repositories.

Configuration

By default, the application searches for the configuration file in the same directory. The file should be called nexus.conf:

{
    "nexus": "https://nexus.intware.eu",
    "user": "api",
    "pass": "api",
    "timeout": "120s",
    "level": "info"
}

If nexus.conf isn't found, the application will read environment variables:

NEXUS="https://nexus.intware.eu"
USER="api"
PASS="api"
TIMEOUT="120s"

Possible configuration properties:

Property Description
nexus Url to Nexus repository
user API username
Password API password
timeout HTTP timeout
level Log level: trace, debug, info, warn, error, fatal, panic, disabled

How to use it

Download repository

To download the remote Nexus raw repository to a local directory:

./nexus-migrator download -s software -t /tmp

Upload repository

Upload a local directory to the Nexus raw repository:

./nexus-migrator upload -s /tmp -t software

Show help

./nexus-migrator --help