# springdoc-openapi-maven-plugin **Repository Path**: mirrors_springdoc/springdoc-openapi-maven-plugin ## Basic Information - **Project Name**: springdoc-openapi-maven-plugin - **Description**: Library for OpenAPI 3 with spring-boot - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-10-22 - **Last Updated**: 2026-03-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![Build Status](https://ci-cd.springdoc.org:8443/buildStatus/icon?job=springdoc-openapi-maven-plugin-IC)](https://ci-cd.springdoc.org:8443/view/springdoc-openapi-maven/job/springdoc-openapi-maven-plugin-IC/) ## **Introduction to springdoc-openapi-maven-plugin** The aim of springdoc-openapi-maven-plugin is to generate json and yaml OpenAPI description during runtime. If you want to get swagger definitions properly, the application should completely running as locally. The plugin works during integration-tests phase, and generate the OpenAPI description. The plugin works in conjunction with spring-boot-maven plugin. You can test it during the integration tests phase using the maven command: ```shell mvn verify ``` In order to use this functionality, you need to add the plugin declaration on the plugins section of your pom.xml: ```xml org.springframework.boot spring-boot-maven-plugin ${spring-boot-maven-plugin.version} -Dspring.application.admin.enabled=true pre-integration-test start post-integration-test stop org.springdoc springdoc-openapi-maven-plugin last-release-version integration-test generate ``` ## **Custom settings of the springdoc-openapi-maven-plugin** It possible to customise the following plugin properties: * attachArtifact: install / deploy the api doc to the repository * The default value is: false * apiDocsUrl: The local url of your (json or yaml). * The default value is: http://localhost:8080/v3/api-docs * outputDir: The output directory, where to generate the OpenAPI description. The directory name shouldn't start with "/". * The default value is: ${project.build.directory} * outputFileName: The file name that contains the OpenAPI description. * The default value is: openapi.json * skip: Skip execution if set to true. * The default value is: false * headers: List of headers to send in request * The default value is empty * failOnError: Fail build on error, if set to `true`. Default is `false`. * The default value is false ```xml org.springdoc springdoc-openapi-maven-plugin last-release-version integration-test generate http://localhost:8080/v3/api-docs openapi.json home/springdoc/maven-output false true header1value header2value ``` # **Thank you for the support** * Thanks a lot [JetBrains](https://www.jetbrains.com/?from=springdoc-openapi) for supporting springdoc-openapi project. ![JenBrains logo](https://springdoc.org/img/jetbrains.svg)