Code Monkey home page Code Monkey logo

oss-parent's Introduction

Druid Parent POM

Prerequisites

  1. Add the sonatype-nexus-staging entry to the <servers> list in your maven settings file ($HOME/.m2/settings.xml). Replace username and password with your Sonatype username and password.
<!-- sonatype-nexus-staging -->
<server>
  <id>sonatype-nexus-staging</id>
  <username>username</username>
  <password>mypassword</password>
</server>

We recommend encrypting your maven passwords. See the maven password encryption guide for advice on how to encrypt your maven passwords.

  1. Create a Sonatype account and request to be added to the list of users with deployment permissions.

  2. Create a GPG key and publish it.

  • Generate the key (brew install gpg2 to get gpg2 on a Mac)

    gpg2 --gen-key

    Use the default values for type, size, expiration, and add your name and email.

  • List the key and note the key id

    gpg2 --list-keys

    The output should look similar to the following, where ABCDEF12 is your key id.

    --------------------------------
    pub   4096R/ABCDEF12 2015-02-04
    uid       [ultimate] John Doe <[email protected]>
    ...
    
  • Upload your key to a key-server

    Use the following command, replacing ABCDEF12 with your own key id.

    # use the key id as shown by gpg2 --list-keys
    gpg2 --keyserver hkp://pool.sks-keyservers.net --send-keys ABCDEF12

Cutting a release and publishing

# Make sure gpg-agent is running
eval $(gpg-agent --daemon)

# Prepare a release for the parent pom
mvn release:clean release:prepare

# Perform the release
mvn release:perform

# once staging is complete promote the release
cd target/checkout && mvn -Prelease nexus-staging:release

oss-parent's People

Contributors

cheddar avatar xvrl avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.