首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Tycho插件无法构建产品

Tycho插件无法构建产品
EN

Stack Overflow用户
提问于 2017-03-09 14:40:00
回答 1查看 1.1K关注 0票数 1

我有一个E4项目,它包含一个产品和一个插件。当使用Tycho构建基于插件的应用程序时,我会得到以下错误。

代码语言:javascript
复制
Cannot resolve dependencies of product CR-IT_client.product:
eclipse-plugin artifact with ID "CR-IT_client" and version matching "0.0.0" was not found in the target platform

上周,我编译了它,没有任何错误,但是在清除maven缓存之后,它就不再工作了。我怎么才能解决这个问题?

当再次使用缓存时,它将编译,但它将使用旧jar文件,而不是上次编译的jar文件。

当使用'mvn干净安装‘编译时,我得到以下Maven输出:

代码语言:javascript
复制
INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\air27654\Documents\Source\framework\CR-IT client\src\main\resources
[INFO] 
[INFO] --- target-platform-configuration:1.0.0:target-platform (default-target-platform) @ eclipse-repository ---
[INFO] 
[INFO] --- tycho-p2-publisher-plugin:1.0.0:publish-products (default-publish-products) @ eclipse-repository ---
[ERROR] Cannot resolve dependencies of product CR-IT_client.product:
[ERROR]   eclipse-plugin artifact with ID "CR-IT_client" and version matching "0.0.0" was not found in the target platform
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] RCP Parent ......................................... SUCCESS [  5.794 s]
[INFO] CR IT Client Repository ............................ FAILURE [  5.034 s]
[INFO] CR IT Client Target Definition ..................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 05:26 min
[INFO] Finished at: 2017-03-10T07:48:10+01:00
[INFO] Final Memory: 161M/692M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-p2-publisher-plugin:1.0.0:publish-products (default-publish-products) on project eclipse-repository: Execution default-publish-products of goal org.eclipse.tycho:tycho-p2-publisher-plugin:1.0.0:publish-products failed: Cannot resolve dependencies of product CR-IT_client.product. See log for details. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :eclipse-repository
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-03-09 17:12:35

Tycho要求您有两个项目,一个用于eclipse-repository,另一个用于定义产品的eclipse-plugin。两者都应该是聚合程序POM的<modules>。然后Tycho将能够在一个mvn clean install上找到所有东西(即使有一个干净的缓存)。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42698157

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档