<#17790 deploy_jar: failed to shading_zap> Issue c...
# github-notifications
q
#17790 deploy_jar: failed to shading_zap Issue created by da-tubi Describe the bug Here is the reproducer: https://github.com/da-tubi/pants-spark/tree/feature/shading
Copy code
$ ./pants package src/jvm/tubi:dog

ProcessExecutionFailure: Process 'Shading JAR dog.jar' failed with exit code 899.
stdout:

stderr:
java.lang.SecurityException: Invalid signature file digest for Manifest main attributes
	at java.base/sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:316)
	at java.base/sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:258)
Pants version 2.16.0.dev2 OS macOS Additional info How I use `deploy_jar`: https://github.com/da-tubi/pants-spark/blob/92f53f555dc82de9e29ff66d52f8d031351b61bb/src/jvm/tubi/BUILD.pants#L11-L23
Copy code
deploy_jar(
    name="dog",
    main="tubi.dog.Tail",
    output_path="dog.jar",
    dependencies=[
        "src/jvm/tubi/dog:sources",
        "src/jvm/tubi/common:sources@resolve=dog_req",
    ],
    shading_rules=[
       shading_zap(pattern="org.apache.spark.**"),
    ],
    resolve="dog_req"
)
pantsbuild/pants