2010-05-29 30 views
1

我试图建立Tycho现在几个小时,只是不能得到它的工作。我已经按照这些说明:如何构建最新的Tycho

https://docs.sonatype.org/display/TYCHO/BuildingTycho

所以,我下载的是Eclipse 3.6RC2和Delta-包从该指令链接(是它只有3.5?):

http:// (remove space) aniefer.blogspot.com/2009/06/using-deltapack-in-eclipse-35.html

我已将DeltaPack添加到Eclipse安装中的TargetPlatform中。

我已经安装的Maven:阿帕奇Maven的3.0-β-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:// (remove space) divby0.blogspot.com/2010/03/im-in-love-with-tycho-08-and-maven-3.html

和实际建成了运行Maven,但VERSI然后上无法找到第谷插件:

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 

我认为这个观点是说插件是要建立时,我已经建立了一个第谷 - 距离......?

很抱歉的链接,stackoverflows垃圾邮件保护不让我上传多个网址暂时还

+0

这个问题是关于一个古老的版本,第谷的 - 所描述的问题不再发生。 – oberlies 2012-08-22 08:13:06

+1

当然,我投票结束...... – 2012-08-22 08:41:23

回答

0

第谷文档非常糟糕,设置直,第谷包括在Maven仓库默认记录现在;在POM中声明它会自动下载并允许您使用它。要切入追逐,这就是所有你必须在你的Maven POM中使用Tycho,然后下一次Maven将这个POM用于一个项目,如果你还没有它,它将得到第谷用它来构建。在撰写本文时,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> 

现在,说,你想用一种 “不稳定的” 第谷,像<version>0.13.0</version>。然后,你想改变版本号的插件,以适当的值,然后添加这(最新的第谷仓库)到您的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> 

那么简单。

相关问题