簡體   English   中英

帶有手動導出但沒有使用tycho生成的Eclipse產品啟動沒有找到應用程序ID依賴項問題

[英]eclipse product launching with manual export but not with tycho build no application id has been found dependency leaf issue

我正在嘗試自動化rcp應用程序的構建,當我創建導出日食產品時,它運行良好,但是當我使用帶有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>

我進行了這種排序,發現在eclipse中手動導出的插件的插件與使用maven tycho下載從Juno存儲庫下載的插件之間存在差異。

正在下載org.w3c.dom.smil版本1.0.1,該版本缺少依賴項。 使用正在運行的平台目標平台(Kerpler)的手動導出版本為1.0.0。

我通過對兩個文件的plugins目錄進行比較發現了這一點。

為了解決這個問題,我創建了一個tyty目標平台文件,並將其用作構建目標而不是存儲庫。

除了試圖通過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相反,它給了我類似的錯誤消息。

奇怪的是,我的Tycho產品仍然可以通過.exe啟動。

編輯:我想我知道原因。 我的產品基於功能,並且包含org.w3c.dom.smil(0.0.0),這意味着:使用存儲庫中的最新可用版本。 我猜Tycho找到了一個較新的版本,但它不會自動包含傳遞依賴項。 將Eclipse配置為使用與Tycho完全相同的目標平台可能是一個好主意,我想我會早發現問題的。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM