JaCoCo Can't add different class with same name: org/hamcrest/BaseDescription
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Hi I'm hitting the following exception when running a JaCoCo coverage: <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.5.8.201207111220</version> <executions> <execution> <goals> <goal>prepare-agent</goal> </goals> </execution> <execution> <id>report</id> <phase>prepare-package</phase> <goals> <goal>report</goal> </goals> </execution> </executions> </plugin> Error while creating report: Can't add different class with same name: org/hamcrest/BaseDescription java.lang.IllegalStateException: Can't