<#20794 jvm_exclude with Group Only Fails Parsing ...
# github-notifications
c
#20794 jvm_exclude with Group Only Fails Parsing by Coursier Issue created by NGustafson Describe the bug Running
pants generate-lockfiles
when a
jvm_artifact
contains a
jvm_exclude
that only specifies a group will fail with a "Failed to parse [group-name]" message from Coursier. This is contrary to the documentation for
jvm_exclude
which states "`jvm_exclude`: Exclude the given
artifact
and
group
, or all artifacts from the given
group
." Pants version 2.20.0rc2 OS MacOS Additional info Example Repo https://github.com/NGustafson/pants-examples/blob/main/3rdparty/jvm/BUILD This repo has a single jvm_artifact with nothing else configured. Attempting to run
pants generate-lockfiles
will cause this error:
Copy code
pants generate-lockfiles
[ERROR] 1 Exception encountered:

Engine traceback:
  in `generate-lockfiles` goal

ProcessExecutionFailure: Process 'Running `coursier fetch` against 1 requirement: org.slf4j:slf4j-log4j12:2.0.12' failed with exit code 1.
stdout:

stderr:
+ coursier_exe=__coursier/./cs-aarch64-apple-darwin
+ shift
+ json_output_file=coursier_report.json
+ shift
++ pwd
+ working_dir=/private/var/folders/cm/gmrdwxcn7tv_cct4dzg38w91kjyl1q/T/pants-sandbox-aM4FVB
+ __coursier/./cs-aarch64-apple-darwin fetch -r=<https://maven-central.storage-download.googleapis.com/maven2> -r=<https://repo1.maven.org/maven2> --no-default --json-output-file=coursier_report.json org.slf4j:slf4j-log4j12:2.0.12 --local-exclude-file PANTS_RESOLVE_EXCLUDES
Failed to parse org.slf4j
Failed to parse org.slf4j
pantsbuild/pants