File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -158,6 +158,26 @@ Further it is also possible to configure generators, for example:
158158If ` openapi-generator-cli generate ` is called without further arguments, then the configuration
159159is 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
You can’t perform that action at this time.
0 commit comments