forked from loafle/openapi-generator-original
docs: add instruction for building the binary (#18473)
This commit is contained in:
parent
1d67d0632d
commit
dc96d648f7
@ -84,6 +84,26 @@ For [Vendor Extensions](https://github.com/OAI/OpenAPI-Specification/blob/master
|
|||||||
- For language-specified vendor extension, put it in the form of `x-{lang}-{extension-name}`. e.g. `x-objc-operation-id`, `x-java-feign-retry-limit`
|
- For language-specified vendor extension, put it in the form of `x-{lang}-{extension-name}`. e.g. `x-objc-operation-id`, `x-java-feign-retry-limit`
|
||||||
- For a list of existing vendor extensions in use, please refer to https://github.com/openapitools/openapi-generator/wiki/Vendor-Extensions. If you've added new vendor extensions as part of your PR, please update the wiki page.
|
- For a list of existing vendor extensions in use, please refer to https://github.com/openapitools/openapi-generator/wiki/Vendor-Extensions. If you've added new vendor extensions as part of your PR, please update the wiki page.
|
||||||
|
|
||||||
|
### Building
|
||||||
|
|
||||||
|
The `openapi-generator-cli` can be built using the following command. This will generate the `openapi-generator-cli.jar` in the `modules/openapi-generator-cli/target` directory without running the tests and generating the Javadocs.
|
||||||
|
|
||||||
|
```shell
|
||||||
|
./mvnw clean install -DskipTests -Dmaven.javadoc.skip=true
|
||||||
|
```
|
||||||
|
|
||||||
|
Or on Windows:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
mvnw.cmd clean install -DskipTests -Dmaven.javadoc.skip=true
|
||||||
|
```
|
||||||
|
|
||||||
|
The binary can run via `java -jar`. For example:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar help
|
||||||
|
```
|
||||||
|
|
||||||
### Testing
|
### Testing
|
||||||
|
|
||||||
To add test cases (optional) covering the change in the code generator, please refer to [modules/openapi-generator/src/test/java/org/openapitools/codegen](https://github.com/openapitools/openapi-generator/tree/master/modules/openapi-generator/src/test/java/org/openapitools/codegen)
|
To add test cases (optional) covering the change in the code generator, please refer to [modules/openapi-generator/src/test/java/org/openapitools/codegen](https://github.com/openapitools/openapi-generator/tree/master/modules/openapi-generator/src/test/java/org/openapitools/codegen)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user