Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception thrown "pomProperties" is null #516

Open
baovitt opened this issue Nov 24, 2023 · 0 comments
Open

Exception thrown "pomProperties" is null #516

baovitt opened this issue Nov 24, 2023 · 0 comments

Comments

@baovitt
Copy link

baovitt commented Nov 24, 2023

Asking here because I'm boycotting stack overflow.

I'm able to run my project successfully in the sbt console, but am unable to run it an assembled jar, where I'm met with the following error:

Suppressed: java.lang.NullPointerException: Cannot invoke "java.io.InputStream.close()" because "pomProperties" is null

I'm assuming that pomProperties is related to sbt-assembly and this is the behavior of some bug, but I could be incorrect, in which case I'd appreciate greatly any guidance in the right direction. For context my mergeStrategy is the following:

assemblyMergeStrategy in assembly := {
  case PathList("META-INF", "versions", "9", "module-info.class") => MergeStrategy.first
  case PathList("META-INF", "io.netty.versions.properties") => MergeStrategy.concat
  case PathList("META-INF", xs @ _*) => MergeStrategy.discard
  case "application.conf" => MergeStrategy.concat
  case PathList("deriving.conf") => MergeStrategy.concat
  case "module-info.class" => MergeStrategy.first
  
  case x =>
    val oldStrategy = (assemblyMergeStrategy in assembly).value
    oldStrategy(x)
}

I'm using version 2.1.5. Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant