Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
3.0.0-M4
-
None
-
None
Description
When integration-testing a spring boot application, and also having this plugin:
<plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <executions> <execution> <goals> <goal>repackage</goal> </goals> </execution> </executions> </plugin>
the test is not executed by maven-failsafe-plugin. And no errors or warnings is displayed to indicate that code is not tested.
When configuring phace like this they are executed
<plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <executions> <execution> <phase>post-integration-test</phase> <goals> <goal>repackage</goal> </goals> </execution> </executions> </plugin>
I found the answer here https://stackoverflow.com/questions/50705270/mvn-spring-boot-plugin-breaks-integration-testing
But the build should either break or tests run.