我看到我想从 HEAD 构建的一个功能(以获得错误修复的好处)在 git.eclipse.org 中。从源代码构建一些 Eclipse 特性过去有点棘手,但现在有了 Tycho,它应该更容易,因为它使用 Maven。幸运的是,我看到这个功能已经设置为使用 Tycho 和 Maven。
但是如何将 Tycho 用作最终用户并不十分明显——我曾尝试以“全新安装”为目标运行 Maven 构建,但失败了。
请提供有关如何运行 Tycho 构建的完整分步说明,从要构建的项目的源代码检查开始,包括安装任何必要的软件,最后运行具有所需功能的 Eclipse。
另外,如果我想在 Eclipse 中更改插件的源代码,那是否意味着我应该使用不同的方式来构建它?
仅供参考,这是导致上述一般问题的具体问题:我尝试构建功能org.eclipse.linuxtools/systemtap/org.eclipse.linuxtools.systemtap-feature
,并且我systemtap
在同级目录中签出了插件(因为它们是同一个 git 存储库的一部分,所以我免费获得它们) .
错误是:
[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