Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Importing Maven projects in Eclipse

See Maven Eclipse Plugin

Editing Maven projects in Eclipse

See Maven Eclipse Intregration

Building Eclipse plugins in Maven

Instructions targeting Eclipse 3.2, which uses OSGi bundles as plugin format.

The important files to have into account:

  • META-INF/MANIFEST.MF the OSGi manifest
  • plugin.properties plugin config
  • plugin.xml plugin config
  • build.properties binaries and sources definition to build with PDE
  • */.jar dependent libraries, need to be in the source folder for building with PDE. They are packaged in the same folder in the zip. eg. if jars are in x/y they end in x/y folder of the jar, PDE doesn't allow changing it.

Currently there are two integration points that overlap:

  • Maven Eclipse Plugin generate manifest and enable PDE nature
  • Apache Felix OSGi plugin can create an OSGi bundle, packaging dependencies, generating manifest,...
    • It doesn't set Require-Bundle in the manifest, it uses Import-Packages
    • Need a way to package some of the plugins as folders and not jars

An OSGi bundle can be easily created with the Felix OSGi plugin. Integration between Maven and PDE is other story.

  • manifest needs to be in \$
    Unknown macro: {basedir}

    /META-INF/MANIFEST.MF

    • jars need to be somewhere in \$
  • other plugin dependencies must be either opened in eclipse or installed in the workspace

This is a configuration that works

  • No labels