-
Notifications
You must be signed in to change notification settings - Fork 41.5k
Closed
Description
It would be useful if a stop
goal was added to the spring-boot-maven-plugin
. This would make it possible to start the Spring Boot application in Maven's pre-integration-test
phase and shut it down in the post-integration-test
phase when implementing integration tests using the maven-failsafe-plugin.
Example usage:
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<id>start-boot</id>
<phase>pre-integration-test</phase>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<id>stop-boot</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.17</version>
<executions>
<execution>
<id>integration-test</id>
<goals>
<goal>integration-test</goal>
</goals>
</execution>
<execution>
<id>verify</id>
<goals>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- more plugins -->
</plugins>
Currently, the since there is no stop
goal, Spring Boot has to be terminated manually after the integration tests have been completed.
Compare with the jetty and maven-failsafe configuration.
Metadata
Metadata
Assignees
Labels
type: enhancementA general enhancementA general enhancement