Why does sbt consider this to be an “unknown artifact”?

I follow the sbt instructions here :

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

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

But when I put this in IntelliJ, it gives an error: unresolved artifact. Not resolved or indexed.I am new to Scala and SBT. Can anyone help?

+4
source share
1 answer

After adding the library, you need to update the SBT project . you can move the cursor to this error and Option + Enter in mac or Alt + Enter in Windows / Linux for the Update project . as:

enter image description here

+5
source

Source: https://habr.com/ru/post/1671816/


All Articles