2017-06-06 73 views
0

我想安裝處女座工具Eclipse插件使用P2安裝目錄,因爲我想直接從命令行安裝而不是從GUI安裝。我得到下面的錯誤,似乎有一些依賴關係問題。我試圖解決依賴關係,但我仍然面臨同樣的問題。我也在網上搜索,無法找到解決這個問題的好方法。Eclipse:處女座工具插件安裝使用P2目錄

Cannot complete the install because one or more required items could not be found. 
Software being installed: Eclipse Virgo Tools 1.5.0.R01-RELEASE (org.eclipse.virgo.ide.feature.feature.group 1.5.0.R01-RELEASE) 
Missing requirement: Eclipse Virgo IDE (Server Core) 1.5.0.R01-RELEASE (org.eclipse.virgo.ide.runtime.core 1.5.0.R01-RELEASE) requires 'bundle org.json 0.0.0' but it could not be found 
Cannot satisfy dependency: 
    From: Eclipse Virgo Tools 1.5.0.R01-RELEASE (org.eclipse.virgo.ide.feature.feature.group 1.5.0.R01-RELEASE) 
    To: org.eclipse.virgo.ide.runtime.core [1.5.0.R01-RELEASE] 

請注意,插件安裝從Eclipse GUI工作。我還安裝了其他來自命令行的插件,並且工作,只有處女座工具插件面臨問題。

回答

0

Virgo工具依賴Virgo服務器和其他幾個Eclipse項目。使用p2 director從命令行進行安裝時,您必須指定要安裝的功能的逗號分隔列表以及包含這些功能(和依賴關係)的p2存儲庫列表。

下面是創建一個Eclipse +處女座工具從霓虹燈RCP運行時分發開始,增加JDT,例如:It,網絡工具等等,等等

我創建它從一個工作腳本我有一個例子,消除一些非常特殊的插件我使用。你可能想看看它作爲一個例子,我不保證它修改後的作品。

如果不是從Neon for JavaEE開發者開始,您可以刪除大部分功能和存儲庫。

#!/bin/sh 

./eclipse -nosplash -debug -consolelog -application org.eclipse.equinox.p2.director\ 
-i \ 
org.eclipse.recommenders.rcp.feature.feature.group,\ 
org.eclipse.recommenders.mylyn.rcp.feature.feature.group,\ 
org.eclipse.egit.feature.group,\ 
org.eclipse.egit.gitflow.feature.feature.group,\ 
org.eclipse.egit.mylyn.feature.group,\ 
org.eclipse.mylyn.github.feature.feature.group,\ 
org.eclipse.jdt.feature.group,\ 
org.eclipse.jst.enterprise_ui.feature.feature.group,\ 
org.eclipse.jst.web_ui.feature.feature.group,\ 
org.eclipse.virgo.ide.feature.feature.group,\ 
org.eclipse.wst.web_ui.feature.feature.group,\ 
org.eclipse.wst.xml_ui.feature.feature.group,\ 
org.eclipse.wst.xsl.feature.feature.group,\ 
org.eclipse.emf.sdk.feature.group,\ 
org.eclipse.wst.jsdt.feature.feature.group,\ 
org.eclipse.m2e.feature.feature.group,\ 
org.eclipse.epp.mpc.feature.group,\ 
org.eclipse.mylyn.hudson.feature.group,\ 
org.eclipse.mylyn.ide_feature.feature.group,\ 
org.eclipse.mylyn.java_feature.feature.group,\ 
org.eclipse.mylyn.pde_feature.feature.group,\ 
org.eclipse.mylyn.team_feature.feature.group,\ 
org.eclipse.mylyn.gerrit.feature.feature.group,\ 
org.eclipse.mylyn.gerrit.dashboard.feature.feature.group,\ 
org.eclipse.mylyn_feature.feature.group,\ 
org.eclipse.mylyn.context_feature.feature.group,\ 
org.eclipse.mylyn.bugzilla_feature.feature.group,\ 
org.eclipse.mylyn.git.feature.group,\ 
org.eclipse.mylyn.wikitext_feature.feature.group,\ 
org.eclipse.tm.terminal.feature.feature.group,\ 
org.sonatype.tycho.m2e.feature.feature.group,\ 
org.sonatype.m2e.egit.feature.feature.group,\ 
org.jboss.tools.m2e.jdt.feature.feature.group,\ 
org.sonatype.m2e.sisu.feature.feature.group,\ 
-r \ 
http://download.eclipse.org/releases/neon,\ 
http://download.eclipse.org/virgo/release/tooling,\ 
http://download.eclipse.org/recommenders/updates/stable/,\ 
http://download.eclipse.org/technology/m2e/releases/,\ 
http://download.eclipse.org/tools/orbit/downloads/drops/R20160520211859/repository/,\ 
http://repo1.maven.org/maven2/.m2e/connectors/m2eclipse-egit/0.14.0/N/LATEST/,\ 
http://repo1.maven.org/maven2/.m2e/connectors/m2eclipse-tycho/0.8.0/N/LATEST/,\ 
http://repo1.maven.org/maven2/.m2e/connectors/m2eclipse-sisu/0.15.0/N/LATEST/,\ 
http://download.jboss.org/jbosstools/updates/m2e-extensions/m2e-jdt-compiler/1.0.1-2012-09-20_05-03-18-H2/,\ 
http://download.eclipse.org/eclipse/updates/4.2/ 

評論:

  • 上面是* UNIX外殼腳本​​(運行正常在MacOS)。
  • 在每一行的末尾\字符是必需的,因爲這是持續多行
  • -i外殼命令是要安裝
  • -r用於指定用逗號分隔的特徵列表中的參數P2是用於指定逗號分隔的存儲庫列表的p2參數,用於定位要素和相關性

聲明:我是Eclipse處女座提交者。

+0

嘿,謝謝你的回覆。這就是我正在嘗試的,但有這麼多的依賴關係,我想爲什麼不P2應用程序正在照顧這一點。我還安裝了一些其他的插件與p2應用程序,但他們安裝順利。 – bajrang

+0

與maven發生的情況相反,互聯網上沒有中央p2存儲庫。因此,在使用p2時,你必須告訴p2不僅要安裝什麼,而且還要在哪裏尋找它。 –