You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

The CloudSync software is currently distributed via Maven Central, with the help of Sonatype's OSS Hosting.

Prerequisites

  • As a CloudSync committer, you should have permission to deploy to Sonatype. If you don't yet, create a Sonatype account for yourself, then contact an existing committer. Tell them your userid and ask them to request access on your behalf by submitting a comment to the DuraSpace hosting ticket at Sonatype.
  • Update your system-wide maven settings.xml file (usually found at ~/.m2) with your Sonatype credentials, like so:
    <settings>
      <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>
      ..
    </settings>
    
  • Update KEYS. Make sure the KEYS file at the root of the source tree has your up to date public code signing key and signatures listed. If you don't yet have a code signing key, see Creating a Code Signing Key. When you are ready, append your key with the following command: (gpg --list-sigs YourKeyId && gpg -a --export YourKeyId) >> KEYS

Snapshot Release

A snapshot release can be performed any time via:

mvn clean deploy

The artifacts will be immediately available at https://oss.sonatype.org/content/repositories/snapshots/org/duraspace/fcrepo-cloudsync

Official Release

First, stage the release (substitute the appropriate version number below).

mvn release:clean
mvn release:prepare -Dtag=v0.0.0
# If the above fails due to missing dependencies,
# run it again after first running 'mvn install'
git pull
git checkout v0.0.0
mvn clean install
git checkout master
mvn release:perform

Then release the staging repository:

  • Login to oss.sonatype.org
  • Find the staging repo
  • Select, then close it
  • Select, then release it

The artifacts will be synced to central within a few hours. You can check by browsing to http://central.maven.org/maven2/org/duraspace/fcrepo-cloudsync/.

  • No labels