1
resposta

Erro no build

Bom dia ao fazer o build acontece o seguinte erro: Downloaded from central: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-maven-plugin/2.3.4.RELEASE/spring-boot-maven-plugin-2.3.4.RELEASE.jar (94 kB at 206 kB/s) [[1;34mINFO[m] [1m------------------------------------------------------------------------[m [[1;34mINFO[m] [1;31mBUILD FAILURE[m [[1;34mINFO[m] [1m------------------------------------------------------------------------[m [[1;34mINFO[m] Total time: 16.106 s [[1;34mINFO[m] Finished at: 2021-08-28T16:18:40Z [[1;34mINFO[m] [1m------------------------------------------------------------------------[m [[1;31mERROR[m] Unknown lifecycle phase "tests". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [1m[Help 1][m [[1;31mERROR[m] [[1;31mERROR[m] To see the full stack trace of the errors, re-run Maven with the [1m-e[m switch. [[1;31mERROR[m] Re-run Maven using the [1m-X[m switch to enable full debug logging. [[1;31mERROR[m] [[1;31mERROR[m] For more information about the errors and possible solutions, please read the following articles: [[1;31mERROR[m] [1m[Help 1][m http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhaseNotFoundException Build step 'Invoke top-level Maven targets' marked build as failure Finished: FAILURE

1 resposta

Oi Erick,

no campo Goals voce deve informar: clean test.

Parece que no seu foi escrito: tests no plural, mas o correto deve ser: test.

Veja se resolve.