Reputation: 31
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 :
Upvotes: 1
Views: 2618
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