user3685285
user3685285

Reputation: 6606

Why does sbt think this is an 'unknown artifact?'

I'm following the sbt directions here:

The instructions say to include this in my build.sbt file:

libraryDependencies += "org.apache.lucene" % "lucene-core" % "6.4.1"

But When I put that into IntelliJ, it gives the error: unresolved artifact. Not resolved or indexed. I'm new to Scala and SBT. Can someone help?

Upvotes: 4

Views: 3972

Answers (1)

chengpohi
chengpohi

Reputation: 14227

After you add library you need to refresh SBT project. you can move cursor to this error, and Option+Enter in mac or Alt+Enter in Windows/Linux for Refresh project. like:

enter image description here

Upvotes: 7

Related Questions