/test4

Primary LanguageHTMLMIT LicenseMIT

CircleCI publishing To Nexus Repository Manager

CI

This is an example application showcasing how to deploy a Java app to Sonatype Nexus Repository Manager via CircleCI 2.1.

The following tools are used:

  • Sonatype Nexus Repository Manager
  • Maven
  • Java 8
  • PostgreSQL
  • Spring
  • Thymeleaf

Sonatype Nexus Repository Manager

You can use your existing Nexus Repository Manager instance (must be accessible to CircleCI), or for testing see the instructions here to stand up a test Nexus Repository Manager instance on AWS.

Circle CI

To test this application in CircleCI, fork this repository, and set the following build variables in CircleCI:

  • NEXUS_RM_USERNAME - Username to access Nexus Repository Manager
  • NEXUS_RM_PASSWORD - Password to access Nexus Repository Manager
  • NEXUS_RM_SERVERURL - Nexus Repository Manager Server URL

Notes

  • The original sample Java application by CircleCI is documented here.
  • For ease of use the sample CircleCI config.yml hard-codes the Nexus Repository Manager username, password, and server url. Outside of testing you should not hard code these values into your configuration, but rather use environment variables as described here

License

Copyright © 2017 CircleCI

Distributed under the MIT license, see the file LICENSE.