Skip to content

Example Java application running on CircleCI and publishing to Sonatype Nexus

License

Notifications You must be signed in to change notification settings

extenda/circleci-nexus-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Example Java application running on CircleCI and publishing to Sonatype Nexus

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 43.9%
  • Java 42.1%
  • CSS 14.0%