Hello,

Now everything works perfectly when compiling with Maven, but now I'm
trying to compile with IntelliJ. So I import the Maven project and
then hit Build Project. IntelliJ gives me an error in
SelectNearestCentroidFunction, that it cannot find slf4j in the import
import org.slf4j.LoggerFactory
I'm not sure where this dependency is specified, but maybe it's coming
from Spark. I'm also not sure why a Maven build finds it but IntelliJ
doesn't.

I'm using IntelliJ 2021.2, with Java 11. I tried setting IntelliJ to
use both the bundled Maven and a newer one on my system, but neither
worked. I tried rebuilding the project, reimporting the Maven project
several times, I tried "invalidate cache and restart" several times.

In other files,
org.apache.logging.log4j.LogManager
is used for logging instead. Could we change
SelectNearestCentroidFunction to also use this one? I tried it on my
computer, and then the IntelliJ build works. Should I open a pull
request with it?
https://github.com/ggevay/incubator-wayang/commit/d6eb3cea47bf8bf95d75ca8d896237cf49c6f3a5

Best,
Gábor

Reply via email to