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
.
- Move the
com.packtpub.e4.feature
project underneath thecom.packtpub.e4.parent
project. - Add the line
<module>com.packtpub.e4.feature</module>
to the parentpom.xml
file. - Copy the
pom.xml
file from the clock plug-in to the feature project. - Modify the packaging type to
<packaging>eclipse-feature</packaging>
. - Change the
artifactId
tocom.packtpub.e4.feature
. - 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.