Prereqs
- Java5 JDK
- Some Eclipse and PDE experience
- Eclipse Classic 3.3.2 installed in T:/eclipse-SDK-3.3.2-win32/eclipse folder (i.e. you have T:/eclipse-SDK-3.3.2-win32/eclipse/plugins)
This script has been written on Windows XP, but should work on other operating systems supported by Eclipse 3.3, just adjust the paths.
Maven installation
Download latest DEV build (see Tycho builds) and unzip it into an empty folder C:/tycho (i.e. you have C:/tycho/bin folder)
Create sample project
- Download tychodemo.zip file containing sample eclipse plugin, feature and update sites project and unzip the file to empty C:/tychodemo folder
- Alternatively, [these instructions] show how to create the three projects from scratch
Create maven POM files
- Open command line prompt
cd /d C:\tychodemo c:\tycho\bin\mvn org.codehaus.tycho:maven-tycho-plugin:generate-poms -DgroupId=tycho.demo -Dtycho.targetPlatform=T:/eclipse-SDK-3.3.2-win32/eclipse
Run the build
- Open command line prompt
cd /d C:\tychodemo C:\tycho\bin\mvn package -Dtycho.targetPlatform=T:/eclipse-SDK-3.3.2-win32/eclipse
- At this point maven will download additional components necessary to perform the build and will compile and package tycho.demo project after that
[INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] ------------------------------------------------------------------------ [INFO] Unnamed - tycho.demo:parent:pom:1.0.0 ................. SUCCESS [0.563s] [INFO] Unnamed - tycho.demo:tycho.demo:osgi-bundle:1.0.0 ..... SUCCESS [3.109s] [INFO] Unnamed - tycho.demo:tycho.demo.feature:eclipse-feature:1.0.0 SUCCESS [0 .719s] [INFO] Unnamed - tycho.demo:tycho.demo.site:eclipse-update-site:1.0.0 SUCCESS [ 0.391s] [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5 seconds [INFO] Finished at: Sat May 31 22:55:14 EDT 2008 [INFO] Final Memory: 3M/21M [INFO] ------------------------------------------------------------------------
Validating results
At this point maven has built the projects and generated update site in C:/tychodemo/tycho.demo.site/target/site
tycho.demo.feature and tycho.demo can be installed into eclipse using [these instcutions]
Provide feedback
- Eclipse newsgroup (web interface)
- dev and user mailing lists (web interface)
Open questions
- Does tycho.targetPlatform support linked or external extension locations and why that setting is not in settings.xml?
- Tycho profile for osx need to be activated automatically based on osx presence or this logic should be in Tycho plugins? Then configuration won't be needed.
- What about building projects that depend on EMF, SSE, WTP and AJDT?
- What about running all of that with m2eclipse within the IDE?