Maven Dependency shows error in springboot application - java

I am trying to build RestAPI and for testing purpose, I am using h2 database so. I am working on STS, when i create the project it always shows exclamation sign in Maven Dependencies.
it says Failure to transfer org.springframework:spring-tx:jar:5.2.1.RELEASE from https://repo.spring.io/libs-release was cached in the local repository, resolution will not be reattempted until the update interval of spring-libs-release has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework:spring-tx:jar:5.2.1.RELEASE from/to spring-libs-release (https://repo.spring.io/libs-release): The operation was cancelled.
It is happening for a lot of jars, I am not sure what that is, Any help would be appreciated. :)

Related

'Import getting Started Content' has encountered a problem

I have created new spring starter project in SpringSuiteTool. I am getting this error when I created new spring starter project.
ArtifactTransferException: com.google.guava:guava:jar:10.0.1 failed to transfer from https://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 com.google.guava:guava:jar:10.0.1 from/to central (https://repo.maven.apache.org/maven2): The operation was cancelled. java.lang.reflect.InvocationTargetException
Go to {userdir}/.m2/repository/com/google/guava/guava, delete 10.0.1 folder and re build the project

Java Spring Boot - Project 'org.springframework.boot:spring-boot-starter-parent:2.5.0' not found errors

I am trying to start working with Spring Boot. I was going to follow a tutorial, and this tutorial took me to Spring Initializr. I generated a Maven project with Java 1.8, along with only the Spring Web dependency. Then, I tried to open it in IntelliJ community edition.
However, upon opening the project, I noticed 9-10 errors within the pom file. I have tried a number of things, but nothing has worked so far. I am new to Java, so I don't know if it's a JDK issue or whatever, but on the video, it worked seamlessly for him. I will attach a screenshot.
When I type java -version into CMD, I get the response java version "1.8.0_291" for reference.
Here is a list of the errors (screenshot not working):
Project 'org.springframework.boot:spring-boot-starter-parent:2.5.0' not found
Dependency 'org.springframework.boot:spring-boot-starter-web:' not found
Plugin 'org.springframework.boot:spring-boot-maven-plugin:' not found
org.springframework.boot:spring-boot-starter-parent:pom:2.5.0 failed to transfer from https://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.springframework.boot:spring-boot-starter-parent:pom:2.5.0 from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/2.5.0/spring-boot-starter-parent-2.5.0.pom
Each of these errors appears about 3 times. These errors are generated from a fresh Spring Initializr download, so you can get the same exact file through the website yourself, too.
Thank you so much in advance!

Spring-MVC-Maven-Failure to transfer org.codehaus.plexus:plexus-archiver:jar:2.0.1

i created my spring-maven project with spring and other dependencies in maven pom.xml file and the project has been build-ed and run successfully after some days i tried to update dependencies and build the project again this failure occurred !
any help please ?
Failure to transfer org.codehaus.plexus:plexus-archiver:jar:2.0.1 from http://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.codehaus.plexus:plexus-archiver:jar:2.0.1 from/to central
(http://repo.maven.apache.org/maven2): No response received after
60000 pom.xml /DeabrnyRack
updated:i found the solution in this thread as there is updated
versions of dependencies made conflict so i removed the
"plexus-archiver.lastupdated" link :
Maven error "Failure to transfer..."

Maven-Failure to transfer

I am very new to maven,I integrated maven in eclipse and when I am trying convert my existing
project into maven I am getting following error:
http://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.12.4 from/to central (http://repo.maven.apache.org/maven2): repo.maven.apache.org
I have no idea what is this? please guide me.
Your dependency on the maven-surefire-plugin could not be downloaded.
Verify that your maven is set up correctly (proxy is configured) and retry getting the dependencies using the maven -U command line parameter.
If the problem persists, try debugging the maven flow using the -X command line parameter.

Failure to find dependency in proxies Maven repository

The Maven Error:
Failed to execute goal on project XXXXXX: Could not resolve
dependencies for project XXXXXX:XXXXXX:0.1-SNAPSHOT: Failure to find
com.oracle.ucm:idcserver:jar:11.1.1.8 in
[http://internal-proxy:8080/nexus-2.6.4/content/groups/XXXXXX] was cached
in the local repository, resolution will not be reattempted until the
update interval of internal-proxy has elapsed or updates are forced.
I have confirmed that the artifact has indeed been proxied from the external source.
Why can the local Maven build resolve the dependency in either the cloud or the intranet proxy? How can I attempt to debug such problems? I am administrator of the local Maven repository, so I can debug/change configuration suggested here.
Any insight would be welcomed.
Do you have this particular ucm jar with you ? The jar com.oracle.ucm:idcserver:jar:11.1.1.8 is not there on maven central repository and thus will never be fetched since it does not exist there on maven central.
Last I remember, you will have to manually install it in your local repository. Check this post here
Ugh, it was an improper URL in the settings.xml.
I wish the error was more transparent such as connection refused.

Categories