Skip to content
This repository was archived by the owner on Jan 13, 2023. It is now read-only.

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test #12

Open
IgorZaporozhtsev opened this issue Jun 2, 2020 · 0 comments

Comments

@IgorZaporozhtsev
Copy link

usr/lib/jvm/java-1.11.0-openjdk-amd64/bin/java -Dmaven.multiModuleProjectDirectory=/home/zeecoder/owner/dev/homeprojects/bobocode/spring-framework-exercises/hello-application-context -Dmaven.home=/home/zeecoder/owner/IDEA/plugins/maven/lib/maven3 -Dclassworlds.conf=/home/zeecoder/owner/IDEA/plugins/maven/lib/maven3/bin/m2.conf -Didea.launcher.port=42951 -Didea.launcher.bin.path=/home/zeecoder/owner/IDEA/bin -Dfile.encoding=UTF-8 -classpath /home/zeecoder/owner/IDEA/plugins/maven/lib/maven3/boot/plexus-classworlds-2.5.2.jar:/home/zeecoder/owner/IDEA/lib/idea_rt.jar com.intellij.rt.execution.application.AppMainV2 org.codehaus.classworlds.Launcher -Didea.version=2018.1 install -f pom.xml
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building hello-application-context 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ hello-application-context ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /home/zeecoder/owner/dev/homeprojects/bobocode/spring-framework-exercises/hello-application-context/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ hello-application-context ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 4 source files to /home/zeecoder/owner/dev/homeprojects/bobocode/spring-framework-exercises/hello-application-context/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ hello-application-context ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /home/zeecoder/owner/dev/homeprojects/bobocode/spring-framework-exercises/hello-application-context/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ hello-application-context ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 1 source file to /home/zeecoder/owner/dev/homeprojects/bobocode/spring-framework-exercises/hello-application-context/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.22.0:test (default-test) @ hello-application-context ---
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-junit-platform/2.22.0/surefire-junit-platform-2.22.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.639 s
[INFO] Finished at: 2020-06-02T19:27:56+03:00
[INFO] Final Memory: 18M/70M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test (default-test) on project hello-application-context: Unable to generate classpath: org.apache.maven.artifact.resolver.ArtifactResolutionException: Unable to get dependency information for org.apache.maven.surefire:surefire-junit-platform:jar:2.22.0: Failed to retrieve POM for org.apache.maven.surefire:surefire-junit-platform:jar:2.22.0: Could not transfer artifact org.apache.maven.surefire:surefire-junit-platform:pom:2.22.0 from/to central (https://repo.maven.apache.org/maven2): Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
[ERROR] org.apache.maven.surefire:surefire-junit-platform:jar:2.22.0
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR] central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false)
[ERROR] Path to dependency:
[ERROR] 1) dummy:dummy:jar:1.0
[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/MojoExecutionException

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant