When i run mvn spring-boot:run the build is failing see image below
I am using Visual Studio Code as my IDE and I have installed the Java Extensions
can someone assist please I am trying so many different things but not getting a result…some insight would be appreciated
Hi @Ramone_Granston,
Welcome to the MongoDB Community forums
Typos are a possible reason for this error.
-
Be sure to check you wrote
spring-boot
and not e.g.springboot
orsprint-boot
orspringbok
or whatever. -
Also check the ordering : use
spring-boot:run
and notrun:spring-boot
.
If you have any doubts, please feel free to reach out to us.
Thanks,
Kushagra Kesav
Hi @Ramone_Granston,
I suspect that the pom.xml
file is not in the current running directory, please make sure you run the maven
command from the same directory where pom.xml
file is present.
Also, if you can please share the pom.xml
file with us and also share the steps that how you created your pom.xml
file and which dependencies you added to that.
Thanks,
Kushagra
The pom.xml file i have is from the course…i didn’t create it
both are in my downloads folder
Hi @Ramone_Granston,
The error says that databaseName
doesn’t contain "
[double quotes], kindly update the MongoDB Driver via driver settings (it’s in Data Sources and Drivers) and try again.
Thanks,
Kushagra
I figured out what was causing the error, corrected it, and moved on to the next chapter. Thanks for the reply