weixin_39869378
2020-12-01 23:27 阅读 0

Coverage clover

NOTE: I had difficulty in getting the single-module approach to clover working. I believe there is a bug whereby it cannot deal with modules nested more than one level deep.

When I followed the instructions here and here, I kept ending up with the same error result:


[ERROR] Failed to execute goal com.atlassian.maven.plugins:clover-maven-plugin:4.1.1:aggregate (main) on project stormpath-spring-parent: Clover has failed to merge the children module databases -> [Help 2]
[ERROR] Failed to execute goal com.atlassian.maven.plugins:clover-maven-plugin:4.1.1:aggregate (main) on project stormpath-spring-boot-parent: Execution main of goal com.atlassian.maven.plugins:clover-maven-plugin:4.1.1:aggregate failed: String index out of range: -5 -> [Help 3]
[ERROR] Failed to execute goal com.atlassian.maven.plugins:clover-maven-plugin:4.1.1:aggregate (main) on project stormpath-sdk-tutorials-spring-boot: Execution main of goal com.atlassian.maven.plugins:clover-maven-plugin:4.1.1:aggregate failed: String index out of range: -4 -> [Help 3]

While the approach in this PR requires the (empty) clover module, it works and it is setup in such a way that the clover coverage tests are only run with the clover.all profile.

该提问来源于开源项目:stormpath/stormpath-sdk-java

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

7条回答 默认 最新

  • weixin_39833454 weixin_39833454 2020-12-01 23:27

    it appears that this build is failing because the version of Jetty used is incompatible with JDK 6?

    Caused by: java.lang.UnsupportedClassVersionError: org/eclipse/jetty/maven/plugin/JettyStartMojo : Unsupported major.minor version 51.0

    点赞 评论 复制链接分享
  • weixin_39869378 weixin_39869378 2020-12-01 23:27

    I am not seeing that . Do you have a build link?

    点赞 评论 复制链接分享
  • weixin_39869378 weixin_39869378 2020-12-01 23:27

    NOTE: Temporarily closing. I want to play with some of the travis & clover settings and don't won't to jam up the queue having it run twice every time.

    点赞 评论 复制链接分享
  • weixin_39833454 weixin_39833454 2020-12-01 23:27

    Do you want to delete the branch then?

    点赞 评论 复制链接分享
  • weixin_39869378 weixin_39869378 2020-12-01 23:27

    no sir! ;) I am going to re-open the PR. I just didn't want to jam travis up with running tests for the branch and for the PR while I test some stuff out.

    点赞 评论 复制链接分享
  • weixin_39833454 weixin_39833454 2020-12-01 23:27

    Thanks!

    点赞 评论 复制链接分享
  • weixin_39869378 weixin_39869378 2020-12-01 23:27

    hrmm.. looks like re-opening did not have the desired effect. I will create a new PR. Sorry for the noise in the channel

    点赞 评论 复制链接分享

相关推荐