aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main
diff options
context:
space:
mode:
authorGravatar David Jarvis <david.jarvis@airbnb.com>2016-11-17 14:09:37 +0000
committerGravatar Kristina Chodorow <kchodorow@google.com>2016-11-17 18:18:34 +0000
commit9fc3deccaae462b726f29d93934fa95cabc4ff9d (patch)
tree63f59247466135d77a3242c4bc31888f20df5b1e /src/main
parent52752f685002796acbc572626d9eaffe92f93504 (diff)
Correct maven_server rule docs to use valid workspace name
The current documentation for maven_server uses a rule name of `my-server`, which is not a legal rule name due to its use of a hyphen. This commit changes the hyphen to an underscore and changes all instances of `my-server` to `my_server` Closes #2087. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/2087 MOS_MIGRATED_REVID=139452335
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/google/devtools/build/lib/bazel/rules/workspace/MavenServerRule.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/bazel/rules/workspace/MavenServerRule.java b/src/main/java/com/google/devtools/build/lib/bazel/rules/workspace/MavenServerRule.java
index 04434a19c9..38a0422dba 100644
--- a/src/main/java/com/google/devtools/build/lib/bazel/rules/workspace/MavenServerRule.java
+++ b/src/main/java/com/google/devtools/build/lib/bazel/rules/workspace/MavenServerRule.java
@@ -78,18 +78,18 @@ public class MavenServerRule implements RuleDefinition {
maven_jar(
name = "junit",
artifact = "junit:junit-dep:4.10",
- server = "my-server",
+ server = "my_server",
)
maven_server(
- name = "my-server",
+ name = "my_server",
url = "http://intranet.mycorp.net",
)
</pre>
This specifies that junit should be downloaded from http://intranet.mycorp.net using the
authentication information found in ~/.m2/settings.xml (specifically, the settings
-for the server with the id <code>my-server</code>).
+for the server with the id <code>my_server</code>).
<h4>Specifying a default server</h4>