Unable to resolve dependencies of spring boot in intellij idea - java

I am new to spring boot. I have tried several solutions but none of them worked.
added certificate of maven to jdk
tried deleting .m2 folder and .idea folder
tried invalidating cache and restarting ide
tried toggling , adding and removing maven project
tried updating repositories also
tried adding VM options for importing ""-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true
Nothing worked.
This is a screenshot of the errors I am getting.
Using jdk version - 18.0.1.1
maven version - 3.8.5
spring boot version - 2.7.1
Please help what am I missing or which other tools I should use to create a web project using spring boot and java

Related

Problem with ActiveMQ dependencies with Spring Boot

I am working on an ActiveMQ project using Spring Boot. I tried to generate a project with Spring Initializr and import it to IntelliJ (community edition).
The problem occurred when Maven could not resolve the spring-boot-starter-activemq dependency.
Here is the project generated:
Something weird is that the project is synced but there still an error in the pom.xml file:
Any other approach is welcome.
ok figure out that I made a mistake adding a setting.xml file with invalid proxy settings, which led to maven enable to download , now the problem is solved thanks for you guys for guiding me to the solution.

VS Code not able to resolve Springframework Data Redis related dependencies, however, project builds completely fine in Eclipse

I am using VS Code to compile and debug my Spring Boot Java project with help of Gradle. I recently added Redis dependency to my project. The project compiles in Eclipse, but throws error in VS Code.
I'm not sure this answer becomes helpful to you or not but,
Normally VS code is not comes with default configurational setting of spring boot.
Spring boot project not able to run without dependencies.
So Because of your project not able to find relevant dependencies so it is generate this errors.
It solved using download plugin of vscode-spring-initializer and / or others.
If you need more detail then,
Try recognize your spring boot project in different IDE like IntelliJ or Eclipes. You see that there is some extra files are there like following,
External Libraries - which handle by maven kind of tool for load dependency.
.iml file in intellij : File which handle development module(contain plugins, module and other details).
This files are not existing there so that it generate issue.(That are different based on IDE)
If you have recently modified the pom.xml or build.gradle config file, you need right click on pom.xml or build.gradle file and then run the menu "Update project configuration" to force the language server to update the project configuration/classpath. Otherwise, the java language server cannot recognize the newly added dependency.

Springboot application #EnableConfigServer would not resolve in Eclipse

I'm facing a rather odd issue which is I've set the necessary dependencies a mentioned in Spring documentation but once I add the #EnableConfigServer annotation Eclipse says it cannot be resolved. I checked the Maven dependencies folder and the necessary Spring Cloud Config *.jars were there. I tried deleting .m2 directory and rebuilding project nothing seemed to work. Any idea on this would be great.
Looks like this is the pure eclipse issue.
Try cleaning the project once and check.

ApacheCXF 3.1.4 and Spring 4.2.4 compatability

I am trying to upgrade my libraries: ApacheCXF 2.7.7 --> 3.1.4. Spring 2.5.5 --> 4.2.4.
My Hudson build keeps failing because it cannot find packages/classes, org.springframework.context.ApplicationContext, for example. The classpath in cxf-manifest.jar, as part of ApacheCXF, refers specifically to Spring 4.1.7 jars.
I've tried loading both Spring 4.1.7 and 4.2.4 versions, but no joy. (Is loading multiple lib versions even possible?).
I've tried removing cxf-manifest.jar from the classpath/buildpath. Eclipse is happy with that and it finds the desired classes in the Spring 4.2.4 jars, but Hudson is still not happy.
I've considered moving to Spring 4.1.7, but I don't see the point of upgrading partially.
Is ApacheCXF 3.1.4 specifically incompatible with Spring 4.2.4? And how would I get Hudson to be happy with the upgraded libraries?
Turns out that I forgot to add the specific directory containing the Spring jars to my build.xml script.
ApacheCXF 3.1.4 IS compatible with Spring 4.2.4
Edit: Apparently I was wrong.

Error in running gwt project with maven dependency using kepler?

I am using Kepler 4.3.2 and Maven compiler plugin 3.1, GWT 2.6.1 plugin and Java 1.7 , Tomcat 7.0 using the following steps.
Create GWT project
Configure it into maven prject.
Add dependency in pom.xml.
Add module name in *.gwt.xml file.
Select project->properties->project facets-> dynamic web 3.0 and java 1.7.
Update maven project.
Fixing all the warnings and errors.
Still I am having a problem to run the project that invalid thread excess Java NullPointerException.
I want to run this project on Jetty.
Where am I going wrong?

Categories

Resources