我正在尝试自动构建rcp应用程序我在创建导出eclipse产品时工作正常但是当我使用带有tycho插件的maven生成我的rcp应用程序时,当我转到目标时它无法启动并双击启动器
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho-version}</version>
<configuration>
<environments>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86_64</arch>
</environment>
</environments>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<version>${tycho-version}</version>
<extensions>true</extensions>
</plugin>
</plugins>
然而,当我安装mvn安装我的软件包时,我有我的启动器,但是它失败了,配置中出现以下错误日志:
!SESSION 2013-09-01 16:30:34.345 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_45
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_IE
Command-line arguments: -os win32 -ws win32 -arch x86_64
!ENTRY org.eclipse.equinox.app 0 0 2013-09-01 16:30:35.484
!MESSAGE Product com.hallahan.premierplugin.premierProduct could not be found.
!ENTRY org.eclipse.osgi 2 0 2013-09-01 16:30:35.562
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-09-01 16:30:35.562
!MESSAGE Bundle initial@reference:file:plugins/org.w3c.dom.svg_1.1.0.v201011041433.jar was not resolved.
!SUBENTRY 2 org.w3c.dom.svg 2 0 2013-09-01 16:30:35.562
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=JavaSE)(version=1.4))(&(osgi.ee=JavaSE)(version=1.3))(&(osgi.ee=CDC/Foundation)(version=1.0)))".
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-09-01 16:30:35.562
!MESSAGE Bundle initial@reference:file:plugins/org.w3c.dom.smil_1.0.1.v200903091627.jar was not resolved.
!SUBENTRY 2 org.w3c.dom.smil 2 0 2013-09-01 16:30:35.562
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=JavaSE)(version=1.4))(&(osgi.ee=JavaSE)(version=1.3))(&(osgi.ee=CDC/Foundation)(version=1.0)))".
!SUBENTRY 2 org.w3c.dom.smil 2 0 2013-09-01 16:30:35.562
!MESSAGE Missing imported package org.w3c.dom.events_[3.0.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-09-01 16:30:35.562
!MESSAGE Bundle initial@reference:file:plugins/org.eclipse.ui_3.104.0.v20121024-145224.jar was not resolved.
!SUBENTRY 2 org.eclipse.ui 2 0 2013-09-01 16:30:35.562
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=CDC/Foundation)(version=1.0))(&(osgi.ee=JavaSE)(version=1.3)))".
!ENTRY org.eclipse.osgi 2 0 2013-09-01 16:30:35.608
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-09-01 16:30:35.608
!MESSAGE Bundle com.hallahan.premierplugin_1.0.0.201309011530 [1] was not resolved.
!SUBENTRY 2 com.hallahan.premierplugin 2 0 2013-09-01 16:30:35.608
!MESSAGE Missing required bundle org.eclipse.ui_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-09-01 16:30:35.608
!MESSAGE Bundle org.apache.batik.css_1.6.0.v201011041432 [6] was not resolved.
!SUBENTRY 2 org.apache.batik.css 2 0 2013-09-01 16:30:35.608
!MESSAGE Missing required bundle org.w3c.dom.svg_[1.1.0,1.3.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-09-01 16:30:35.608
!MESSAGE Bundle org.eclipse.e4.ui.css.core_0.10.2.v20120912-132817 [24] was not resolved.
!SUBENTRY 2 org.eclipse.e4.ui.css.core 2 0 2013-09-01 16:30:35.608
!MESSAGE Missing required bundle org.apache.batik.css_[1.6.0,1.7.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-09-01 16:30:35.608
!MESSAGE Bundle org.eclipse.e4.ui.css.swt_0.10.3.v20130123-162658 [25] was not resolved.
!SUBENTRY 2 org.eclipse.e4.ui.css.swt 2 0 2013-09-01 16:30:35.608
!MESSAGE Missing required bundle org.eclipse.e4.ui.css.core_0.9.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-09-01 16:30:35.608
!MESSAGE Bundle org.eclipse.e4.ui.css.swt.theme_0.9.4.v20130123-162658 [26] was not resolved.
!SUBENTRY 2 org.eclipse.e4.ui.css.swt.theme 2 0 2013-09-01 16:30:35.608
!MESSAGE Missing required bundle org.eclipse.e4.ui.css.swt_0.9.1.
!SUBENTRY 2 org.eclipse.e4.ui.css.swt.theme 2 0 2013-09-01 16:30:35.608
!MESSAGE Missing required bundle org.eclipse.e4.ui.css.core_0.9.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-09-01 16:30:35.608
!MESSAGE Bundle org.eclipse.e4.ui.workbench.addons.swt_0.10.3.v20130124-185622 [32] was not resolved.
!SUBENTRY 2 org.eclipse.e4.ui.workbench.addons.swt 2 0 2013-09-01 16:30:35.608
!MESSAGE Missing required bundle org.eclipse.e4.ui.workbench.renderers.swt_0.9.1.
!SUBENTRY 2 org.eclipse.e4.ui.workbench.addons.swt 2 0 2013-09-01 16:30:35.608
!MESSAGE Missing required bundle org.eclipse.e4.ui.css.swt_0.9.1.
!SUBENTRY 2 org.eclipse.e4.ui.workbench.addons.swt 2 0 2013-09-01 16:30:35.608
!MESSAGE Missing required bundle org.eclipse.e4.ui.css.core_0.9.0.
!SUBENTRY 2 org.eclipse.e4.ui.workbench.addons.swt 2 0 2013-09-01 16:30:35.608
!MESSAGE Missing imported package org.eclipse.e4.ui.internal.workbench.swt_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-09-01 16:30:35.608
!MESSAGE Bundle org.eclipse.e4.ui.workbench.renderers.swt_0.10.3.v20130124-170312 [33] was not resolved.
!SUBENTRY 2 org.eclipse.e4.ui.workbench.renderers.swt 2 0 2013-09-01 16:30:35.608
!MESSAGE Missing required bundle org.eclipse.e4.ui.workbench.swt_0.9.0.
!SUBENTRY 2 org.eclipse.e4.ui.workbench.renderers.swt 2 0 2013-09-01 16:30:35.608
!MESSAGE Missing required bundle org.eclipse.e4.ui.css.swt.theme_0.9.0.
!SUBENTRY 2 org.eclipse.e4.ui.workbench.renderers.swt 2 0 2013-09-01 16:30:35.608
!MESSAGE Missing required bundle org.eclipse.e4.ui.css.core_0.9.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-09-01 16:30:35.608
!MESSAGE Bundle org.eclipse.e4.ui.workbench.swt_0.10.3.v20130124-133900 [34] was not resolved.
!SUBENTRY 2 org.eclipse.e4.ui.workbench.swt 2 0 2013-09-01 16:30:35.608
!MESSAGE Missing required bundle org.eclipse.e4.ui.css.core_0.9.0.
!SUBENTRY 2 org.eclipse.e4.ui.workbench.swt 2 0 2013-09-01 16:30:35.608
!MESSAGE Missing required bundle org.eclipse.e4.ui.css.swt_0.9.0.
!SUBENTRY 2 org.eclipse.e4.ui.workbench.swt 2 0 2013-09-01 16:30:35.608
!MESSAGE Missing required bundle org.eclipse.e4.ui.css.swt.theme_0.9.0.
!SUBENTRY 2 org.eclipse.e4.ui.workbench.swt 2 0 2013-09-01 16:30:35.608
!MESSAGE Missing imported package org.apache.batik.css.engine_1.6.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-09-01 16:30:35.608
!MESSAGE Bundle org.eclipse.ui_3.104.0.v20121024-145224 [55] was not resolved.
!SUBENTRY 2 org.eclipse.ui 2 0 2013-09-01 16:30:35.608
!MESSAGE Missing required bundle org.eclipse.ui.workbench_[3.103.0,4.0.0).
!SUBENTRY 2 org.eclipse.ui 2 0 2013-09-01 16:30:35.608
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=CDC/Foundation)(version=1.0))(&(osgi.ee=JavaSE)(version=1.3)))".
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-09-01 16:30:35.608
!MESSAGE Bundle org.eclipse.ui.workbench_3.104.0.v20130204-164612 [56] was not resolved.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2013-09-01 16:30:35.608
!MESSAGE Missing required bundle org.eclipse.e4.ui.workbench.swt_0.9.1.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2013-09-01 16:30:35.608
!MESSAGE Missing required bundle org.eclipse.e4.ui.css.swt.theme_0.9.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2013-09-01 16:30:35.608
!MESSAGE Missing required bundle org.eclipse.e4.ui.css.swt_0.9.1.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2013-09-01 16:30:35.608
!MESSAGE Missing required bundle org.eclipse.e4.ui.css.core_0.9.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2013-09-01 16:30:35.608
!MESSAGE Missing required bundle org.eclipse.e4.ui.workbench.addons.swt_0.10.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2013-09-01 16:30:35.608
!MESSAGE Missing imported package org.eclipse.e4.ui.internal.workbench.renderers.swt_0.0.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2013-09-01 16:30:35.608
!MESSAGE Missing imported package org.eclipse.e4.ui.internal.workbench.swt_0.0.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2013-09-01 16:30:35.608
!MESSAGE Missing imported package org.eclipse.e4.ui.workbench.renderers.swt_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-09-01 16:30:35.608
!MESSAGE Bundle org.w3c.dom.smil_1.0.1.v200903091627 [58] was not resolved.
!SUBENTRY 2 org.w3c.dom.smil 2 0 2013-09-01 16:30:35.608
!MESSAGE Missing imported package org.w3c.dom.events_[3.0.0,4.0.0).
!SUBENTRY 2 org.w3c.dom.smil 2 0 2013-09-01 16:30:35.608
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=JavaSE)(version=1.4))(&(osgi.ee=JavaSE)(version=1.3))(&(osgi.ee=CDC/Foundation)(version=1.0)))".
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-09-01 16:30:35.608
!MESSAGE Bundle org.w3c.dom.svg_1.1.0.v201011041433 [59] was not resolved.
!SUBENTRY 2 org.w3c.dom.svg 2 0 2013-09-01 16:30:35.608
!MESSAGE Missing required bundle org.w3c.dom.smil_[1.0.0,1.1.0).
!SUBENTRY 2 org.w3c.dom.svg 2 0 2013-09-01 16:30:35.608
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=JavaSE)(version=1.4))(&(osgi.ee=JavaSE)(version=1.3))(&(osgi.ee=CDC/Foundation)(version=1.0)))".
!ENTRY org.eclipse.osgi 4 0 2013-09-01 16:30:35.608
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: No application id has been found.
at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:242)
at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
我的插件的依赖性似乎存在一些问题
osgi> diag 1
initial@reference:file:plugins/com.hallahan.premierplugin_1.0.0.201309021643.jar
[1]
Direct constraints which are unresolved:
Missing required bundle org.eclipse.ui_0.0.0.
Leaf constraints in the dependency chain which are unresolved:
initial@reference:file:plugins/org.w3c.dom.smil_1.0.1.v200903091627.jar [62]
Missing imported package org.w3c.dom.events_[3.0.0,4.0.0).
initial@reference:file:plugins/org.w3c.dom.smil_1.0.1.v200903091627.jar [62]
Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi
.ee=JavaSE)(version=1.4))(&(osgi.ee=JavaSE)(version=1.3))(&(osgi.ee=CDC/Foundati
on)(version=1.0)))".
initial@reference:file:plugins/org.eclipse.ui_3.104.0.v20121024-145224.jar [
59]
Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi
.ee=CDC/Foundation)(version=1.0))(&(osgi.ee=JavaSE)(version=1.3)))".
initial@reference:file:plugins/org.w3c.dom.svg_1.1.0.v201011041433.jar [63]
Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi
.ee=JavaSE)(version=1.4))(&(osgi.ee=JavaSE)(version=1.3))(&(osgi.ee=CDC/Foundati
on)(version=1.0)))".
osgi>
答案 0 :(得分:0)
我有这个排序我发现eclipse中手动导出的插件的插件与使用maven tycho下载从Juno存储库下载的插件之间存在差异。
正在下载org.w3c.dom.smil版本1.0.1,该版本缺少依赖项。虽然使用运行平台目标平台(Kerpler)的手动导出是1.0.0版本。
我通过在两个文件的plugins目录上执行diff来发现这一点。
为了解决这个问题,我创建了一个tycho目标平台文件,并将其作为我的构建目标,而不是存储库。
答案 1 :(得分:0)
我看到完全相同的问题,除了我试图通过webstart运行产品。 PDE导出向导使用了org.w3c.dom.smil_1.0.0.v200806040011.jar但是Tycho的目标平台(存储库http://download.eclipse.org/releases/kepler)以某种方式使用了org.w3c.dom.smil_1.0.1.v200903091627.jar而不是给了我一个类似的错误信息。
奇怪的是,我的第谷产品仍然可以通过.exe发布。
编辑:我想我知道原因。我的产品基于功能,包括org.w3c.dom.smil(0.0.0),表示:使用存储库中的最新可用版本。我想Tycho发现了一个更新的版本,但它不会自动包含传递依赖。配置Eclipse以使用与Tycho完全相同的目标平台可能是一个好主意,我想我会更快地找到问题。