<#20162 pants package deploy_jar fails with `KeyEr...
# github-notifications
c
#20162 pants package deploy_jar fails with `KeyError: ('junit', 'junit')` Issue created by pp-gborodin Describe the bug Pants fails when I'm trying to package a deploy_jar:
Copy code
$ pants package :hms-jars
16:55:17.23 [ERROR] 1 Exception encountered:

Engine traceback:
  in `package` goal

KeyError: ('junit', 'junit')
Pants version 2.18.0rc5 OS Ubuntu 22.04 Additional info Here is my pants.toml:
Copy code
[GLOBAL]
pants_version = "2.18.0rc5"

backend_packages = [
  'pants.backend.experimental.java',
]
Here is my BUILD:
Copy code
jvm_artifact(
    name="hms-jars-artifact",
    group="org.apache.hive",
    artifact="hive-exec",
    version="1.1.0",
    exclusions=[
        jvm_exclude(group="org.apache.calcite", artifact="calcite-avatica"),
        jvm_exclude(group="org.apache.calcite", artifact="calcite-core"),
        jvm_exclude(group="jdk.tools", artifact="jdk.tools"),
    ],
)
deploy_jar(
    name="hms-jars",
    main="",
    dependencies=[":hms-jars-artifact"],
)
Steps to reproduce: •
pants generate-lockfiles
pants package :hms-jars
Note: in my other repo I'm getting a slightly different error:
Copy code
Engine traceback:
  in `package` goal

KeyError: ('javax.activation', 'activation')
pantsbuild/pants