refined-hydrogen-47967
04/04/2024, 4:55 AMjvm_artifact
suggests it's possible to specify a jvm_exclude
that contains group and artifact or only group.
`jvm_exclude`: Exclude the givenBut when I attempt to only specify a groupandartifact
, or all artifacts from the givengroup
.group
jvm_exclude(group="org.slf4j"),
I get an error like this.
Failed to parse org.slf4j
Failed to parse org.slf4j
This seems to be coming directly from coursier, and as far as I can tell group-only excludes aren't supported.
Am I missing something? Is anyone successfully using a group-only exclude like this?happy-kitchen-89482
04/04/2024, 9:24 PMhappy-kitchen-89482
04/04/2024, 9:25 PMrefined-hydrogen-47967
04/04/2024, 11:57 PMpants generate-lockfiles
. I can create a simple example if that would help.happy-kitchen-89482
04/05/2024, 12:07 AMrefined-hydrogen-47967
04/08/2024, 11:39 AMpants generate-lockfiles
will cause this error:
pants generate-lockfiles ✔ 20:31:31
20:35:29.17 [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
My understanding is that the 3 variations of jvm_exclude
in the jvm_target
linked above all represent the same thing within Pants, and that this seems to be legal syntax, but all of them result in the same error.refined-hydrogen-47967
04/12/2024, 4:31 AMhappy-kitchen-89482
04/12/2024, 11:03 PMhappy-kitchen-89482
04/12/2024, 11:04 PMhappy-kitchen-89482
04/12/2024, 11:04 PMrefined-hydrogen-47967
04/15/2024, 11:55 AM--exclude 'org.slf4j:*'
, but this syntax in Pants causes a different error jvm_exclude(group="org.slf4j", artifact="*")
. Maybe I could try and get that working?happy-kitchen-89482
04/15/2024, 3:42 PMartifact="*"
if you want to take a stab at it