Closed amalasj closed 3 years ago
I ran into a similar issue and increased the wait from 500ms to 1000ms. The application is just too fat and sometimes takes longer than 30s to fully start on my local machine:
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<jvmArguments>-Dspring.application.admin.enabled=true</jvmArguments>
<addResources>true</addResources>
</configuration>
<executions>
<execution>
<id>pre-integration-test</id>
<goals>
<goal>start</goal>
</goals>
<configuration>
<!-- Application may need longer than 60 * 500ms to start. Set to 60 * 1000ms. -->
<wait>1000</wait>
</configuration>
</execution>
<execution>
<id>post-integration-test</id>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
</plugin>
Though I do have a problem that the server isn't shutting down properly and I have to kill the process somehow. But that might be a different issue.
@amalasj,
This is not reproducible.
Make sure you use the last versions of springdoc-openapi
and springdoc-openapi-maven-plugin
before reporting any issues.
I solved it adding to the pre-integration-test a configuration specifying the correct spring profile:
<configuration>
<jvmArguments>-Dspring.application.admin.enabled=true -Dspring.profiles.active=qa</jvmArguments>
</configuration>
I solved it adding to the pre-integration-test a configuration specifying the correct spring profile:
<configuration> <jvmArguments>-Dspring.application.admin.enabled=true -Dspring.profiles.active=qa</jvmArguments> </configuration>
Thanks. I solved my problem by removing my customed configuration.
Getting below error while running mvn clean install, please help
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.3.0.RELEASE:start (pre-integration-test) on project abcd: Cou ld not figure out if the application has started: Failed to connect to MBean server at port 9001: Could not invoke shutdown operation: Spring application did not start before the configured timeout (30000ms -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
Using below part in pom.xml