Now that Maven is installed, it's time to build a plug-in with Tycho. Tycho is a set of plug-ins for Maven 3 that emulates the older PDE build used by Eclipse. The Eclipse platform has moved to building with Tycho and Maven 3 under the name Common Build Infrastructure (http://wiki.eclipse.org/CBI).
Change into the
com.packtpub.e4.clock.ui
project created in Chapter 2, Creating Views with SWT. (If you don't have this project, see the book's GitHub repository for sample code.)Create a file called
pom.xml
at the root of the project, with the following empty contents:<?xml version="1.0" encoding="UTF-8"?> <project xsi:schemaLocation="http://maven.apache.org/ POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion> </project>
This can be copied from the
pom.xml
file generated in the previous...