软件包com_atlassian_clover不可见

时间:2019-04-13 18:18:57

标签: maven maven-3 java-module clover

我正在尝试Java模块和单元测试。

所以我的maven pom.xml中也有三叶草插件:

  <plugin>
    <groupId>org.openclover</groupId>
    <artifactId>clover-maven-plugin</artifactId>
    <version>4.2.0</version> 
    <configuration>
      <excludes>
        <exclude>**/module-info.java</exclude>
      </excludes>
    </configuration>
    <executions>
      <execution>
        <goals>
          <goal>instrument</goal>
        </goals>
      </execution>
    </executions>
  </plugin>

但是在跑步时

mvn clover:instrument

我遇到以下错误:

error: package com_atlassian_clover is not visible
  (package com_atlassian_clover is declared in the unnamed module, but module com_atlassian_clover does not read it)

我该如何解决?还是我必须等到三叶草支持Java模块?

我认为在我的modules-info.java中包含三叶草包不是一个好主意。 (可能是一种解决方案,因为三叶草会检测代码)。

0 个答案:

没有答案
相关问题