Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Maven Plugin Generate API Client Failed on Windows #2408

Merged
merged 1 commit into from
Feb 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading