Quando estou no terminal e vou utilizar tanto os comando mvn verify / mvn test ele me apresenta este erro;
Results :
Tests in error:
br.com.alura.maven.TesteVerific: Locale provider adapter "CLDR"cannot be instantiated.
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.642 s
[INFO] Finished at: 2020-10-07T10:32:57-03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project produtos: There are test failures.
[ERROR]
[ERROR] Please refer to C:\Users\Local\eclipse-workspace\Curso-Java\produtos\target\surefire-reports for the individual test results.
[ERROR] -> [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/MojoFailureException
Porem, quando executo o JUnit Test via eclipse , ele passa tranquilo sem nenhum erro.
Executando diretamente no Eclipse: Run ass > Maven Build > Goals > Verify, também não apresenta nenhum erro
[INFO] Scanning for projects...
[INFO]
[INFO] --------------------< br.com.alura.maven:produtos >---------------------
[INFO] Building produtos 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- jacoco-maven-plugin:0.8.5:prepare-agent (default) @ produtos ---
[INFO] argLine set to -javaagent:C:\\Users\\Local\\.m2\\repository\\org\\jacoco\\org.jacoco.agent\\0.8.5\\org.jacoco.agent-0.8.5-runtime.jar=destfile=C:\\Users\\Local\\eclipse-workspace\\Curso-Java\\produtos\\target\\jacoco.exec
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ produtos ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\Local\eclipse-workspace\Curso-Java\produtos\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ produtos ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ produtos ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\Local\eclipse-workspace\Curso-Java\produtos\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ produtos ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ produtos ---
[INFO] Surefire report directory: C:\Users\Local\eclipse-workspace\Curso-Java\produtos\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running br.com.alura.maven.TesteVerific
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.099 sec
Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ produtos ---
[INFO]
[INFO] >>> maven-pmd-plugin:3.10.0:check (default) > :pmd @ produtos >>>
[INFO]
[INFO] --- maven-pmd-plugin:3.10.0:pmd (pmd) @ produtos ---
[WARNING] Unable to locate Source XRef to link to - DISABLED
[INFO]
[INFO] <<< maven-pmd-plugin:3.10.0:check (default) < :pmd @ produtos <<<
[INFO]
[INFO]
[INFO] --- maven-pmd-plugin:3.10.0:check (default) @ produtos ---
[INFO]
[INFO]
[INFO] --- jacoco-maven-plugin:0.8.5:report (default) @ produtos ---
[INFO] Loading execution data file C:\Users\Local\eclipse-workspace\Curso-Java\produtos\target\jacoco.exec
[INFO] Analyzed bundle 'produtos' with 2 classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.795 s
[INFO] Finished at: 2020-10-07T10:48:36-03:00
[INFO] ------------------------------------------------------------------------