question
gav is correct, a large number of jar package dependencies cannot be imported
detailed question
The author imports the project given by the teacher and has ensured that the imported jar package gav is correct, but a large number of jar package dependencies cannot be imported
solution
1 Enter on the command line
mvn dependency:purge-local-repository
2 Re-import maven dependencies
reason
This error may be because Maven cannot download the pom file required by the org.apache.logging.log4j:log4j-web:2.17.2 dependency. One way to solve this problem is to try clearing the relevant cache in the local Maven repository, then re-run the Maven command to re-download the dependency and its associated pom file. Specific steps are as follows:
1 Enter the mvn dependency:purge-local-repository command at the command line to purge all caches in the local Maven repository.
2 Then run your Maven command again to re-download the missing dependencies and their associated pom files.
If this doesn't solve your problem, please check your network connection or proxy settings are correct, and make sure you are using the correct Maven repository address.
references
It’s not easy
to be original, please indicate the source
if it’s helpful to you, don’t forget to like it and support it