Enable Plugins - JavaServerAppPackaging

Hello dear friends

I have a problem in building my project which used to be built easily.
I am having the following error
error: not found: value JavaServerAppPackaging
I get this from the first line of the build.sbt file which is “enablePlugins(JavaServerAppPackaging)”.

Any help would be highly appreciated.

Thanks in advance

Check your <root>/project/plugins.sbt to be present and declaring something like:

addSbtPlugin(“com.typesafe.sbt” % “sbt-native-packager” % “1.3.4”)
# 1.3.4 or the version you were using

Assuming you still keep all declarations at your <root>/build.sbt, you should get it working by reloading your sbt.

If it keeps failing, review step by step all instructions here: https://github.com/sbt/sbt-native-packager

1 Like

Thanks a million!
@francisbrosnan