Skip to content

avrora-framework/avrora

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

Deployment workflow

The OSSRH Guide workflow in short:

  1. if you have no account sign up
  2. create a project ticket
  3. follow the maven deployment example

Set up ossrh username and password

Add orssh server tag to servers to your settings.xml:

    <?xml version="1.0" encoding="UTF-8"?>
    <settings xmlns="http://maven.apache.org/POM/4.0.0" 
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
                                  http://maven.apache.org/xsd/settings-1.0.0.xsd">
      <servers>
        <server>
          <id>ossrh</id>
          <username>your-jira-id</username>
          <password>your-jira-pwd</password>
        </server>
      </servers>
    </settings>

your-jira-id and your-jira-pwd can be obtained as follows:

  1. log in to https://oss.sonatype.org
  2. profile => user token => access user token

Deployment

  • perform a snapshot deloyment

    1. increment verion number in pom.xml

    2. build and commit snapshot

          mvn clean deploy -DskipTests
      
    3. watch snapshots at oss.sonatype.org

  • perform a release deplyoment

    1. increment verion number in pom.xml

    2. commit pom.xml

         git add pom.xml && git commit -m "pre release deployment commit" && git push
      
    3. build and commit snapshot and release:

         mvn release:clean release:prepare -Darguments="-DskipTests"
         mvn release:perform -Darguments="-DskipTests"
      
    4. commit newly changed pom.xml

         git add pom.xml && git commit -m "post release deployment commit" && git push
      
    5. watch staging profiles and snapshots at oss.sonatype.org

  • deploy to local repository

      mvn clean install -DskipTests