Saturday 17 September 2016

Failure to transfer https://repo.maven.apache.org/maven2 was cached in the local repository


Error :

Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.17 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-surefire-plugin:pom:2.17 from/to central (https://repo.maven.apache.org/maven2): The operation was cancelled. pom.xml /LogReaderServer line 1 Maven Configuration Problem


Solution :

Remove all your failed downloads:

For windows:
cd %userprofile%\.m2\repository
for /r %i in (*.lastUpdated) do del %i

Spring boot with CORS

CORS (Cross-Origin Resource Sharing) errors occur when a web application running in a browser requests a resource from a different domain or...