Code Monkey home page Code Monkey logo

Comments (3)

z0rb avatar z0rb commented on June 9, 2024

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.

from springdoc-openapi-maven-plugin.

bnasslahsen avatar bnasslahsen commented on June 9, 2024

@amalasj,

This is not reproducible.
Make sure you use the last versions of springdoc-openapi and springdoc-openapi-maven-plugin before reporting any issues.

from springdoc-openapi-maven-plugin.

jcolladosp avatar jcolladosp commented on June 9, 2024

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>

from springdoc-openapi-maven-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.