Skip to content

Commit 496e1cf

Browse files
authored
Update README.md
1 parent 7222b9a commit 496e1cf

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

apps/generator-cli/src/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,26 @@ Further it is also possible to configure generators, for example:
158158
If `openapi-generator-cli generate` is called without further arguments, then the configuration
159159
is automatically used to generate your code. 🎉
160160

161+
### Using custom / private maven registry
162+
163+
If you're using a private maven registry you can configure the `downloadUrl` and `queryUrl` like this:
164+
165+
```json
166+
{
167+
"$schema": "node_modules/@openapitools/openapi-generator-cli/config.schema.json",
168+
"spaces": 2,
169+
"generator-cli": {
170+
"version": "5.3.0",
171+
"repository": {
172+
"queryUrl": "https://private.maven.intern/solrsearch/select?q=g:${group.id}+AND+a:${artifact.id}&core=gav&start=0&rows=200",
173+
"downloadUrl": "https://private.maven.intern/maven2/${groupId}/${artifactId}/${versionName}/${artifactId}-${versionName}.jar"
174+
}
175+
}
176+
}
177+
```
178+
179+
If the `version` property param is set it is not necessary to configure the `queryUrl`.
180+
161181

162182
##### Available placeholders
163183

0 commit comments

Comments
 (0)