Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Java

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
eclipse-bridge
maven-p2-bridge-plugin
org.sonatype.p2.bridge.api
org.sonatype.p2.bridge.impl
org.sonatype.p2.bridge.model
p2-bridge-tycho-config
p2-runtime-3.7-sonatype-fork
.gitignore
README.md
header.txt
pom.xml

README.md

P2 Bridge

Releasing

As this plugin is "special", it requires totally different release procedure than the one we use for "normal" projects.

Prerequisites

  • Maven 3.0.4+
  • Java6+

Prepare release (on release machine)

  • SSH to release machine
  • Clone and ensure on master branch
git clone git@github.com:sonatype/p2-bridge.git
git checkout master
  • Set version on all projects to the release version (ie. was 1.0.4-SNAPSHOT, set it to 1.0.4)
mvn -Dtycho.mode=maven org.eclipse.tycho:tycho-versions-plugin:0.18.0:set-version -DnewVersion=1.0.4
  • Check that there is no trace left of previous version (e.g. 1.0.3 and 1.0.3-SNAPSHOT and 1.0.4-SNAPSHOT)
  • Verify that MANIFEST.MF imported/exported packages are correct (export should have proper versions set)
  • Verify that no SNAPSHOT dependencies are used (search for SNAPSHOT)
  • Verify that bundle version has no ".qualifier" (search for qualifier), if any found, remove them.
  • Build it
mvn clean install
  • Commit changes
git commit -a -m "Bumped version number to 1.0.4"
  • Tag release
git tag -a 1.0.4 -m "Release 1.0.4"

Perform release (on release machine)

  • Release it
mvn clean deploy -Prelease
  • Bump version to next snapshot
mvn -Dtycho.mode=maven org.eclipse.tycho:tycho-versions-plugin:0.18.0:set-version -DnewVersion=1.0.5-SNAPSHOT
  • Check that there is no trace left of released version (e.g. 1.0.4)
  • Verify that imported/exported packages are correct (those will be still 1.0.4, release version)
  • Build it
mvn clean install
  • Commit changes
git commit -a -m "Bumped version number to 1.0.5-SNAPSHOT"
  • Push back all (don't forget tags) to origin
git push
git push --tags
  • Have a beer
Something went wrong with that request. Please try again.