maven-failsafe-plugin

Maven failsafe plugin doesn't run parallel Test

大兔子大兔子 提交于 2021-02-07 07:18:44
问题 I have a Maven POM file and when I provide parallel execution options, I dont see any signs of parallel execution in the logs. And XML debugging is driving me nuts. Any thoughts what is wrong here? <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId

Maven failsafe plugin doesn't run parallel Test

别说谁变了你拦得住时间么 提交于 2021-02-07 07:18:22
问题 I have a Maven POM file and when I provide parallel execution options, I dont see any signs of parallel execution in the logs. And XML debugging is driving me nuts. Any thoughts what is wrong here? <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId

Maven failsafe is not complaining that an inexistent profile was specified

血红的双手。 提交于 2021-01-29 12:55:58
问题 I have two profiles in my pom: <profiles> <profile> <id>functional-tests</id> <build> <plugins> <plugin> <artifactId>maven-failsafe-plugin</artifactId> <configuration> <testSourceDirectory>test/test-functional/java</testSourceDirectory> <includes> <include>**/*FT.java</include> </includes> </configuration> <executions> <execution> <goals> <goal>integration-test</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile> <profile> <id>it-tests</id> <build> <plugins>

Failsafe error: “Invalid signature file digest for Manifest main attributes” when using shade plugin

徘徊边缘 提交于 2021-01-29 01:35:56
问题 When using shade-plugin in maven and later trying to run integration tests using failsafe-plugin, I get the following error when failsafe is about to run, resulting in my integration tests being skipped: [ERROR] Invalid signature file digest for Manifest main attributes This error seems to be caused by signed jars in dependencies. This answer suggests using dependency plugin to filter out the signatures, but it did not seem to work for me. Shade-plugin just unpacked all the dependencies and

Failsafe error: “Invalid signature file digest for Manifest main attributes” when using shade plugin

房东的猫 提交于 2021-01-29 01:33:09
问题 When using shade-plugin in maven and later trying to run integration tests using failsafe-plugin, I get the following error when failsafe is about to run, resulting in my integration tests being skipped: [ERROR] Invalid signature file digest for Manifest main attributes This error seems to be caused by signed jars in dependencies. This answer suggests using dependency plugin to filter out the signatures, but it did not seem to work for me. Shade-plugin just unpacked all the dependencies and

Failsafe error: “Invalid signature file digest for Manifest main attributes” when using shade plugin

狂风中的少年 提交于 2021-01-29 01:32:53
问题 When using shade-plugin in maven and later trying to run integration tests using failsafe-plugin, I get the following error when failsafe is about to run, resulting in my integration tests being skipped: [ERROR] Invalid signature file digest for Manifest main attributes This error seems to be caused by signed jars in dependencies. This answer suggests using dependency plugin to filter out the signatures, but it did not seem to work for me. Shade-plugin just unpacked all the dependencies and

Skip Build failure in maven if the integration test fails

こ雲淡風輕ζ 提交于 2021-01-28 03:10:08
问题 I want to skip the build failure even if the integration test fails. I am using maven-failsafe for Integration test. I am currently getting the following: Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.15:verify (default) on project xxxxx: There are test failures. Question : Can I use the following for Maven Failsafe Plugin? I know it works for the Surefire plugin, but not sure for failsafe. -Dmaven.test.failure.ignore=true 回答1: Yes, the same parameter is valid for

Maven Shade Plugin causes duplicate jars on classpath when running integration tests

百般思念 提交于 2021-01-01 18:10:46
问题 I have a project which includes the S3 dependency from AWS's Java v2 SDK and builds a shaded jar. I am hitting this problem when running my integration tests from the terminal. The problem is that the interceptors are added twice because the classpath contains two jars with the S3 jar: once in my shaded jar and once from the local .m2 repository. Unfortunately I don't have any control of the code that contains this issue so I need to find a workaround until the issue is fixed. I have

Maven Shade Plugin causes duplicate jars on classpath when running integration tests

守給你的承諾、 提交于 2021-01-01 18:03:32
问题 I have a project which includes the S3 dependency from AWS's Java v2 SDK and builds a shaded jar. I am hitting this problem when running my integration tests from the terminal. The problem is that the interceptors are added twice because the classpath contains two jars with the S3 jar: once in my shaded jar and once from the local .m2 repository. Unfortunately I don't have any control of the code that contains this issue so I need to find a workaround until the issue is fixed. I have

Maven Failsafe plugin - SurefireBooterForkException: There was an error in the forked process (TypeNotPresentExceptionProxy)

五迷三道 提交于 2020-06-24 08:24:46
问题 I get this strange stacktrace when running mvn clean verify -P P1 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.21.0:verify (default) on project prj-name: There are test failures. [ERROR] [ERROR] Please refer to C:\path\to\project\target\failsafe-reports for the individual test results. [ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream. [ERROR] org.apache.maven.surefire.booter