Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Recommenders/BuildingFromSource
Contents
Building Eclipse Code Recommenders from sources should be pretty easy. If some of the steps below fail - let us know.
Building with Maven without coverage tests
- Clone code recommenders git repository.
- Run 'mvn clean install'.
Building with Maven including coverage tests
- To run coverage tests you have to install Emma for measuring test coverage with maven. For a detailed description how to set up emma locally follow this guide.
- After installation run 'mvn clean install -P coverage'.
Building from Eclipse Workspace
Configuring Eclipse Code Recommenders Workspace for Eclipse is slightly more complicated:
- Clone code recommenders git repository.
- Run 'mvn clean install' once from the git repository root directory (required: downloads model.zips for overrides and calls recommender).
- Import all projects into your Eclipse workspace.
- Set the workspace's target platform.
- Go to org.eclipse.recommenders.releng
- Open 'devel-3.6.target' target definition with target platform editor
- Wait until Eclipse resolved all dependencies. Check the progress view to see when resolving finished.
- Now click on the 'Set as target platform' link on the upper right corner of the editor.
- Wait until workspace is rebuild and all compile errors went away (maybe except from the testdata project)
- Done. Start your Eclipse runtime and trigger code completion on some Eclipse UI classes.
Trouble with Building Code Recommenders?
Please let us know! Point your browser to http://eclipse.org/forums/eclipse.recommenders and drop us a few lines there.