jacoco classnotfound异常

35g0bw71  于 2021-08-25  发布在  Java
关注(0)|答案(0)|浏览(296)

我使用的是Jacococ0.8.7版本、maven 3.3.9版本、JDK1.8,而我在jenkins上运行时,我面临以下异常。可能是什么问题?当我使用jacoco0.7.4时,它起作用了
在jenkins中使用的命令:

-Dmaven.test.failure.ignore=true -U clean org.jacoco:jacoco-maven-plugin:0.8.7:prepare-agent org.jacoco:jacoco-maven-plugin:0.8.7:report test

错误
目标组织的执行默认cli.jacoco:jacoco maven插件:0.8.7:准备代理失败:执行组织时缺少必需的类。jacoco:jacoco maven插件:0.8.7:准备代理:org/jacoco/core/runtime/agentoptions
pom.xml

<build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.jacoco</groupId>
                    <artifactId>jacoco-maven-plugin</artifactId>
                    <version>0.8.7</version>
                    <executions>
                        <execution>
                            <goals>
                                <goal>prepare-agent</goal>
                            </goals>
                        </execution>
                        <!-- attached to Maven test phase -->
                        <execution>
                            <id>report</id>
                            <phase>test</phase>
                            <goals>
                                <goal>report</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>

                            </plugins>
        </pluginManagement>
    </build>

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题