【问题标题】:Installation of Cobertura Eclipse Plugin: "Could not find ecobertura.johoop.de/update"安装 Cobertura Eclipse 插件:“找不到 ecobertura.johoop.de/update”
【发布时间】:2019-07-08 17:17:15
【问题描述】:

我需要安装Cobertura Eclipse Plugin (eCobertura),它在 Eclipse 中显示单元测试覆盖率。 (另一个链接here

按照指示,我将栏从站点拖到我的 Eclipse 工作区中,并收到以下错误:

所以我决定采取不同的做法,通过安装新软件并关闭“联系更新站点”复选框。但我什至做不到。即使我关闭了“联系更新站点”,它仍然说安装是不可能的。我做错了什么?

看起来网站http://ecobertura.johoop.de/update 已离线。这个插件还支持吗?

【问题讨论】:

    标签: eclipse cobertura ecobertura


    【解决方案1】:

    我猜 Eclipse 不再支持 Corbetura(在 Eclipse 市场中不可用),我遇到了同样的事情,最后最终使用了 EclEmma。但是如果你真的想用,可以尝试通过pom.xml直接将插件添加到项目中

           <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>cobertura-maven-plugin</artifactId>
                <version>2.5.1</version>
                <configuration>
                    <formats>
                        <format>xml</format>
                    </formats>
                </configuration>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>cobertura</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>     
    

    供参考:https://www.baeldung.com/cobertura

    【讨论】:

      猜你喜欢
      • 2013-09-08
      • 2014-03-11
      • 1970-01-01
      • 1970-01-01
      • 2012-12-03
      • 2011-07-22
      • 2013-02-22
      • 2015-12-21
      • 2012-08-20
      相关资源
      最近更新 更多