本文介绍了移动文件夹后找不到Maven Tycho RCP产品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

遵循 Vogella Maven-Tycho教程,我遇到了运行时错误.

Following the Vogella Maven-Tycho tutorial, I have ran into a runtime error.

导出项目后,我无法启动它.在我无头构建之后,以及在Eclipse导出向导构建之后,也会发生以下错误.

After exporting my project I am unable to launch it. The following error occurs after my headless build, and also after an eclipse export wizard build.

它将触发以下运行时错误:

It triggers the following runtime error:

!SESSION 2018-08-23 13:42:44.875 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_181
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments:  -clearPersistedState
Command-line arguments:  -os linux -ws gtk -arch x86_64 -clearPersistedState

!ENTRY org.eclipse.equinox.app 0 0 2018-08-23 13:42:47.327
!MESSAGE Product com.vogella.tycho.rcp.product could not be found.

我相信可能会触发此问题,因为本教程将您将rcp.product文件移至新目录.我已经尝试去运行->运行配置并添加了rcp插件.

I believe this might be triggered because the tutorial has you move the rcp.product file into a new directory. I have already tried to go to Run -> Run Configurations and have added the rcp plugin.

这是我的项目结构.丢失的产品文件已从./bundles/com.voglla.tycho.rcp/-> ./releng/com.vogella.tycho.product/

Here is my project structure. The missing product file was moved from ./bundles/com.voglla.tycho.rcp/ -> ./releng/com.vogella.tycho.product/

项目结构

如果您需要更多信息,请告诉我.

Please let me know if you need more information.

推荐答案

您需要将"com.vogella.tycho.rcp"插件添加到功能"com.vogella.tycho.feature"中.也就是说,该功能应同时包含com.vogella.tycho.plugin1& com.vogella.tycho.rcp.

You need to add the "com.vogella.tycho.rcp" plug-in to the feature "com.vogella.tycho.feature".That is, the feature should contain both com.vogella.tycho.plugin1 & com.vogella.tycho.rcp.

缺少com.vogella.tycho.rcp插件,因为该产品配置为基于功能,并且该缺少的插件不是功能的一部分.

The com.vogella.tycho.rcp plugin was missing, since the product is configured to be based on features, and that missing plugin is not part of a feature.

因此,这是说明中的错误,但不幸的是,您无法在原始网站上发表评论 http://www.vogella.com/tutorials/EclipseTycho/article.html#exercise-tycho-build-for-products .

So this is a bug in the instructions, but it is unfortunate that one cannot make comments on the original site http://www.vogella.com/tutorials/EclipseTycho/article.html#exercise-tycho-build-for-products.

这篇关于移动文件夹后找不到Maven Tycho RCP产品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-02 11:50