Support free tutorials:

vogella training Training Books

Eclipse Feature Projects - Tutorial

Lars Vogel

Version 2.3


Revision History
Revision 0.1 30.11.2008 Lars
Revision 0.2 - 2.3 20.04.2009 - 12.08.2013 Lars
bug fixes and enhancements

Eclipse Feature Project

This tutorial describes the purpose and usage of Eclipse feature projects and Fragments.

Table of Contents

1. What are feature projects and features?
2. Advantages of using features
3. Creating a feature
4. Support free vogella tutorials
4.1. Thank you
4.2. Questions and Discussion
5. Links and Literature
5.1. Eclipse resources
5.2. vogella Resources

Get the book Eclipse IDE book

1. What are feature projects and features?

An Eclipse feature project contains features. A feature describes a list of plug-ins and other features which can be understood as a logical unit. It also has a name, version number and license information assigned to it.

A feature is described via a feature.xml file. For example the file might look like the following in a text editor.

<?xml version="1.0" encoding="UTF-8"?>
   <description url="">
      [Enter Feature Description here.]

   <copyright url="">
      [Enter Copyright Description here.]

   <license url="">
      [Enter License Description here.]



2. Advantages of using features

The grouping of plug-ins into logical units makes it easier to handle a set of plug-ins. Instead of adding a large number of individual plug-ins to your product configuration file you can group them using features. That increases the visibility of your application structure.

Features can be used by the Eclipse update manager, the build process and optionally for the definition of Eclipse products. Features can also be used as the basis for a launch configuration.

Eclipse provides several predefined features, e.g. the org.eclipse.e4.rcp for Eclipse 4 based RCP applications.

3. Creating a feature

You can create a new feature project via the following menu path: File NewOther...Plug-in Development Feature Project.

If you open the feature.xml file you can change the feature properties via a special editor.

The Information tab allows you to enter a description and copyright related information for this feature.

The Plug-ins tab allows you to change the included plug-ins in the feature. The Included Features tab allows you to include other features into this feature. Via the Dependencies tab you can define other features which must be present to use this feature.

The Build tab is used for the build process and should include the feature.xml file. The last two tabs give access to the configuration files in text format.

4. Support free vogella tutorials

Maintaining high quality free online tutorials is a lot of work. Please support free tutorials by donating or by reporting typos and factual errors.

4.1. Thank you

Please consider a contribution if this article helped you.

Flattr this

4.2. Questions and Discussion

If you find errors in this tutorial, please notify me (see the top of the page). Please note that due to the high volume of feedback I receive, I cannot answer questions to your implementation. Ensure you have read the vogella FAQ as I don't respond to questions already answered there.

5. Links and Literature

5.1. Eclipse resources

The Eclipse p2 update wiki

5.2. vogella Resources

vogella Training Android and Eclipse Training from the vogella team

Android Tutorial Introduction to Android Programming

GWT Tutorial Program in Java, compile to JavaScript and HTML

Eclipse RCP Tutorial Create native applications in Java

JUnit Tutorial Test your application

Git Tutorial Put all your files in a distributed version control system