#23316 deploy_jar fails with `attempt to write past end of STORED entry`
Issue created by
grihabor
Describe the bug
Packaging a deploy_jar that bundles org.apache.iceberg
iceberg spark runtime 4.0 2.131.10.1 fails with a ZipException during the jar build step.
pants.toml
[GLOBAL]
pants_version = "2.30.2"
backend_packages = [
"pants.backend.experimental.java",
]
[jvm]
default_resolve = "default"
[jvm.resolves]
default = "3rdparty/jvm/default.lock"
BUILD
jvm_artifact(
name="iceberg_runtime",
group="org.apache.iceberg",
artifact="iceberg-spark-runtime-4.0_2.13",
version="1.10.1",
)
deploy_jar(
name="repro",
main="",
dependencies=[":iceberg_runtime"],
duplicate_policy=[
duplicate_rule(pattern="^LICENSE", action="replace"),
],
)
Run:
pants generate-lockfiles
pants package :repro
Error:
Unexpected problem writing target jar __out/repro.jar: java.util.zip.ZipException: attempt to write past end of STORED entry
Pants version
2.30.2
OS
Ubuntu 24.04
pantsbuild/pants