如何构建最新的第谷

发布于 2024-09-03 02:50:37 字数 1379 浏览 11 评论 0原文

我已经尝试构建第谷了几个小时,但就是无法让它工作。我已按照以下说明操作:

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

半山落雨半山空 2024-09-10 02:50:37

Tycho 文档相当糟糕,为了澄清事实,Tycho 现在默认包含在 Maven 存储库中;在 POM 中声明它会自动下载它并允许您使用它。

言归正传,这就是您需要放入 Maven POM 中才能使用 Tycho 的全部内容,然后下次 Maven 在项目中使用此 POM 时,如果您还没有它,它将获得 Tycho,并将其用于项目建造。在撰写本文时,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>

现在,假设您想使用“不稳定”的 Tycho,例如 0.13.0。然后您需要将插件中的版本号更改为适当的值,然后将其(最新的 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>

就这么简单。

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.

<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>. 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:

<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.

断念 2024-09-10 02:50:37

随着迁移到 eclipse.org,我们还为贡献者投资了更好的文档:

With the move to eclipse.org, we also invested in better documentation for contributors:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文