The M2E discovery catalog is a document that describes an association between specific Maven plugins and M2E connectors that cooperate with those Maven plugins to make integration between Maven on the CLI and Maven in Eclipse smoother. The discovery catalog attempts to assist users when they importing Maven projects by suggesting connectors that are relevant to the projects they are importing.
As a normal Maven user in Eclipse there is nothing special you have to do. If you import a project type that has available connectors, they will be offered to you. The sections below are for those who want to add entries to the discovery catalog. You may be a developer of Maven plugins and have additionally created a M2E connector, or you might be adding an entry for some existing Eclipse integration that is known to work in conjunction with existing Maven plugins.
If you know that one of the connectors you use has been released in a new version then you can try the new connector by specifying the released catalog during the startup of Eclipse by updating the eclipse.ini file in your Eclipse installation:
-vmargs
...
...
-Dm2e.discovery.url=https://github.com/eclipse-m2e/m2e-discovery-catalog/releases/download/2.x/catalog-2.x.xml
All published catalogs are available as GitHub artifacts in Releases.
Adding new entries to the discovery catalog is a matter of creating a pull request with your new, well tested, entry. The process consists of making the appropriate edits to the connectors document, building the catalog, and testing the that the connector is available for your target project types and the import process works correctly.
While we would like to fully streamline the process of testing and pushing connectors into the publicly available catalog, this is what we have right now. As a developer of a connector, with the following instructions, you should be able to build the catalog locally with your changes and test that your connector is available from a publicly accessible site, will install, and works as expected.
Clone the Git repository containing the catalog entries and publishing mechanism:
git clone [email protected]:eclipse-m2e/m2e-discovery-catalog.git
Edit the connectors.xml file with your catalog entry which is here.
In the top level of the Git repository execute the following command:
mvn clean package
This will create the catalog and validate that all the update sites specified are accessible. This will also produce two catalog files that you can use for testing locally with only the file system.
Specify your newly built catalog by updating the eclipse.ini file in your Eclipse installation:
-vmargs
...
...
-Dm2e.discovery.url=file:/path/to/m2e-discovery-catalog/org.eclipse.m2e.discovery.oss/target/classes/catalogs/catalog-2.x.xml
Once you have tested your connector and feel that it's working as intended then submit a pull request and we will merge your catalog entry and publish a new catalog.