I see that a feature I want to build from HEAD (to get the benefit of bug fixes) is in git.eclipse.org. It used to be a bit tricky to build some Eclipse features from source, but now there is Tycho which is supposed to make it easier, because it uses Maven. Fortunately, I see that this feature has already been set up to use Tycho and Maven.
But how to use Tycho as an end-user is not exactly obvious - and I have tried running a Maven build with "clean install" as the Goal, but that failed.
Please give complete step by step instructions for how to run a Tycho build, starting with the source code checkout of the project to build, including installing any necessary software, and finishing with running Eclipse with the desired feature.
Also, what about if I want to make changes to the source code of the plugin(s) within Eclipse - does that mean I should use a different way of building it?
FYI, this is my concrete problem that lead to the general question above: I tried to build the feature org.eclipse.linuxtools/systemtap/org.eclipse.linuxtools.systemtap-feature
, and I have the systemtap
plugins checked out in sibling directories (because they are part of the same git repository, so I get them for free).
The error is:
[ERROR] Failed to execute goal org.eclipse.tycho.extras:tycho-source-feature-
plugin:0.14.0:source-feature (source-feature) on project org.eclipse.linuxtools.systemtap: Could not generate source feature for project MavenProject: org.eclipse.linuxtools.systemtap:org.eclipse.linuxtools.systemtap:1.2.0-SNAPSHOT @ /home/greenrd/git/org.eclipse.linuxtools/systemtap/org.eclipse.linuxtools.systemtap-feature/pom.xml
[ERROR] Missing sources for plugins [org.eclipse.linuxtools.systemtap.ui.consolelog_0.3.0.201203201951, org.eclipse.linuxtools.systemtap.ui.editor_0.3.0.201203201951, org.eclipse.linuxtools.systemtap.ui.graphingapi.nonui_0.3.0.201203201951, org.eclipse.linuxtools.systemtap.ui.graphingapi.ui_0.3.0.201203201951, org.eclipse.linuxtools.systemtap.ui.logging_0.3.0.201203201951, org.eclipse.linuxtools.systemtap.ui.structures_0.3.0.201203201951, org.eclipse.linuxtools.systemtap.ui.graphing_0.3.0.201203201951, org.eclipse.linuxtools.systemtap.ui.systemtapgui_0.3.0.201203201951, org.eclipse.linuxtools.systemtap.ui.ide_0.3.0.201203201951, org.eclipse.linuxtools.systemtap.ui.dashboard_0.3.0.201203201951, org.eclipse.linuxtools.systemtap.ui.dashboardextension_0.3.0.201203201951, org.eclipse.linuxtools.systemtap.ui.graphicalrun_0.3.0.201203201951]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException