有人真正让第谷工作过吗?

发布于 2024-08-30 13:17:21 字数 478 浏览 13 评论 0原文

我正在尝试让第谷与 m2eclipse 一起工作。问题是我发现的都是过时的网站和旧版本可供下载。我找到了 http://github.com/sonatype/sonatype-tycho并下载了源码。问题是 https://docs.sonatype.org/display/TYCHO/BuildingTycho< 上的指南/a> 没有太大帮助。当尝试构建时,我遇到一条错误消息,指出我正在使用无效语法......而且似乎没有地方可以寻求进一步的指导。

那么有人真正做到了这一点吗?或者有更好的替代方案用于 Eclipse 插件的持续集成/自动构建解决方案?

I'm trying to get Tycho working with m2eclipse. Problem is that all I find are outdated sites and old versions to download. I've found my way to http://github.com/sonatype/sonatype-tycho and downloaded the source. Problem is that the guide at https://docs.sonatype.org/display/TYCHO/BuildingTycho isn't of much help. When trying to build I run into an error message saying I'm using invalid syntax..... And there seems to be nowhere to ask for further guidance.

So are there anyone out there who actually got this working? Or got a better alternative for continuous integration / automatic build solution for eclipse plug-ins?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(4

坦然微笑 2024-09-06 13:17:21

Tycho 是一个 Maven 插件,因此您不需要下载它,只需在 pom.xml 文件中声明它即可。

请参阅 http://github.com/sonatype/ sonatype-tycho/tree/master/tycho-its/projects/tycho001/ 了解简单项目的详细信息。

Tycho is a maven plugin, so you don't need to download it, just declare it in your pom.xml files.

See http://github.com/sonatype/sonatype-tycho/tree/master/tycho-its/projects/tycho001/ for details of a simple project.

难如初 2024-09-06 13:17:21

Igor Fedorenko 的提示帮助我让它运行起来:
https://issues.sonatype.org/browse/MNGECLIPSE-2140?focusedCommentId=115527&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_115527

如果您没有被催促不过,我建议等待即将到来的 m2eclipse 更新。最近宣布将在 Maven 3 发布后不久推出。

This hint from Igor Fedorenko helped me to get it running:
https://issues.sonatype.org/browse/MNGECLIPSE-2140?focusedCommentId=115527&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_115527

If you are not pressed for time, I'd suggest to wait for the upcoming Update of m2eclipse, though. It was recently announced to follow shortly after Maven 3 release.

醉酒的小男人 2024-09-06 13:17:21

Robert,只要您不尝试构建 Eclipse 应用程序,它就对我有用。我已将其集成到 CruiseControl 中,并且我对构建和测试插件感到非常满意。

对我来说主要的技巧是忽略所有 P2/目标的东西。我根本无法让它工作。相反,我使用指向 Eclipse 安装的参数调用 maven,如下所示:

mvn -Dtycho.targetPlatform=C:\Programmer\eclipse

这些是必要的插件定义:

<plugins>
  <plugin>
    <groupId>org.eclipse.tycho</groupId>
    <artifactId>tycho-maven-plugin</artifactId>
    <version>${tycho-version}</version>
    <extensions>true</extensions>
  </plugin>
  <plugin>
    <groupId>org.eclipse.tycho</groupId>
    <artifactId>tycho-compiler-plugin</artifactId>
    <version>${tycho-version}</version>
    <configuration>
      <source>1.6</source>
      <target>1.6</target>
    </configuration>
  </plugin>
</plugins>

当前 Tycho 版本是 0.13.0。

我想构建 Eclipse 应用程序,但需要我自己的支持。
我希望这有帮助。

干杯,
克劳斯

Robert, it does work for me as long as you don't try to build an Eclipse application. I have integrated it into CruiseControl and I am quite happy with building and testing plugins.

The main trick for me was to ignore all the P2/target stuff. I couldn't get it to work at all. Instead I call maven with an parameter that points to the Eclipse installation like this:

mvn -Dtycho.targetPlatform=C:\Programmer\eclipse

These are the necessary Plugin definitions:

<plugins>
  <plugin>
    <groupId>org.eclipse.tycho</groupId>
    <artifactId>tycho-maven-plugin</artifactId>
    <version>${tycho-version}</version>
    <extensions>true</extensions>
  </plugin>
  <plugin>
    <groupId>org.eclipse.tycho</groupId>
    <artifactId>tycho-compiler-plugin</artifactId>
    <version>${tycho-version}</version>
    <configuration>
      <source>1.6</source>
      <target>1.6</target>
    </configuration>
  </plugin>
</plugins>

Current Tycho Version is 0.13.0.

I would like to build Eclipse Applications but need support myself for that.
I hope that helps.

Cheers,
Klaus

方圜几里 2024-09-06 13:17:21

我在使用 Tycho 时遇到了一些麻烦,直到我意识到它需要 Maven 3。如果您运行的是 Maven 2,它将无法工作。

I had trouble with Tycho for a while until I realized it required Maven 3. If you're running Maven 2 it won't work.

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