Tycho 插件无法构建产品

Tycho plugin cannot build product

我有一个包含产品和插件的 E4 项目。使用 Tycho 构建基于插件的应用程序时出现以下错误。

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 文件,而不是上次编译的文件。

使用 'mvn clean install' 编译时,我得到以下 Maven 输出:

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

Tycho 要求您有两个项目,一个用于定义您的产品的 eclipse-repository and one for the eclipse-plugin。两者都应该是聚合器 POM 的 <modules>。然后 Tycho 将能够在单个 mvn clean install.

上找到所有内容(即使缓存是干净的)