如何构建最新的第谷
我已经尝试构建第谷了几个小时,但就是无法让它工作。我已按照以下说明操作:
https://docs.sonatype.org/display/TYCHO/BuildingTycho
所以,我已经下载了从此指令链接的 Eclipse 3.6RC2 和 Delta-packs(仅适用于 3.5?):
http://(删除空格)aniefer.blogspot.com/2009/06 /using-deltapack-in-eclipse-35.html
我已将 DeltaPack 添加到 Eclipse 安装内的 TargetPlatform 中。
我已经安装了 Maven:Apache Maven 3.0-beta-1 (r935667; 2010-04-19 19:00:39+0200)
我可以运行构建的第一个引导程序,但第二个失败: mvn clean install -e -V -Pbootstrap-2 -Dtycho.targetPlatform=$TYCHO_TARGET_PLATFORM
ERROR] Internal error: java.lang.RuntimeException:
Could not resolve plugin org.eclipse.core.net.linux.x86_null -> [Help 1]
我尝试过不同的东西,我针对 3.5 构建了一个较旧的版本,如本博文中所示: http://(删除空格)divby0.blogspot.com/2010/03/im-in-love-with-tycho-08-and-maven-3.html
实际上构建了一个正在运行的maven,但该版本找不到第谷插件:
org.apache.maven.plugin.version.PluginVersionResolutionException: Error resolving version for plugin 'org.codehaus.tycho:maven-tycho-plugin' from the repositories [local (/Users/viktor/.m2/repository), central (http://repo1.maven.org/maven2)]: Plugin not found in any plugin repository
我认为重点是当我构建了第谷-dist 时,该插件将被构建......?
对这些链接表示抱歉,stackoverflows 垃圾邮件防护功能还不允许我发布多个网址
I've tried to build Tycho now for a couple of hours and just can't get it to work. I've followed these instructions:
https://docs.sonatype.org/display/TYCHO/BuildingTycho
So, I've downloaded Eclipse 3.6RC2 and Delta-packs linked from this instruction (is it for 3.5 only?):
http:// (remove space) aniefer.blogspot.com/2009/06/using-deltapack-in-eclipse-35.html
I've added the DeltaPack to the TargetPlatform inside of the Eclipse-installation.
I've installed Maven: Apache Maven 3.0-beta-1 (r935667; 2010-04-19 19:00:39+0200)
I can run the first bootstrap of the build, but the second fails:mvn clean install -e -V -Pbootstrap-2 -Dtycho.targetPlatform=$TYCHO_TARGET_PLATFORM
ERROR] Internal error: java.lang.RuntimeException:
Could not resolve plugin org.eclipse.core.net.linux.x86_null -> [Help 1]
I've tried different stuff, I built an older revision against 3.5 as in this blogpost:http:// (remove space) divby0.blogspot.com/2010/03/im-in-love-with-tycho-08-and-maven-3.html
and that actually built a running maven, but that version then can't find the tycho plugin:
org.apache.maven.plugin.version.PluginVersionResolutionException: Error resolving version for plugin 'org.codehaus.tycho:maven-tycho-plugin' from the repositories [local (/Users/viktor/.m2/repository), central (http://repo1.maven.org/maven2)]: Plugin not found in any plugin repository
I thought that the point was that the plugin was going to build in when I had built a Tycho-dist…?
Sorry about the links, stackoverflows spam-protection doesn't let me post more than one url yet
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Tycho 文档相当糟糕,为了澄清事实,Tycho 现在默认包含在 Maven 存储库中;在 POM 中声明它会自动下载它并允许您使用它。
言归正传,这就是您需要放入 Maven POM 中才能使用 Tycho 的全部内容,然后下次 Maven 在项目中使用此 POM 时,如果您还没有它,它将获得 Tycho,并将其用于项目建造。在撰写本文时,0.12.0 是最新的稳定版本。
现在,假设您想使用“不稳定”的 Tycho,例如
0.13.0
。然后您需要将插件中的版本号更改为适当的值,然后将其(最新的 Tycho 存储库)添加到您的 POM 中:就这么简单。
The Tycho documentation is pretty bad, to set the record straight, Tycho is included in the Maven repositories by default now; declaring it in your POM will automatically download it and allow you to use it.
To cut to the chase, this is all you have to put in your Maven POM to use Tycho, and then next time Maven uses this POM for a project, it will get Tycho if you don't already have it and use it for the build. At the time of this writing, 0.12.0 is the latest stable release.
Now, say, you would like to use an "unstable" Tycho, like
<version>0.13.0</version>
. Then you would want to change the version number in the plugin to the appropriate value, and then add this (The latest Tycho repository) to your POM:That simple.
随着迁移到 eclipse.org,我们还为贡献者投资了更好的文档:
With the move to eclipse.org, we also invested in better documentation for contributors: