springdoc / springdoc-openapi-maven-plugin

Library for OpenAPI 3 with spring-boot
https://springdoc.org
Apache License 2.0
141 stars 37 forks source link

Plugin does not generate specification #56

Closed cobar79 closed 1 year ago

cobar79 commented 1 year ago

Spring Boot v2.7.6, Spring v5.3.24

            <plugin>
                <groupId>org.springdoc</groupId>
                <artifactId>springdoc-openapi-maven-plugin</artifactId>
                <version>1.4</version>
                <executions>
                    <execution>
                        <id>integration-test</id>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <!-- See StartupControllerTest -->
                    <apiDocsUrl>http://localhost:8484/docs/api-docs</apiDocsUrl>
                    <outputFileName>openapi.json</outputFileName>
                    <outputDir>${project.basedir}</outputDir>
                    <skip>false</skip>
                </configuration>
            </plugin>

During testing phase of build I can successfully hit the endpoint. http://localhost:8484/docs/api-docs

{
    "openapi": "3.1.0",
    "info": {
        "title": "UCDP Ingestion",
        "version": "openapi_3_1"
    },
    "servers": [
        {
            "url": "http://localhost:8300/ucdp-ingest",
            "description": "Generated server url"
        }
    ],
    "paths": {
...........
bnasslahsen commented 1 year ago

Not reproducible

This ticket will be closed until you Provide a Minimal, Reproducible Example - with HelloController that reproduces the problem