Time for action – using the target platform

Although building against a remote repository works as expected, it may have dependencies on plug-ins or features that aren't represented in the target platform created in Chapter 10, Using a Target Platform. To compile against a target platform, a new Maven module needs to be created.

  1. Move the com.packtpub.e4.target.mars project underneath the com.packtpub.e4.parent project.
  2. Add the line <module>com.packtpub.e4.target.mars</module> to the parent pom.xml file.
  3. Comment out the repositories tags in the parent pom.xml file.
  4. In the configuration element of the target-plugin-configuration entry, add the co-ordinates of the com.packtpub.e4.target.mars project:
    <plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>tycho-platform-configuration</artifactId> ...

Get Eclipse Plug-in Development Beginner's Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.