Skip to content

shentuzhigang/nexus-client-go

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golang Nexus Client

Introduction

Sonatype Nexus Golang Client

Development and testing

Start a Nexus Docker container

$ docker run -d -p 8081:8081 --name nexus sonatype/nexus3

Get the Admin password

$ docker exec -ti nexus /bin/bash -c 'cat /nexus-data/admin.password'

Set config as environment variables

$ export NEXUS_URL=http://127.0.0.1:8081
$ export NEXUS_USERNAME=admin
$ export NEXUS_PASSWORD=<random-password-from-above>

Run tests

$ make test

The tests assume Nexus Pro features. If you do not have a Nexus Pro license you can skip the pro tests by setting the SKIP_PRO_TESTS environment variable:

$ export SKIP_PRO_TESTS=true

Author

Datadrivers GmbH

About

Nexus Client library written in Golang

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Go 99.3%
  • Other 0.7%