Конфигурации:
- Плагин maven-surefire: 3.0.0-M4
- jdk-1.8.0.222
Плагин Maven:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M4</version>
<configuration>
<useSystemClassLoader>true</useSystemClassLoader>
<useManifestOnlyJar>false</useManifestOnlyJar>
</configuration>
</plugin>
Получение периодически повторяющейся ошибки от Дженкинса.
Пробовал со значением useSystemClassLoader false & useManifestOnlyJar true также. Проблема сохранилась.
Как решить проблему?
[2020-04-20T00:53:53.581Z] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M4:test (default-test) on project calyx-automation: A type incompatibility occurred while executing org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M4:test: java.lang.UnsatisfiedLinkError cannot be cast to java.io.IOException
[2020-04-20T00:53:53.581Z] [ERROR] -----------------------------------------------------
[2020-04-20T00:53:53.581Z] [ERROR] realm = plugin>org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M4
[2020-04-20T00:53:53.581Z] [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[2020-04-20T00:53:53.581Z] [ERROR] urls[0] = file:/var/home/jenkins/.m2/repository/org/apache/maven/plugins/maven-surefire-plugin/3.0.0-M4/maven-surefire-plugin-3.0.0-M4.jar
[2020-04-20T00:53:53.581Z] [ERROR] urls[1] = file:/var/home/jenkins/.m2/repository/org/apache/maven/surefire/maven-surefire-common/3.0.0-M4/maven-surefire-common-3.0.0-M4.jar
[2020-04-20T00:53:53.581Z] [ERROR] urls[2] = file:/var/home/jenkins/.m2/repository/org/apache/maven/surefire/surefire-api/3.0.0-M4/surefire-api-3.0.0-M4.jar
[2020-04-20T00:53:53.581Z] [ERROR] urls[3] = file:/var/home/jenkins/.m2/repository/org/apache/maven/surefire/surefire-logger-api/3.0.0-M4/surefire-logger-api-3.0.0-M4.jar
[2020-04-20T00:53:53.581Z] [ERROR] urls[4] = file:/var/home/jenkins/.m2/repository/org/apache/maven/surefire/surefire-extensions-api/3.0.0-M4/surefire-extensions-api-3.0.0-M4.jar
[2020-04-20T00:53:53.581Z] [ERROR] urls[5] = file:/var/home/jenkins/.m2/repository/org/apache/maven/surefire/surefire-booter/3.0.0-M4/surefire-booter-3.0.0-M4.jar
[2020-04-20T00:53:53.581Z] [ERROR] urls[6] = file:/var/home/jenkins/.m2/repository/org/apache/maven/shared/maven-artifact-transfer/0.11.0/maven-artifact-transfer-0.11.0.jar
[2020-04-20T00:53:53.582Z] [ERROR] urls[7] = file:/var/home/jenkins/.m2/repository/org/apache/maven/shared/maven-common-artifact-filters/3.1.0/maven-common-artifact-filters-3.1.0.jar
[2020-04-20T00:53:53.582Z] [ERROR] urls[8] = file:/var/home/jenkins/.m2/repository/org/sonatype/sisu/sisu-inject-bean/1.4.2/sisu-inject-bean-1.4.2.jar
[2020-04-20T00:53:53.582Z] [ERROR] urls[9] = file:/var/home/jenkins/.m2/repository/org/sonatype/sisu/sisu-guice/2.1.7/sisu-guice-2.1.7-noaop.jar
[2020-04-20T00:53:53.582Z] [ERROR] urls[10] = file:/var/home/jenkins/.m2/repository/commons-codec/commons-codec/1.11/commons-codec-1.11.jar
[2020-04-20T00:53:53.582Z] [ERROR] urls[11] = file:/var/home/jenkins/.m2/repository/org/codehaus/plexus/plexus-java/1.0.3/plexus-java-1.0.3.jar
[2020-04-20T00:53:53.582Z] [ERROR] urls[12] = file:/var/home/jenkins/.m2/repository/org/ow2/asm/asm/7.0/asm-7.0.jar
[2020-04-20T00:53:53.582Z] [ERROR] urls[13] = file:/var/home/jenkins/.m2/repository/com/thoughtworks/qdox/qdox/2.0-M9/qdox-2.0-M9.jar
[2020-04-20T00:53:53.582Z] [ERROR] urls[14] = file:/var/home/jenkins/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
[2020-04-20T00:53:53.582Z] [ERROR] Number of foreign imports: 1
[2020-04-20T00:53:53.582Z] [ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]