mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 11:23:58 +00:00
40 lines
865 B
Markdown
40 lines
865 B
Markdown
|
# swagger-java-client
|
||
|
|
||
|
## Requirements
|
||
|
|
||
|
Building the API client library requires [Maven](https://maven.apache.org/) to be installed.
|
||
|
|
||
|
## Installation & Usage
|
||
|
|
||
|
To install the API client library to your local Maven repository, simply execute:
|
||
|
|
||
|
```shell
|
||
|
mvn install
|
||
|
```
|
||
|
|
||
|
To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
|
||
|
|
||
|
```shell
|
||
|
mvn deploy
|
||
|
```
|
||
|
|
||
|
Refer to the [official documentation](https://maven.apache.org/plugins/maven-deploy-plugin/usage.html) for more information.
|
||
|
|
||
|
After the client library is installed/deployed, you can use it in your Maven project by adding the following to your *pom.xml*:
|
||
|
|
||
|
```xml
|
||
|
<dependency>
|
||
|
<groupId>io.swagger</groupId>
|
||
|
<artifactId>swagger-java-client</artifactId>
|
||
|
<version>1.0.0</version>
|
||
|
<scope>compile</scope>
|
||
|
</dependency>
|
||
|
|
||
|
```
|
||
|
|
||
|
## Author
|
||
|
|
||
|
apiteam@swagger.io
|
||
|
|
||
|
|