and tools.jar The package comes with JDK, so I doubt it pom.xml Implicit dependency in tools.jar Bag, and tools.jar Not in the library,
For example: the current project relies on package a, while package a relies on package a during the development and packaging process tools.jar Package a is released now. Our project depends on package a, so we should add package a to the package dependency tools.jar Package;
After this analysis, the problem is easy to solve, directly in the pom.xml Add a dependency project to the list:
<dependency>
<groupId>jdk.tools</groupId>
<artifactId>jdk.tools</artifactId>
<version>1.7</version>
<scope>system</scope>
<systemPath>${JAVA_HOME}/lib/tools.jar</systemPath>
</dependency>
Read More:
- An error was reported when Maven package was running the packaged jar package: there is no main list attribute in xxx.jar, which can be solved by configuring Maven plugin
- Failed to find Build Tools revision 30.0.3 [How to Solve]
- Zeppelin reported an error. The JDK version is low
- Android Studio compile error: build tools is corrupt [Solved]
- [Solved] WeChat development tools error: Argument 0 must be a buffer source or a WebAssembly.Module object
- [Solved] Flutter compile error: Failed to find Build Tools revision 29.0.2
- How to Solve Error “Could not find com.android.tools.build:gradle:3.0.1”
- [Solved] Groovy Project Compile Error: java.lang.NoClassDefFoundError: org/apache/tools/ant/util/ReaderInputStream
- [Solved] Maven Error: The packaging for this project did not assign a file to the build artifact
- [Solved] Maven log jar package conflict error: Class path contains multiple SLF4J bindings
- Maven package error: [WARNING] The POM for xxx is missing, no dependency inform
- How to Solve Maven Error: Failure to transfer com.thoughtworks.xstream:xstream:jar:1.3.1 from https://repo.maven.ap
- [Solved] ERROR–Unable to process Jar entry [module-info.class] from Jar
- [Solved] error: Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++ Build Tools“
- Springboot package error: failed to execute goal org.apache.maven.plugins:maven-resources-plugin: 3.2.0…
- Prompt unknown error in pom.xml of Maven project
- [Solved] presto Compile Error: Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.0.0:check
- [Solved] Maven executes servlet error: HTTP Status 500
- Maven Configurate Error: [ERROR] Error executing Maven. [ERROR] 1 problem was encountered while building the effec
- [Solved] SSM Project Error: Error during artifact deployment. See server log for details.