从命令行安装功能 - 缺少依赖项

时间:2013-11-12 15:34:45

标签: eclipse command-line installation

我想从全新的eclipse安装开始自动设置测试环境。我想从命令行安装一些功能。但是,虽然从IDE中安装该功能,但它没有使用以下命令行脚本(为方便起见添加了换行符):

H:/eclipse/eclipsec.exe 
-application org.eclipse.equinox.p2.director 
-repository http://download.eclipse.org/recommenders/updates/head/ 
-installIU org.eclipse.recommenders.rcp.feature.feature.group 
-destination H:/eclipse/ 
-profile SDKProfile 
-verifyOnly

这给了我错误:

Cannot complete the install because one or more required items could not be found.
 Software being installed: Code Recommenders Developer Tools (Milestone) 2.0.1.v
20131111-0948 (org.eclipse.recommenders.rcp.feature.feature.group 2.0.1.v2013111
1-0948)
 Missing requirement: async-http-client 1.6.5.20130531-2315 (com.ning.async-http
-client 1.6.5.20130531-2315) requires 'package javax.crypto 0.0.0' but it could
not be found
 Cannot satisfy dependency:
  From: Embedded Maven Runtime Bundle 1.4.0.20130531-2315 (org.eclipse.m2e.maven
.runtime 1.4.0.20130531-2315)
  To: bundle com.ning.async-http-client [1.6.5,1.6.6)
 Cannot satisfy dependency:
  From: Code Recommenders: Models Runtime 2.0.1.v20131110-1920 (org.eclipse.reco
mmenders.models 2.0.1.v20131110-1920)
  To: package org.sonatype.aether 0.0.0
 Cannot satisfy dependency:
  From: Code Recommenders Developer Tools (Milestone) 2.0.1.v20131111-0948 (org.
eclipse.recommenders.rcp.feature.feature.group 2.0.1.v20131111-0948)
  To: org.eclipse.recommenders.models [2.0.1.v20131110-1920]
Application failed, log file location: H:\eclipse\configuration\1384270274500.log

这里发生了什么(与IDE不同),我怎样才能让它发挥作用?

1 个答案:

答案 0 :(得分:2)

您可能在IDE中的“安装新软件”对话框中设置了contact all update sites during install to find required software选项。

要复制IDE行为,您需要将所有必需的存储库指定为逗号分隔,并将其列为-repository的参数。