Tycho Tutorial EclipseCon 2013

11,156 views
10,838 views

Published on

Slides of the EclipseCon 2013 session "Building Eclipse Plugins and RCP applications with Tycho"

Published in: Technology
0 Comments
11 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
11,156
On SlideShare
0
From Embeds
0
Number of Embeds
36
Actions
Shares
0
Downloads
128
Comments
0
Likes
11
Embeds 0
No embeds

No notes for slide
  • Packaging types -> declarative build „what to build“ not „how to build“ Use Tycho -> get lots of other tools from the Maven ecosystem for free
  • POM = project object model, main configuration file for a Maven build
  • Eclipse Platform -> probably the most complicated build you can imagine -> CBI project has ported it to Tycho
  • Tycho Tutorial EclipseCon 2013

    1. 1. BUILDING ECLIPSE PLUG-INS AND RCP APPLICATIONS WITH TYCHO25.03.2013 Tobias Oberlies & Jan Sievers, SAP AG
    2. 2. Tutorial Outline 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 TychoCopyright (c) 2013 SAP AG and others. Licensed under EPL v1.0 25.03.2013
    3. 3. Part 1: IntroductionCopyright (c) 2013 SAP AG and others. Licensed under EPL v1.0 25.03.2013
    4. 4. What is Tycho? Tycho is a Maven extension for building Eclipse artifacts  Eclipse plug-ins/OSGi bundles  Features  p2 repositories  RCP applications/Eclipse distributionsCopyright (c) 2013 SAP AG and others. Licensed under EPL v1.0 25.03.2013
    5. 5. Related Technologies Plug-inDevelopmentEnvironment (PDE) Maven Tycho Equinox p2 Copyright (c) 2013 SAP AG and others. Licensed under EPL v1.0 25.03.2013
    6. 6. Maven and TychoMaven Tycho mvn clean install mvn clean install Packaging types for eclipse-plugin, standard artifacts eclipse-feature, … Tests run in build eclipse-test-plugin Customize build with Most Maven plugins additional goals also work in Tycho (FindBugs, code projects generators, …)Copyright (c) 2013 SAP AG and others. Licensed under EPL v1.0 25.03.2013
    7. 7. Maven and Tycho (cont.)Maven Tycho Dependencies  Dependencies declared in pom.xml declared in MANIFEST.MF, … Maven extension for OSGi/Eclipse artifactsCopyright (c) 2013 SAP AG and others. Licensed under EPL v1.0 25.03.2013
    8. 8. PDE and TychoPlug-in DevelopmentEnvironment (PDE) Tycho MANIFEST.MF, Tycho reads PDE feature.xml, source files build.properties, ... Build path according JDT compiler with to OSGi manifest OSGi visibility rules JUnit plug-in tests eclipse-test-plugin Headless build for PDE projectsCopyright (c) 2013 SAP AG and others. Licensed under EPL v1.0 25.03.2013
    9. 9. p2 and TychoEquinox p2 Tycho p2 repositories for p2 repositories for installation & update resolving build of bundles dependencies “Publish” artifacts to Builds p2 repositories p2 repositories with build artifacts Installer (“director”) tycho-director-plugin Maven front-end for p2Copyright (c) 2013 SAP AG and others. Licensed under EPL v1.0 25.03.2013
    10. 10. Where is Tycho? 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 centralCopyright (c) 2013 SAP AG and others. Licensed under EPL v1.0 25.03.2013
    11. 11. Contributors & Users 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, …Copyright (c) 2013 SAP AG and others. Licensed under EPL v1.0 25.03.2013
    12. 12. Part 2: Hands-on TutorialCopyright (c) 2013 SAP AG and others. Licensed under EPL v1.0 25.03.2013
    13. 13. Hands-on Exercises 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 applicationCopyright (c) 2013 SAP AG and others. Licensed under EPL v1.0 25.03.2013
    14. 14. Hands-On Setup 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.htmlCopyright (c) 2013 SAP AG and others. Licensed under EPL v1.0 25.03.2013
    15. 15. Related Sessions 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 internal use Thu 1:30 pm, Harborview Ballroom 2 Comparison of build technologies  Bundle Building Wed 1:30 pm, Beacon Hill 1Copyright (c) 2013 SAP AG and others. Licensed under EPL v1.0 25.03.2013
    16. 16. Please give feedback! 1. Sign In: www.eclipsecon.org 2. Select Session Evaluate 3. VoteCopyright (c) 2013 SAP AG and others. Licensed under EPL v1.0 25.03.2013

    ×