我正在尝试在Eclipse Juno安装中安装eclEmma。
当我通过“安装新软件”安装时,eclipse计算依赖关系,请我接受许可,然后产生此错误:
An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,com.mountainminds.eclemma.asm,2.2.0.201210261515
No repository found containing: osgi.bundle,com.mountainminds.eclemma.core,2.2.0.201210261515
No repository found containing: osgi.bundle,com.mountainminds.eclemma.debug.ui.compatibility,2.2.0.201210261515
No repository found containing: osgi.bundle,com.mountainminds.eclemma.doc,2.2.0.201210261515
No repository found containing: org.eclipse.update.feature,com.mountainminds.eclemma.feature,2.2.0.201210261515
No repository found containing: osgi.bundle,com.mountainminds.eclemma.ui,2.2.0.201210261515
No repository found containing: osgi.bundle,org.jacoco.agent,0.6.0.201210061924
No repository found containing: osgi.bundle,org.jacoco.core,0.6.0.201210061924
No repository found containing: osgi.bundle,org.jacoco.report,0.6.0.201210061924
如果我去市场,我会得到
An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No artifact repository available.
noArtifactRepositoriesAvailable
选择安装后不久。
问题:我该怎么做才能解决此问题?我是否需要其他更新站点?
注意:我刚刚安装了MoreUnit,所以可以正常连接互联网。
最佳答案
我遇到了同样的问题,并且无法按照网站上的描述手动安装对位机。这就是我所做的(在4.3开普勒上)。
打开eclemma-2.2.1.zip。
转到features子目录。
在eclipse/feature目录中,创建一个目录,其名称为zip文件的feature子目录中的jar的名称(不带jar后缀)。
现在打开jar并将其内容复制到这个新创建的目录中。
完成后应如下所示:
./eclipse/features/com.mountainminds.eclemma.feature_2.2.1.201306092145/
|-META-INF
|-about.html
|-feature.properties
|-feature.xml
然后将 jar 从zip内的plugins目录复制到eclipse安装的plugins目录:
./eclipse/plugins/
|-com.mountainminds.eclemma.asm_2.2.1.201306092145.jar
|-com.mountainminds.eclemma.core_2.2.1.201306092145.jar
|-com.mountainminds.eclemma.debug.ui.compatibility_2.2.1.201306092145.jar
|-com.mountainminds.eclemma.doc_2.2.1.201306092145.jar
|-com.mountainminds.eclemma.ui_2.2.1.201306092145.jar
|-org.jacoco.agent_0.6.3.201306030806.jar
|-org.jacoco.core_0.6.3.201306030806.jar
|-org.jacoco.report_0.6.3.201306030806.jar
启动eclipse,coverage启动器应该是可见的,coverage应该可以正常工作。
关于eclipse - 在哪里可以找到eclEmma依赖项?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14769904/