Time for action – building a feature

Features can be built in the same way as plug-ins, although this time the packaging type is eclipse-feature.

  1. Move the com.packtpub.e4.feature project underneath the com.packtpub.e4.parent project.
  2. Add the line <module>com.packtpub.e4.feature</module> to the parent pom.xml file.
  3. Copy the pom.xml file from the clock plug-in to the feature project.
  4. Modify the packaging type to <packaging>eclipse-feature</packaging>.
  5. Change the artifactId to com.packtpub.e4.feature.
  6. The resulting pom.xml file will look like:
    <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> ...

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.