I am attempting to build an rpm using sbt-native-packager. It is included in my project like this:
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.1.0-RC1")
and I am kicking off the build process like this:
sbt rpm:packageBin
The build process is taking a very long time at this point:
[error] + /usr/lib/rpm/redhat/brp-compress
[error] + /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
[error] + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
[error] + /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
[error] + /usr/lib/rpm/brp-python-bytecompile
[error] + /usr/lib/rpm/redhat/brp-python-hardlink
[error] + /usr/lib/rpm/redhat/brp-java-repack-jars
I found this Github issue and tried adding rpmBrpJavaRepackJars := false
to my build.sbt
but it doesn't seem to be affecting the rpm build process. Here is what the related section of my build.sbt looks like:
enablePlugins(JavaAppPackaging)
enablePlugins(RpmPlugin)
linuxPackageMappings in Rpm := linuxPackageMappings.value
rpmVendor := "Testing"
rpmGroup := Some("Applications")
rpmUrl := Some("None")
rpmLicense := Some("GPL")
rpmBrpJavaRepackJars := false
Am I correctly configuring the rpm plugin and the rpmBrpJavaRepackJars option?
This looks like a bug in native-packager. Can you open an issue with your description mentioning this line.
rpmBrpJavaRepackJars
is read from an invalid scope. Try this as a workaround:
rpmBrpJavaRepackJars in Rpm := false
Definitely a regression.
cheers, Muki