简体   繁体   English

第谷Maven离线版本

[英]Tycho Maven Offline Build

We are building our Eclipse RCP application using Maven/Tycho. 我们正在使用Maven / Tycho构建Eclipse RCP应用程序。 Inside eclipse everything works as expected with 在eclipse中,一切正常

clean install

However, as our build server is a virtual machine without internet connection, this won't work. 但是,由于我们的构建服务器是没有互联网连接的虚拟机,因此无法使用。 We run 我们跑

clean install --offline 

on it but it keeps saying: 关于它,但它一直在说:

The POM for org.eclipse.tycho:tycho-maven-plugin:jar:0.25.0 is missing, no dependency information available

[ERROR] Some problems were encountered while processing the POMs:

Unresolveable build extension: Plugin org.eclipse.tycho:tycho-maven-plugin:0.25.0 or one of its dependencies could not be resolved: 
The following artifacts could not be resolved: org.eclipse.tycho:tycho-maven-plugin:jar:0.25.0, org.codehaus.plexus:plexus-utils:jar:1.1:
Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.eclipse.tycho:tycho-maven-plugin:jar:0.25.0 has not been downloaded from it before. 

Is it possible to have the tycho-maven-plugin available offline? tycho-maven-plugin是否可以脱机使用? We can provide the POMs as well, if you need it for answering. 如果您需要回答,我们也可以提供POM。

Yes, Tycho does support --offline (at least since Tycho 0.25, which fixes Bug 461787 ). 是的,Tycho确实支持--offline (至少自Tycho 0.25起,已修复Bug 461787 )。 The error message you quote, however, indicates that Tycho itself was not downloaded completely by your initial mvn clean install . 但是,您引用的错误消息表明,最初的mvn clean install未完全下载Tycho 本身

Check that both org.eclipse.tycho:tycho-maven-plugin:jar:0.25.0 and org.codehaus.plexus:plexus-utils:jar:1.1 (from the error message) are present in your local Maven repository, as Maven complains it can't find them there. 检查org.eclipse.tycho:tycho-maven-plugin:jar:0.25.0org.codehaus.plexus:plexus-utils:jar:1.1 (来自错误消息)是否都以Maven的形式存在于本地Maven存储库中抱怨说在那里找不到他们。 Did you clean your local repository in the meantime? 您是否同时清理了本地存储库?

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

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