Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

Deploying

Ricardo Gladwell edited this page May 17, 2015 · 20 revisions

To deploy the project to the snapshot repository you need to modify your settings.xml with the additional fragment (update with your GitHub login name and password):

<profiles>
 <profile>
  <id>github</id>
  <properties>
   <github.global.userName>user</github.global.userName>
   <github.global.password>password</github.global.password>
  </properties>
 </profile>
</profiles>
<activeProfiles>
 <activeProfile>github</activeProfile>
</activeProfiles>

To deploy the p2 repository to the update site, from the com.*.update site execute:

mvn com.github.github:site-maven-plugin:site

Releasing

To release a new version execute the following commands:

git checkout -b release-<version>
mvn -Dtycho.mode=maven org.eclipse.tycho:tycho-versions-plugin:set-version -DnewVersion=<version>

Check the release passes its test:

mvn clean install

Then tag the release:

git commit -am "Release <version>"
git tag -a <version> -m "Release <version>"
git push origin master --tags

Wait for the master/snapshot CI job to complete, then run:

mvn -pl me.gladwell.eclipse.m2e.android.update com.github.github:site-maven-plugin:site -P release

Once this has completed you are ready to switch the trunk to the new SNAPSHOT version:

mvn -Dtycho.mode=maven org.eclipse.tycho:tycho-versions-plugin:set-version -DnewVersion=<new version>-SNAPSHOT`

Run a test build and push the updated code to the master repo:

mvn clean install
git commit -am "Candidate <new version>-SNAPSHOT"`
git checkout master
git merge release-<version>
git push origin master
git branch -d release-<version>

Post Deployment

  1. Update M2E Catalog: update the iuVersion in the catalog.xml m2e Discovery Catalog descriptor in-line with the new release version.

  2. Update the Eclipse Marketplace version.

Clone this wiki locally