Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

446
Vistas
Error de tiempo de espera de prueba de preintegración de Maven Spring Boot

Cuando ejecuto el comando de install del ciclo de vida de mi servidor, aparece el siguiente error:

 [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 34.507 s [INFO] Finished at: 2017-03-10T15:32:41+01:00 [INFO] Final Memory: 69M/596M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.4.0.RELEASE:start (pre-integration-test) on project challenger-server-boot: 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. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Obviamente proviene de la configuración del tiempo de espera, pero no puedo encontrar dónde tengo que cambiar este valor...

No estoy seguro de si puede ayudar, pero aquí hay algunos de mis pom.xml relacionados con la unidad y las pruebas de integración:

 <!-- Unit testing --> <plugin> <artifactId>maven-surefire-plugin</artifactId> <configuration> <skipTests>true</skipTests> </configuration> </plugin> <!-- Integration testing --> <plugin> <artifactId>maven-failsafe-plugin</artifactId> <version>2.19.1</version> <configuration> <skipTests>false</skipTests> </configuration> </plugin>

Aquí está el registro de depuración: http://pastebin.com/kUkufHFS

about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Está intentando iniciar una aplicación Spring Boot antes de la fase de prueba previa a la integración. La clase Spring-boot-maven-plugin StartMojo (org.springframework.boot.maven) se queja porque la aplicación no se inicia dentro del tiempo de espera predeterminado, que está definido por los atributos "esperar" (valor predeterminado: 500 ms) y " maxAttempts" (predeterminado: 60) -> 500 * 60.

 /** * The number of milli-seconds to wait between each attempt to check if the spring * application is ready. */ @Parameter private long wait = 500; /** * The maximum number of attempts to check if the spring application is ready. * Combined with the "wait" argument, this gives a global timeout value (30 sec by * default) */ @Parameter private int maxAttempts = 60;

"wait" y "maxAttempts" están anotados como @Parameter, lo que significa que puede cambiar su valor desde su archivo pom, en la configuración del complemento de esta manera:

 <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <wait>1000</wait> <maxAttempts>180</maxAttempts> </configuration> <executions> ... </executions> </plugin>
about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda