From 31bd8103eff605e66f7054b9b681dc826ee6b0a6 Mon Sep 17 00:00:00 2001 From: Kaoru Kohashigawa Date: Thu, 12 Sep 2019 08:35:51 -0700 Subject: [PATCH] update README.md section on pinning to explicitly tell folks to have a root BUILD file (#243) --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index ce65678b8..4381039d4 100644 --- a/README.md +++ b/README.md @@ -125,6 +125,10 @@ load("@maven//:defs.bzl", "pinned_maven_install") pinned_maven_install() ``` +**Note:** Bazel assumes you have a BUILD file in your project's root directory. +If you do not have one, create an empty BUILD file to fix issues you may see. +See [#242](https://github.com/bazelbuild/rules_jvm_external/issues/242) + Whenever you make a change to the list of `artifacts` or `repositories` and want to update `maven_install.json`, run this command to re-pin the unpinned `@maven` repository: