简体   繁体   English

Eclipse:使用P2目录安装Virgo工具插件

[英]Eclipse: Virgo tooling plugin installation using P2 directory

I am trying to install Virgo tooling Eclipse plugin using the P2 installation directory, since I want to install directly from command line and not from GUI. 我试图使用P2安装目录安装Virgo工具Eclipse插件,因为我想直接从命令行而不是从GUI安装。 I am getting the below error and seems like some dependencies issues are there. 我收到以下错误,似乎有一些依赖问题。 I tried resolving the dependencies but I am still facing the same issue. 我尝试解决依赖关系,但仍然面临相同的问题。 I also searched on the web and was not able to find a good solution for the issue. 我也在网上搜索,但找不到解决该问题的好方法。

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]

Please note that the plugin installation works from the Eclipse GUI. 请注意,插件安装可从Eclipse GUI进行。 I also installed other plugins from command line and that worked, only facing issue with Virgo tooling plugin. 我还从命令行安装了其他插件,而且效果很好,只是处女座工具插件存在问题。

The Virgo Tools depend on the Virgo server and several other Eclipse projects. Virgo工具依赖于Virgo服务器和其他几个Eclipse项目。 When installing from the command line using p2 director you have to specify the comma separated list of features to install and the list of p2 repositories containing such features (and dependencies). 使用p2 Director从命令行安装时,必须指定以逗号分隔的要安装功能列表以及包含此类功能(和依赖项)的p2存储库列表。

The following is an example for creating an Eclipse + Virgo Tools starting from the Neon RCP runtime distribution and adding JDT, egit, Web Tools etc. etc. 以下是从Neon RCP运行时发行版开始创建Eclipse + Virgo Tools并添加JDT,egit,Web Tools等的示例。

I created it from a working script I have, removing some very specific plug-ins I use. 我是用一个可用的脚本创建的,删除了一些我使用的非常特定的插件。 You may want to have a look at it as an example, I do not guarantee it works after the modification. 您可能希望以它为例,但我不保证修改后它可以工作。

If instead of starting from Neon RCP you start from Neon for JavaEE developers you can remove most of the features and repositories. 如果不是从Neon RCP开始,而是从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/

Comments: 评论:

  • the above is a *unix shell script (runs fine on MacOs). 上面是一个* unix shell脚本(在MacO上运行良好)。
  • the \\ character at the end of each line is required because this is a shell command that continues for multiple lines 每行末尾的\\字符是必需的,因为这是一个shell命令,可以连续多行
  • -i is the p2 parameter for specifying a comma separated list of features to be installed -i是p2参数,用于指定要安装的功能的逗号分隔列表
  • -r is the p2 parameter for specifying a comma separated list of repositories to be used for locating features and dependencies -r是p2参数,用于指定要用逗号分隔的存储库列表,用于查找功能部件和依赖项

Disclaimer: I am an Eclipse Virgo committer. 免责声明:我是Eclipse处女座的提交者。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM