Error content:
Caused by: org.apache.maven.plugin.compiler.CompilationFailureException: Compilation failure
error: cannot access NotThreadSafe
Error reporting reason:
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.2</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>4.4.5</version>
</dependency>
The versions of httpclient and HttpCore packages do not match.
be careful! Many online Posts say that reducing HttpCore to 4.4.4 s> can solve the problem, because 4.5.2 and 4.4.4 match.
However, the httpclient package itself has security vulnerabilities and is vulnerable to XSS attacks.
For httpclient problems, see: https://github.com/advisories/GHSA-7r82-7xv7-xcpj
Apache HttpClient versions prior to version 4.5.13 and 5.0.3 can misinterpret malformed authority component in request URIs passed to the library as java.net.URI object and pick the wrong target host for request execution.
Therefore, you can upgrade httpclient to 4.5.13 here, which matches 4.4.5 of HttpCore. satisfy both sides.
Correct reference posture:
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.13</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>4.4.5</version>
</dependency>
Read More:
- The problem of MAC switching JDK version and RN Android JDK version leads to compilation failure. Solve it
- Idea ignores compilation errors and runs in eclipse compilation mode
- To be solved: one SSD failure, format failure
- caffe deep learning [three] compilation error: fatal error: hdf5.h: No such file or directory compilation terminated.
- Solutions for failure to start Axure RP (including failure to uninstall or install. Net framework)
- ER_ACCESS_DENIED_ERROR: Access denied for user ‘root‘@‘localhost‘ (using password: NO)
- Error lnk2038 occurred during PCL code compilation: detected “error” during PCL code compilation_ ITERATOR_ DEBUG_ Mismatch of level: value ‘0’ does not match value ‘2’ solution
- Solution to the failure of springboot integrated PageHelper
- Unable to access javax.servlet.servletexception [How to Solve]
- Ganglia cannot access: you don’t have permission to access / ganglia on this server
- Solutions to the failure of R language loading rjava
- Mr local operation error: nativeio $windows.access0
- java.lang.Error: Unresolved compilation problems
- MPU6050 initialize failure [How to Solve]
- Java: compilation failed: internal java compiler error and invalid source distribution resolution
- Failure[INSTALL_FAILED_INCONSISTENT_BUNDLE_VERSION] Error while Deploying HAP
- Mac HarmonyOS Failure[INSTALL_PARSE_FAILED_USESDK_ERROR]
- Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: … has no certificates at entry AndroidManifest.xml]
- Failure delivering result ResultInfo
- MQTT Host name verification failure (SSL) [How to Solve]