<#20659 java.util.zip.ZipException: attempt to wri...
# github-notifications
c
#20659 java.util.zip.ZipException: attempt to write past end of STORED entry Issue created by grihabor Describe the bug
pants package :jar
fails for
iceberg-spark-runtime-3.4_2.12
. Pants version 2.19.1 OS Ubuntu 22.04 Additional info Here is `BUILD`:
Copy code
jvm_artifact(
    group="org.apache.iceberg",
    artifact="iceberg-spark-runtime-3.4_2.12",
    version="1.4.3",
    name="iceberg-spark-runtime",
)
deploy_jar(
    name="jar",
    dependencies=[
        ":iceberg-spark-runtime",
    ],
    main="",
)
And `pants.toml`:
Copy code
[GLOBAL]
pants_version = "2.19.1"
backend_packages = [
    "pants.backend.experimental.java",
]
To reproduce the issue run:
Copy code
pants generate-lockfiles
pants package :jar
The error:
Copy code
22:00:28.22 [ERROR] 1 Exception encountered:

Engine traceback:
  in `package` goal

ProcessExecutionFailure: Process 'Building jar jar.jar' failed with exit code 1.
stdout:

stderr:
Unexpected problem writing target jar __out/jar.jar: java.util.zip.ZipException: attempt to write past end of STORED entry
pantsbuild/pants