How to Solve Maven error: Could not find artifact jdk.tools
Solution:
export JAVA_HOME=/your/java/home/
Then execute the maven command
Read More:
- [Javac compilation exception] javac compilation prompts that the package in jdk cannot be found error: package jdk.internal.org.objectweb.asm does not exist and error: cannot find symbol
- [Solved] Artifact AServletTestCode:war exploded: Error during artifact deployment. See server log for details
- [Solved] maven Error: Failed to read artifact descriptor for org.
- [Solved] Artifact spbjh:war exploded: Error during artifact deployment. See server log for details.
- Executing Maven command error: Java_HOME is not defined correctly executing maven
- [Solved] Tomcat Start Project Error: Artifact xxxxxx:war exploded: Error during artifact deployment. See server log
- [Solved] Mac Maven Command Error: zsh: command not found
- [Solved] Maven Project Packaging Error: Unable to find main class
- Maven (http://repo1.maven.org/maven2/): Failed to transfer file and PKIX path building failed: sun.secu
- [Solved] MVN Build Project Error: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test
- [Solved] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.1.1:analyze-only
- [Solved] Error: (3, 31) Java: package jdk.nashorn.internal.ir does not exist
- [Solved] Invalid Gradle JDK configuration found. Open Gradle Settings Change JDK location
- MVN compile Error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin…
- [Solved] Error:Maven Resources Compiler: Maven project configuration required for module ‘XX‘ isn‘t available
- [Solved] Spring Boot Package Error: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0
- [Solved] O2oa compile error: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin
- [Solved] SpringBoot Pack Project: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources
- Java Running Error: Could not find or load main class
- [Solved] Maven Publish Error: Failed to execute goal org.apache.maven.pluginsmaven-deploy-plugin2.8.2deploy