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
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.
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
- 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
Copyright © 2017 CircleCI
Distributed under the MIT license, see the file LICENSE.