Amir Parvaneh
Amir Parvaneh

Reputation: 31

Why I'm getting 'cannot resolve ch.qos.logback:logback-core:1.2.3' in my Spring Boot app?

I'm using Intellij IDEA and I have a simple spring boot app.

I'm getting this error when I've imported the pom.xml

Cannot resolve ch.qos.logback:logback-core:1.2.3

Screenshot of the pom.xml :

enter image description here

Upvotes: 1

Views: 2618

Answers (1)

Dhiral Kaniya
Dhiral Kaniya

Reputation: 2051

Add maven central repositories in your pom.xml. This looks missing in the image which you have shared.

<repositories>
  <repository>
    <id>central</id>
    <name>Maven Central</name>
    <layout>default</layout>
    <url>https://repo1.maven.org/maven2</url>
    <releases>
    <enabled>false</enabled>
    </releases>
    <snapshots>
    <enabled>false</enabled>
    </snapshots>
  </repository>
</repositories>

Upvotes: 1

Related Questions