#17157·tutorials

Maven springdoc-openapi-starter-common dependency conflict

Author: lavr-devCreated Jul 26, 2024Updated Aug 17, 2024
Labelstriagedon-jira

The versions of the springdoc-openapi-starter-common dependency conflict, so swagger does not work. In springdoc-openapi-starter-webmvc-ui the springdoc-openapi-starter-common dependency has version 2.5.0, but below in the same pom.xml file springdoc-openapi-starter-common has 2.2.0. If I make these versions the same, or completely remove springdoc-openapi-starter-common from this pom.xml (because springdoc-openapi-starter-common is already in springdoc-openapi-starter-webmvc-ui), then swagger will work

https://github.com/eugenp/tutorials/blob/c9a285b203a5c7c8dc317804d4188016d69b11ad/spring-boot-modules/spring-boot-springdoc-2/pom.xml#L48