Skip to content

[Announcement] How I Can Improve the usage of inputSpec for maven plugin #13283

Open
@hhovhann

Description

@hhovhann

Dear colleagues, first of all, thanks for your nice job and this useful plugin.
I am trying to integrate it with the help of documentation.

Working fine with <inputSpec>${project.basedir}/src/main/resources/api.yaml</inputSpec> the local yml file and the inputSpec is mandatory field.

I need to not keep that file in the repository, so take it for example from my running instance, what I have in the provided configuration below. After annotation scanning processing the yaml on the fly is generated and could be used.

Her is my current configuration, which is not what expecting

            <plugin>
                <groupId>org.openapitools</groupId>
                <artifactId>openapi-generator-maven-plugin</artifactId>
                <version>6.0.1</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                        <configuration>
                            <inputSpec>http://localhost:4110/v3/data-ransomware-docs.yaml</inputSpec>
                            <generatorName>html2</generatorName>
                            <configOptions>
                                <sourceFolder>src/gen/java/main</sourceFolder>
                            </configOptions>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

The issue here is that to use properly the plugin I have to have a running instance and only after that can use it from the terminal to run the HTML doc generation.

QUESTION/IMPROVEMENT: Is there any other way how we can have this done?

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    AnnouncementProject/release related announcements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions