rules_jvm_external icon indicating copy to clipboard operation
rules_jvm_external copied to clipboard

rule '@maven//:xml_apis_xml_apis' does not exist

Open krisnaru opened this issue 3 years ago • 2 comments

Workspace: RULES_JVM_EXTERNAL_TAG = "3.3" RULES_JVM_EXTERNAL_SHA = "d85951a92c0908c80bd8551002d66cb23c3434409c814179c0ff026b53544dab"

http_archive( name = "rules_jvm_external", strip_prefix = "rules_jvm_external-%s" % RULES_JVM_EXTERNAL_TAG, sha256 = RULES_JVM_EXTERNAL_SHA, url = "https://github.com/bazelbuild/rules_jvm_external/archive/%s.zip" % RULES_JVM_EXTERNAL_TAG, )

ERROR: /private/var/tmp/_bazel_knarukulla/8ee12e7af1de74d96e04eaf42164d19d/external/maven/BUILD:14217:11: in deps attribute of jvm_import rule @maven//:xerces_xercesImpl: rule '@maven//:xml_apis_xml_apis' does not exist

krisnaru avatar May 17 '21 22:05 krisnaru

What are you running when you get the error? And what is in your BUILD file?

cheister avatar Aug 15 '21 04:08 cheister

I found the exact same problem and my gradle build was saying this about that dependency:

POM relocation to another version number is not fully supported in Gradle : xml-apis:xml-apis:2.0.2 relocated to xml-apis:xml-apis:1.0.b2. Please update your dependency to directly use the correct version 'xml-apis:xml-apis:1.0.b2'. Resolution will only pick dependencies of the relocated element. Artifacts and other metadata will be ignored.

Just declare the dependency in your WORKSPACE with the "1.0.b2" version instead of the "2.0.2" version and make sure you have this in your maven_install config: maven_install( ... version_conflict_policy = "pinned", )

manumartin avatar Sep 09 '21 00:09 manumartin