I'm writing a maven plugin and a dependency makes a cast like so:
ch.qos.logback.classic.Logger logger =
(ch.qos.logback.classic.Logger)LoggerFactory.getLogger("ROOT");
which fails with this error:
org.slf4j.impl.MavenSimpleLogger cannot be cast to ch.qos.logback.classic.Logger
I've tried adding direct dependencies to logback and moving dependencies around in my pom but I can't figure it out.
Any ideas?