This page explains how to create new Eclipse plugin to use m2eclipse Extension Points.
You need Eclipse Classic or Eclipse for RCP/Plug-in Developers install from http://www.eclipse.org/downloads/packages/
Unless you want to add index extension point into an existing plugin, use File / New... / Project / Plug-in Project wizard. Then in the wizard specify project name, plugin symbolic name and version and don't use any templates to create project. So it would create you a blank Eclipse plugin.
Once you have plugin created, open Plugin Manifest editor (either from plugin.xml or meta-inf.mf file).
- On Dependencies tab click Add... and select org.maven.ide.eclipse bundle
- On Extensions tad click Add... and then select org.maven.ide.eclipse.indexes extension.
- After that you can specify parameters for your index, namely indexId and repository url.
Now you can build your plugin, feature and Eclipse update site. This is somewhat documented in Eclipse help and there is number of tutorials and examples on the net.
As an example you can use the following eclipse plugin sample project : m2EclipseIndexes.zip
This sample add 3 indexes. If you want to edit them just edit the file "plugin.xml".
And to generate this plugin use the "Export wizard" in the overview tab of the plugin.xml.