Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Sonatype hosting #67

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Sonatype hosting #67

wants to merge 8 commits into from

Conversation

matth
Copy link

@matth matth commented Nov 27, 2012

Add sontaype repo support

Hi there, I have added sontatype nexus support repo and uploaded the project to their OSS Maven repo. Please find below a summary of changes and some details on how to upload to Nexus:

Goose in a public Maven repo

https://oss.sonatype.org/content/repositories/releases/com/gravity/goose/

Changes in this pull request (all to pom.xml)

  • Update scala-maven-plugin, now has better support for Nexus
  • Add some extra details suggested by Nexus, inherit from Nexus OSS parent
  • Replace javadoc plugin execution for scaldoc plugin execution (it actually generates a javadoc.jar now!)

Suggested improvements

  • Add developer info to pom

How I deployed it

I got a Maven repo setup on Nexus, https://issues.sonatype.org/browse/OSSRH-4770 it would be great for you guys to be able to deploy releases to it!

Setting up Maven for an automated release was a bit painful, here's what I did ...

Ensure you ~/.m2/settings.xml has the following

  <pluginGroups>
    <pluginGroup>org.sonatype.plugins</pluginGroup>
  </pluginGroups>

  <servers>
    <server>
      <id>sonatype-nexus-snapshots</id>
      <username>YOUR_SONATYPE_USERNAME</username>
      <password>YOUR_SONATYPE_PASSWORD</password>
    </server>
    <server>
      <id>sonatype-nexus-staging</id>
      <username>YOUR_SONATYPE_USERNAME</username>
      <password>YOUR_SONATYPE_PASSWORD</password>
    </server>
  </servers>

Ensure you have gpg installed and a key pair generate and published to a keyserver

Add a snapshot for current release

  • Ensure current version in pom.xml ends with -SNAPSHOT
  • mvn clean deploy

Stage a release

  • mvn release:clean
  • mvn release:prepare
  • mvn release:perform

Release it!

Via the nexus plugin ...

  • mvn nexus:staging-list
  • mvn nexus:staging-close
  • mvn nexus:staging-promote

Or the web interface ...

https://oss.sonatype.org/index.html

More info / resources

@matth
Copy link
Author

matth commented Dec 9, 2012

@jiminoc @erraggy Hiya, just wondering if you guys had any thoughts on this yet? Cheers, Matt

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant