Dienstag, 4. November 2014

HowTo: Access Strava API from Java

Introduction

In the following we are going to access Strava's REST API from Java. As the Strava REST API requires OAuth we use Apache Oltu as Open Source OAuth framework.

Although the API is very rich on resources the focus of this tutorial is just the basic access, not the generation of any fancy reports (maybe we will do this later ;-)). 

If you don't know Strava grab your bike or running shoes and give it a shot.

Prerequisites

  • Strava Account

Donnerstag, 25. September 2014

HowTo: Host P2 repositories built by Tycho on Nexus

Introduction

In the following we are going to set up a Sonatype Nexus server which will provide p2 repositories. Besides proxying an existing p2 repository the Nexus server will host its own. For this purpose we will create a p2 repository from simple Maven dependencies using Tycho. As dependencies we take the libs from earlier Logging HowTo to cover a real use case. In the end a simple mvn deploy will get everything done.

Prerequesites

Donnerstag, 4. September 2014

HowTo: Logging in Eclipse 4 (e4) Applications

Introduction

In the following we are going to modify the Eclipse 4 sample application by adding logging. As logging backend we will use Pax Logging. We will take care of the configuration with a combination of Apache Felix File Install and Apache Felix Config Admin. In the end our sample application will support multiple logging APIs like Log4J, JCL or SLF4j (check Pax Logging for a full feature list) and can be simply configured via a log4j.properties file which can be modified during runtime and placed outside the bundle anywhere on the machine.

Prerequisites

  • Eclipse 4.x with installed e4 Tools 
Note: If you need any help installing Eclipse or e4 Tools, I strongly recommend reading Lars Vogel's great Eclipse RCP tutorial.