I am trying to create basic project in spring boot using STS with maven dependencies are h2 database , spring web and spring data JPA .when Spring Data JPA use error come in pom.xml file and I attached image of error.How w to solve this error please let me know .
I try in STS and vs code both IDE’s the same error occur
org.hibernate.orm:hibernate-core:jar:6.2.6.Final failed to transfer from repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.hibernate.orm:hibernate-core:jar:6.2.6.Final from/to central (repo.maven.apache.org/maven2): Tag mismatch
Share this project through Google drive.
Step to share your project in Google drive
Create a folder and Upload your project on drive.
Click the triple dots option will pop up
Then click manage access ----> general access click change
change the restricted from only people added can open to any only with the link.
At last share the link of the folder in this form
Right click on that project. Click Run As ----> maven clean then
again Right click on that project. Click Run As ----> maven install.
Make sure to connect internet to your PC.
I tried building the app from the terminal using the maven command (as told by kalaiarasan) as well as from the IntelliJ IDEA tool i don’t face any error.
Yes, there is no error on the project but while run this project maven automatically downloads these dependencies from a central repository through pom.xml.
Above bala_devan image the dependencies are not properly downloaded.
So if he try to clear the old maven and try to install again, it may work.
Thanks for the update Kalai_arasan and GoldAyan.