score:1

Accepted answer

so you should try to check in pom.xml:

  1. check if the correct repository is specified in the pom.xml from which the package was downloaded originally. it might happen that the url in pom.xml is not correct and you have the required jar file in the .m2 repository.
  2. check for the artifact version, if the version specified in the pom.xml is there in the repository from where it should be downloaded.
  3. check if the jar is missing or not. if yes, place it manually in the .m2 repository. sometimes the jar mentioned in the pom.xml is not downloaded and it gives error.
  4. you can also try deleting the entire .m2 repository folder and run the maven build. the jars get downloaded from scratch. it might resolve the problem as well.

Related Query

More Query from same tag