eltimn / sbt-frontend

SBT version of frontend-maven-plugin
Apache License 2.0
13 stars 6 forks source link

Plugin doesn't work #4

Closed yorlov closed 6 years ago

yorlov commented 7 years ago
java.lang.NoSuchFieldError: sbtLogger
    at sbtfrontend.FrontendPlugin$autoImport$$anonfun$frontendSettings$24$$anonfun$1.apply(FrontendPlugin.scala:112)
    at sbtfrontend.FrontendPlugin$autoImport$$anonfun$frontendSettings$24$$anonfun$1.apply(FrontendPlugin.scala:111)
    at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
    at sbt.Project$.setProject(Project.scala:341)
    at sbt.BuiltinCommands$.doLoadProject(Main.scala:559)
    at sbt.BuiltinCommands$$anonfun$loadProjectImpl$2.apply(Main.scala:540)
    at sbt.BuiltinCommands$$anonfun$loadProjectImpl$2.apply(Main.scala:540)
    at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:59)
    at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:59)
    at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:61)
    at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:61)
    at sbt.Command$.process(Command.scala:93)
    at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:96)
    at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:96)
    at sbt.State$$anon$1.doX$1(State.scala:183)
    at sbt.State$$anon$1.process(State.scala:190)
    at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:96)
    at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:96)
    at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
    at sbt.MainLoop$.next(MainLoop.scala:96)
    at sbt.MainLoop$.run(MainLoop.scala:89)
    at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:68)
    at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:63)
    at sbt.Using.apply(Using.scala:24)
    at sbt.MainLoop$.runWithNewLog(MainLoop.scala:63)
    at sbt.MainLoop$.runAndClearLast(MainLoop.scala:46)
    at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:30)
    at sbt.MainLoop$.runLogged(MainLoop.scala:22)
    at sbt.StandardMain$.runManaged(Main.scala:109)
    at sbt.xMain.run(Main.scala:38)
    at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109)
    at xsbt.boot.Launch$.withContextLoader(Launch.scala:128)
    at xsbt.boot.Launch$.run(Launch.scala:109)
    at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35)
    at xsbt.boot.Launch$.launch(Launch.scala:117)
    at xsbt.boot.Launch$.apply(Launch.scala:18)
    at xsbt.boot.Boot$.runImpl(Boot.scala:41)
    at xsbt.boot.Boot$.main(Boot.scala:17)
    at xsbt.boot.Boot.main(Boot.scala)
eltimn commented 7 years ago

You most likely have a conflict with SLF4J from one of your other plugins. I know of the following 2 that cause this problem:

libraryDependencies += "net.databinder.giter8" % "giter8-lib_2.10" % "0.6.8" exclude("org.slf4j", "slf4j-jdk14")

addSbtPlugin("org.xerial.sbt" % "sbt-pack" % "0.7.9" exclude("org.slf4j", "slf4j-simple"))

The exclude clause solves the problem.