Skip to content

Commit f3f80fa

Browse files
committed
Docs: establish convention for variable name w/ substitution
Where we refer to an environment variable with a portion to be substituted, e.g. `prefix_MAVEN_MIRROR_ID` where "prefix" will be substitute by something like APP1, depending on the value of `MAVEN_MIRRORS`, use the convention "<prefix>", to indicate that the value is a placeholder. Signed-off-by: Jonathan Dowland <[email protected]>
1 parent e10b056 commit f3f80fa

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

modules/maven/default/module.yaml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ envs:
4949
names will be replaced by underscores. For example: Specifying
5050
`DEV-ONE,QE-TWO` configures two mirrors and their URLs will be read from
5151
the `DEV_ONE_MAVEN_MIRROR_URL` and `QE_TWO_MAVEN_MIRROR_URL` variables.
52-
See also: `prefix_MAVEN_MIRROR_ID`; `prefix_MAVEN_MIRROR_OF`;
53-
`prefix_MAVEN_MIRROR_URL`.
52+
See also: `<prefix>_MAVEN_MIRROR_ID`; `<prefix>_MAVEN_MIRROR_OF`;
53+
`<prefix>_MAVEN_MIRROR_URL`.
5454
example: "DEV-ONE,QE-TWO"
55-
- name: prefix_MAVEN_MIRROR_ID
55+
- name: <prefix>_MAVEN_MIRROR_ID
5656
description: "ID to be used for the specified mirror. If omitted, a unique ID will be generated."
5757
example: "internal-mirror"
58-
- name: prefix_MAVEN_MIRROR_OF
58+
- name: <prefix>_MAVEN_MIRROR_OF
5959
description: "Repository IDs mirrored by this entry. Defaults to external:*"
60-
- name: prefix_MAVEN_MIRROR_URL
60+
- name: <prefix>_MAVEN_MIRROR_URL
6161
description: "The URL of the mirror."
6262
example: "http://10.0.0.1:8080/repository/internal"
6363
- name: MAVEN_SETTINGS_XML
@@ -87,66 +87,66 @@ envs:
8787
Specifying `DEV-ONE,QE-TWO` configures two repositories and their
8888
URLs will be read from `DEV_ONE_MAVEN_REPO_URL` and
8989
`QE_TWO_MAVEN_REPO_URL`.
90-
- name: "prefix_MAVEN_REPO_ID"
90+
- name: "<prefix>_MAVEN_REPO_ID"
9191
example: "my-repo-id"
9292
description: "Maven repository id"
93-
- name: "prefix_MAVEN_REPO_NAME"
93+
- name: "<prefix>_MAVEN_REPO_NAME"
9494
example: "my-repo-name"
9595
description: "Maven repository name"
96-
- name: "prefix_MAVEN_REPO_LAYOUT"
96+
- name: "<prefix>_MAVEN_REPO_LAYOUT"
9797
example: "default"
9898
description: "Maven repository layout"
99-
- name: "prefix_MAVEN_REPO_RELEASES_ENABLED"
99+
- name: "<prefix>_MAVEN_REPO_RELEASES_ENABLED"
100100
example: "true"
101101
description: "Maven repository releases enabled"
102-
- name: "prefix_MAVEN_REPO_RELEASES_UPDATE_POLICY"
102+
- name: "<prefix>_MAVEN_REPO_RELEASES_UPDATE_POLICY"
103103
example: "always"
104104
description: "Maven repository releases update policy"
105-
- name: "prefix_MAVEN_REPO_RELEASES_CHECKSUM_POLICY"
105+
- name: "<prefix>_MAVEN_REPO_RELEASES_CHECKSUM_POLICY"
106106
example: "warn"
107107
description: "Maven repository releases checksum policy"
108-
- name: "prefix_MAVEN_REPO_SNAPSHOTS_ENABLED"
108+
- name: "<prefix>_MAVEN_REPO_SNAPSHOTS_ENABLED"
109109
example: "true"
110110
description: "Maven repository snapshots enabled"
111-
- name: "prefix_MAVEN_REPO_SNAPSHOTS_UPDATE_POLICY"
111+
- name: "<prefix>_MAVEN_REPO_SNAPSHOTS_UPDATE_POLICY"
112112
example: "always"
113113
description: "Maven repository snapshots update policy"
114-
- name: "prefix_MAVEN_REPO_SNAPSHOTS_CHECKSUM_POLICY"
114+
- name: "<prefix>_MAVEN_REPO_SNAPSHOTS_CHECKSUM_POLICY"
115115
example: "warn"
116116
description: "Maven repository snapshots checksum policy"
117-
- name: "prefix_MAVEN_REPO_USERNAME"
117+
- name: "<prefix>_MAVEN_REPO_USERNAME"
118118
example: "mavenUser"
119119
description: "Maven repository username"
120-
- name: "prefix_MAVEN_REPO_PASSWORD"
120+
- name: "<prefix>_MAVEN_REPO_PASSWORD"
121121
example: "maven1!"
122122
description: "Maven repository password"
123-
- name: "prefix_MAVEN_REPO_PRIVATE_KEY"
123+
- name: "<prefix>_MAVEN_REPO_PRIVATE_KEY"
124124
example: "${user.home}/.ssh/id_dsa"
125125
description: "Maven repository private key"
126-
- name: "prefix_MAVEN_REPO_PASSPHRASE"
126+
- name: "<prefix>_MAVEN_REPO_PASSPHRASE"
127127
example: "maven1!"
128128
description: "Maven repository passphrase"
129-
- name: "prefix_MAVEN_REPO_FILE_PERMISSIONS"
129+
- name: "<prefix>_MAVEN_REPO_FILE_PERMISSIONS"
130130
example: "664"
131131
description: "Maven repository file permissions"
132-
- name: "prefix_MAVEN_REPO_DIRECTORY_PERMISSIONS"
132+
- name: "<prefix>_MAVEN_REPO_DIRECTORY_PERMISSIONS"
133133
example: "775"
134134
description: "Maven repository directory permissions"
135-
- name: "prefix_MAVEN_REPO_URL"
135+
- name: "<prefix>_MAVEN_REPO_URL"
136136
example: "http://repo.example.com:8080/maven2/"
137137
description: "Maven repository url (fully defined)"
138-
- name: "prefix_MAVEN_REPO_PROTOCOL"
138+
- name: "<prefix>_MAVEN_REPO_PROTOCOL"
139139
example: "http"
140140
description: "Maven repository protocol (if not using fully defined url; will fallback to service)"
141-
- name: "prefix_MAVEN_REPO_HOST"
141+
- name: "<prefix>_MAVEN_REPO_HOST"
142142
example: "repo.example.com"
143143
description: "Maven repository host (if not using fully defined url; will fallback to service)"
144-
- name: "prefix_MAVEN_REPO_PORT"
144+
- name: "<prefix>_MAVEN_REPO_PORT"
145145
example: "8080"
146146
description: "Maven repository port (if not using fully defined url; will fallback to service)"
147-
- name: "prefix_MAVEN_REPO_PATH"
147+
- name: "<prefix>_MAVEN_REPO_PATH"
148148
example: "/maven2/"
149149
description: "Maven repository path (if not using fully defined url; will fallback to service)"
150-
- name: "prefix_MAVEN_REPO_SERVICE"
150+
- name: "<prefix>_MAVEN_REPO_SERVICE"
151151
example: "buscentr-myapp"
152-
description: "Maven repository service to lookup if prefix_MAVEN_REPO_URL not specified"
152+
description: "Maven repository service to lookup if `<prefix>_MAVEN_REPO_URL` not specified"

0 commit comments

Comments
 (0)