简体   繁体   English

如何建立最新的Tycho

[英]How do I build latest Tycho

I've tried to build Tycho now for a couple of hours and just can't get it to work. 我已经尝试构建Tycho了几个小时,但无法使其正常工作。 I've followed these instructions: 我已遵循以下指示:

https://docs.sonatype.org/display/TYCHO/BuildingTycho 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?): 因此,我已经下载了从该指令链接的Eclipse 3.6RC2和Delta-packs(仅适用于3.5吗?):

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. 我已经将DeltaPack添加到Eclipse安装中的TargetPlatform中。

I've installed Maven: Apache Maven 3.0-beta-1 (r935667; 2010-04-19 19:00:39+0200) 我已经安装了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 我可以运行构建的第一个引导程序,但是第二个失败: 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 我尝试了其他方法,在此博客文章中针对3.5构建了一个较旧的修订版: 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: 并且实际上构建了一个正在运行的Maven,但是该版本找不到tycho插件:

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…? 我以为重点是,当我构建了Tycho-dist时,该插件将要构建……?

Sorry about the links, stackoverflows spam-protection doesn't let me post more than one url yet 抱歉,链接,stackoverflows垃圾邮件保护功能尚未允许我发布多个网址

With the move to eclipse.org, we also invested in better documentation for contributors: 通过移至eclipse.org,我们还为贡献者投资了更好的文档:

The Tycho documentation is pretty bad, to set the record straight, Tycho is included in the Maven repositories by default now; Tycho文档非常糟糕,要保持记录,现在默认情况下Tycho已包含在Maven存储库中。 declaring it in your POM will automatically download it and allow you to use it. 在您的POM中声明它会自动下载并允许您使用它。

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. 要追赶,这就是您需要在Maven POM中放入使用Tycho的全部内容,然后下一次Maven将这个POM用于项目时,如果您还没有将其用作Tycho,它将得到Tycho。建立。 At the time of this writing, 0.12.0 is the latest stable release. 在撰写本文时,0.12.0是最新的稳定版本。

<build>
    <plugins>
        <plugin>
            <groupId>org.eclipse.tycho</groupId>
            <artifactId>tycho-maven-plugin</artifactId>
            <version>0.12.0</version>
            <extensions>true</extensions>
        </plugin>
    </plugins>
</build>

Now, say, you would like to use an "unstable" Tycho, like <version>0.13.0</version> . 现在,假设您要使用“不稳定”的Tycho,例如<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: 然后,您想将插件中的版本号更改为适当的值,然后将此(最新的Tycho存储库)添加到您的POM中:

<pluginRepositories>
    <pluginRepository>
        <id>sonatype-release</id>
        <url>http://repository.sonatype.org/content/groups/sonatype-public-grid
        </url>
        <releases>
            <enabled>true</enabled>
        </releases>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
    </pluginRepository>
</pluginRepositories>

That simple. 这么简单。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM