tycho tutorial eclipsecon 2013
DESCRIPTION
Slides of the EclipseCon 2013 session "Building Eclipse Plugins and RCP applications with Tycho"TRANSCRIPT
BUILDING ECLIPSE PLUG-INS AND RCP APPLICATIONS WITH TYCHO
Tobias Oberlies & Jan Sievers, SAP AG25.03.2013
Part 1: Introduction 9:00 am – 9:30 am Tycho Overview
Part 2: Hands-on Tutorial 9:30 am – 12:00 pm Building an e4 RCP application with Tycho
Tutorial Outline
25.03.2013Copyright (c) 2013 SAP AG and others. Licensed under EPL v1.0
Part 1: Introduction
25.03.2013Copyright (c) 2013 SAP AG and others. Licensed under EPL v1.0
Tycho is a Maven extension for building Eclipse artifacts Eclipse plug-ins/OSGi bundles Features p2 repositories RCP applications/Eclipse distributions
What is Tycho?
25.03.2013Copyright (c) 2013 SAP AG and others. Licensed under EPL v1.0
Related Technologies
25.03.2013Copyright (c) 2013 SAP AG and others. Licensed under EPL v1.0
Maven
Plug-in Developme
nt Environmen
t (PDE)
Equinox p2
Tycho
Maven and Tycho
mvn clean install Packaging types for
standard artifacts Tests run in build Customize build
with additional goals (FindBugs, code generators, …)
mvn clean installeclipse-plugin,
eclipse-feature, …eclipse-test-pluginMost Maven
plugins also work in Tycho projects
Maven Tycho
25.03.2013Copyright (c) 2013 SAP AG and others. Licensed under EPL v1.0
Maven and Tycho (cont.)
Dependencies declared in pom.xml
Dependencies declared in MANIFEST.MF, …
Maven Tycho
25.03.2013Copyright (c) 2013 SAP AG and others. Licensed under EPL v1.0
Maven extension for OSGi/Eclipse artifacts
PDE and Tycho
MANIFEST.MF, feature.xml, build.properties, ...
Build path according to OSGi manifest
JUnit plug-in tests
Tycho reads PDE source files
JDT compiler with OSGi visibility rules
eclipse-test-plugin
Plug-in Development Environment (PDE)
Tycho
25.03.2013Copyright (c) 2013 SAP AG and others. Licensed under EPL v1.0
Headless build for PDE projects
p2 and Tycho
p2 repositories for installation & update of bundles
“Publish” artifacts to p2 repositories
Installer (“director”)
p2 repositories for resolving build dependencies
Builds p2 repositories with build artifacts
tycho-director-plugin
Equinox p2 Tycho
25.03.2013Copyright (c) 2013 SAP AG and others. Licensed under EPL v1.0
Maven front-end for p2
Tycho is a Technology incubator project at Eclipse Sources are at git.eclipse.org (and mirrored to
github) Documentation: wiki.eclipse.org/Tycho Mailing lists: tycho-user, tycho-dev Issue tracker: Bugzilla Contributor guide: wiki.eclipse.org/Tycho/
Contributor_Guide
Tycho 0.17.0 is available from Maven central
Where is Tycho?
25.03.2013Copyright (c) 2013 SAP AG and others. Licensed under EPL v1.0
Committers Jan Sievers (SAP AG) Tobias Oberlies (SAP AG) Igor Fedorenko (Sonatype Inc.)
Various contributions Users
Eclipse platform and many other Eclipse projects “Common Build Infrastructure” (CBI): Services for
Tycho adoption at eclipse.org Commercial users: JBoss tools, Sigasi, SAP AG, …
Contributors & Users
25.03.2013Copyright (c) 2013 SAP AG and others. Licensed under EPL v1.0
Part 2: Hands-on Tutorial
25.03.2013Copyright (c) 2013 SAP AG and others. Licensed under EPL v1.0
Create and build an Eclipse 4 RCP application Create a plug-in with a sample Eclipse 4
RCP application Add a unit test Add a feature Create a p2 repository Build a distribution with the RCP application
Hands-on Exercises
25.03.2013Copyright (c) 2013 SAP AG and others. Licensed under EPL v1.0
Everything you need for the exercises is provided on the USB stick we handed out
The exercise instructions are fully self-contained
Start with tutorial/README.html
Hands-On Setup
25.03.2013Copyright (c) 2013 SAP AG and others. Licensed under EPL v1.0
Tycho BoF Mon 8:00 pm, Seaport Ballroom B
Presentations from Tycho users Real World: Tycho Tue 5:00 pm, Cityview
Ballroom 2 From Custom Maven Builds to Tycho
Wed 10:30 am, Back Bay Automating the consumption of Eclipse for int
ernal use Thu 1:30 pm, Harborview Ballroom 2
Comparison of build technologies Bundle Building Wed 1:30 pm, Beacon Hill 1
Related Sessions
25.03.2013Copyright (c) 2013 SAP AG and others. Licensed under EPL v1.0
Please give feedback!
25.03.2013Copyright (c) 2013 SAP AG and others. Licensed under EPL v1.0
1. Sign In: www.eclipsecon.org
2. Select Session Evaluate
3. Vote