Skip to content

Commit 0b4dac6

Browse files
authored
chore: update readme to include steps to bypass maven repo search (#1019)
1 parent 2a8a011 commit 0b4dac6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

apps/generator-cli/src/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,14 @@ If `useDocker` option is used, the spec file gets mounted to path `/local/<your-
264264

265265
Custom generators can be used by passing the `--custom-generator=/my/custom-generator.jar` argument.
266266

267+
## Bypassing maven repo search
268+
269+
To bypass maven repo search for all stable versions (as central.sonatype.com or search.maven.org could be down due to various reasons), one can set the environment variable `OPENAPI_GENERATOR_CLI_SEARCH_URL` to `DEFAULT`:
270+
271+
Linux: `export OPENAPI_GENERATOR_CLI_SEARCH_URL=DEFAULT`
272+
273+
DOS: `set OPENAPI_GENERATOR_CLI_SEARCH_URL=DEFAULT`
274+
267275
## Further Documentation
268276

269277
Please refer to the [official openapi-generator docs](https://github.com/OpenAPITools/openapi-generator#3---usage) for

0 commit comments

Comments
 (0)