Tag: jenkins surefire

在jenkins中运行maven / surefire构建时间歇性的NoClassDefFoundError

我们正在Jenkins上构建一个大型的多模块Maven项目,包括运行大量的unit testing。 每运行一次,构建就会在NoClassDefFoundError on RunListener上的NoClassDefFoundError on RunListener – 它位于单元jar中。 从下面的日志中可以看出 – JUnit包含在类路径中。 该错误似乎完全随机出现。 日志 Waiting for Jenkins to finish collecting data [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project taboola-svc: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test failed: A required class was missing while executing org.apache.maven.plugins:maven-surefire-plugin:2.17:test: org/junit/runner/notification/RunListener [ERROR] —————————————————– [ERROR] realm = plugin>org.apache.maven.plugins:maven-surefire-plugin:2.17 [ERROR] strategy = […]