Skip to content

Commit

Permalink
Fix generate API Client failed on Windows (#2408)
Browse files Browse the repository at this point in the history
  • Loading branch information
baixinsui authored Feb 14, 2025
1 parent 75e263f commit 158314c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ This will make the client to handle both with and without authentication usecase
2. Access http://localhost:9090/v3/api-docs to get the openapi json.
3. Copy all the JSON content of the openapi json and replace all the content in the JSON file
[terra-boot-openapi.json](modules/deployment/src/main/resources/terra-boot-openapi.json).
4. Run the below maven command to generate the REST API client and data models for terra-boot. The command can be
4. Run the below maven command to generate the REST API client and data models for terra-boot. The command must be
executed directly inside the `deployment` module.

```ssh
Expand All @@ -80,7 +80,7 @@ This will make the client to handle both with and without authentication usecase
3. Copy all the JSON content of the openapi json and replace all the content in the JSON file
[tofu-maker-openapi.json](modules/deployment/src/main/resources/tofu-maker-openapi.json).
4. Run the below maven command to generate the REST API client and data models for tofu-maker. The
command can be executed directly inside the `deployment` module.
command must be executed directly inside the `deployment` module.

```ssh
mvn clean generate-sources -DskipTofuMakerClientGeneration=false
Expand All @@ -91,7 +91,7 @@ mvn clean generate-sources -DskipTofuMakerClientGeneration=false
1. Run the policy-man project and access “http://localhost:8090/swagger/doc.json” to get the openapi json.
2. Copy all the JSON content of the openapi json and replace all the content in the JSON file
[policy-man-openapi.json](modules/policy/src/main/resources/policy-man-openapi.json)
3. Run the below maven command to generate the REST API client and data models for policy-man. The command can be
3. Run the below maven command to generate the REST API client and data models for policy-man. The command must be
executed directly inside the `policy` module.

```ssh
Expand Down
4 changes: 2 additions & 2 deletions modules/deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>${project.basedir}/src/main/resources/terra-boot-openapi.json</inputSpec>
<inputSpec>src/main/resources/terra-boot-openapi.json</inputSpec>
<generatorName>java</generatorName>
<output>${project.basedir}</output>
<apiPackage>
Expand Down Expand Up @@ -165,7 +165,7 @@
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>${project.basedir}/src/main/resources/tofu-maker-openapi.json</inputSpec>
<inputSpec>src/main/resources/tofu-maker-openapi.json</inputSpec>
<generatorName>java</generatorName>
<output>${project.basedir}</output>
<apiPackage>
Expand Down
2 changes: 1 addition & 1 deletion modules/policy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>${project.basedir}/src/main/resources/policy-man-openapi.json</inputSpec>
<inputSpec>src/main/resources/policy-man-openapi.json</inputSpec>
<generatorName>java</generatorName>
<output>${project.basedir}</output>
<apiPackage>
Expand Down

0 comments on commit 158314c

Please sign in to comment.