I have a seemingly simple problem.
I would like to download a ZIP file from a Maven repository.
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
RULES_JVM_EXTERNAL_TAG = "4.5"
RULES_JVM_EXTERNAL_SHA = "b17d7388feb9bfa7f2fa09031b32707df529f26c91ab9e5d909eb1676badd9a6"
http_archive(
name = "rules_jvm_external",
strip_prefix = "rules_jvm_external-%s" % RULES_JVM_EXTERNAL_TAG,
sha256 = RULES_JVM_EXTERNAL_SHA,
)
load("@rules_jvm_external//:repositories.bzl", "rules_jvm_external_deps")
rules_jvm_external_deps()
load("@rules_jvm_external//:setup.bzl", "rules_jvm_external_setup")
rules_jvm_external_setup()
load("@rules_jvm_external//:defs.bzl", "maven_install")
maven_install(
name = "maven",
artifacts = [
"<artifact-string>",
],
repositories = [
"http://<nexus-ip-and-port>/nexus/content/groups/dev",
]
)
```
So far so good, but now I am wondering how I could test this.
There are two caveats:
The file is not a JAR file but aZIP file, containing Python code.
The repository requires credentials.
I have read through a lot of documentation, but I am increasingly getting the impression, that I would need to learn Bazel from the very ground up in order to make sense of any of this. Could anyone suggest a simple BUILD file with something like a "copy" target or "download" target, that just depends on this artifact, and would trigger a download, so I could verify that I have everything configured correctly up to this point?