bazel-contrib / bazel-contrib/rules_jvm_external
multi maven_install issue
- Dominant language
- Java
- Stars
- 373
- Forks
- 301
- Avg merge
- 6d 3h
- Merged PRs (30d)
- 5
Description
I try to use two maven install but i've got an issue
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
RULES_JVM_EXTERNAL_TAG = "3.0"
RULES_JVM_EXTERNAL_SHA = "62133c125bf4109dfd9d2af64830208356ce4ef8b165a6ef15bbff7460b35c3a"
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,
)
load("@rules_jvm_external//:defs.bzl", "maven_install")
maven_install(
name = "framework",
maven_install_json = "//:framework_maven_install.json", #@
artifacts = [
"lu.foyer.exzos:cics-services:1.0",
"lu.foyer.exzos:cobol-services:1.0",
...
load("@framework//:defs.bzl", framework_pinned_maven_install = "pinned_maven_install")
framework_pinned_maven_install()
and same thing for the second one called programs and his maven_install_json = "programs_maven_install.json",
my BUILD contains two filegroup like that :
filegroup(
name = "frameworkJar",
srcs = [
"@framework//:lu_foyer_exzos_cics_services",
my error:
ERROR: An error occurred during the fetch of repository 'framework':
Traceback (most recent call last):
File "C:/users/fal/_bazel_fal/zew6j32p/external/rules_jvm_external/coursier.bzl", line 212
repository_ctx.symlink(<2 more arguments>)
File "C:/users/fal/_bazel_fal/zew6j32p/external/rules_jvm_external/coursier.bzl", line 213, in reposi
tory_ctx.symlink
repository_ctx.path(<1 more arguments>)
Not a regular file: D:/workspace_exzos/release/foyer-pms/framework_maven_install.json
ERROR: no such package '@framework//': Traceback (most recent call last):
File "C:/users/fal/_bazel_fal/zew6j32p/external/rules_jvm_external/coursier.bzl", line 212
repository_ctx.symlink(<2 more arguments>)
File "C:/users/fal/_bazel_fal/zew6j32p/external/rules_jvm_external/coursier.bzl", line 213, in reposi
tory_ctx.symlink
repository_ctx.path(<1 more arguments>)
Not a regular file: D:/workspace_exzos/release/foyer-pms/framework_maven_install.json
### Feature requests: what underlying problem are you trying to solve with this feature?
> Replace this line with your answer.
### Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
> Replace this line with your answer.
### What operating system are you running Bazel on?
Windows 10
### What's the output of `bazel info release`?
bazel 2.1.1
thanks for your help
Contributor guide
Research direction
Start by reproducing the two maven_install declarations on Windows 10 with Bazel 2.1.1, using the referenced framework_maven_install.json and programs_maven_install.json files. Read rules_jvm_external/coursier.bzl around lines 212-213 and inspect the BUILD file's filegroups. Done means both external repositories fetch successfully and their referenced artifacts can be used.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100