title: How to resolve that openapi-generator-maven-plugin uses deprecated class?
body: <p>I try to use openapi-generator-maven-plugin together with Spring Boot 2.4.3 to generate code by the specifications made in an openapi.yaml according to some examples on the internet whereby no example provided the complete dependencies necessary to include.
  The plugin generates a class named <code>OpenAPIDocumentationConfig</code> which internally uses the imported class <code>springfox.documentation.spring.web.paths.RelativePathProvider</code>.</p>
  <p>AFAIK this class is deprecated in favour of class <code>DefaultPathProvider</code> but I can't find a repository with this new class.</p>
  <p>Here's my POM:</p>
  <pre><code>&lt;properties&gt;
      &lt;java.version&gt;11&lt;/java.version&gt;
      &lt;springdoc.version&gt;1.5.5&lt;/springdoc.version&gt;
      &lt;springfox.version&gt;3.0.0&lt;/springfox.version&gt;
  &lt;/properties&gt;
  
  &lt;dependencies&gt;
  
      &lt;!-- SpringBoot --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-configuration-processor&lt;/artifactId&gt;
          &lt;optional&gt;true&lt;/optional&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-validation&lt;/artifactId&gt;
      &lt;/dependency&gt;
  
      &lt;!-- OpenApi / Swagger --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springdoc&lt;/groupId&gt;
          &lt;artifactId&gt;springdoc-openapi-data-rest&lt;/artifactId&gt;
          &lt;version&gt;${springdoc.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springdoc&lt;/groupId&gt;
          &lt;artifactId&gt;springdoc-openapi-ui&lt;/artifactId&gt;
          &lt;version&gt;${springdoc.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;io.springfox&lt;/groupId&gt;
          &lt;artifactId&gt;springfox-oas&lt;/artifactId&gt;
          &lt;version&gt;3.0.0&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;io.swagger.core.v3&lt;/groupId&gt;
          &lt;artifactId&gt;swagger-annotations&lt;/artifactId&gt;
          &lt;version&gt;2.1.7&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.springfox&lt;/groupId&gt;
          &lt;artifactId&gt;springfox-boot-starter&lt;/artifactId&gt;
          &lt;version&gt;${springfox.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.springfox&lt;/groupId&gt;
          &lt;artifactId&gt;springfox-swagger2&lt;/artifactId&gt;
          &lt;version&gt;${springfox.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.openapitools&lt;/groupId&gt;
          &lt;artifactId&gt;jackson-databind-nullable&lt;/artifactId&gt;
          &lt;version&gt;0.2.1&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- Lombok --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.projectlombok&lt;/groupId&gt;
          &lt;artifactId&gt;lombok&lt;/artifactId&gt;
          &lt;version&gt;1.18.16&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.springfox&lt;/groupId&gt;
          &lt;artifactId&gt;springfox-core&lt;/artifactId&gt;
          &lt;version&gt;3.0.0&lt;/version&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  
  &lt;build&gt;
      &lt;finalName&gt;app&lt;/finalName&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
              &lt;configuration&gt;
                  &lt;excludes&gt;
                      &lt;exclude&gt;
                          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                          &lt;artifactId&gt;spring-boot-configuration-processor&lt;/artifactId&gt;
                      &lt;/exclude&gt;
                  &lt;/excludes&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  
          &lt;plugin&gt;
              &lt;groupId&gt;org.openapitools&lt;/groupId&gt;
              &lt;artifactId&gt;openapi-generator-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;5.0.1&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;generate&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;generatorName&gt;spring&lt;/generatorName&gt;
                          &lt;inputSpec&gt;${project.basedir}/src/main/resources/openapi.yaml&lt;/inputSpec&gt;
                          &lt;!--&lt;language&gt;java&lt;/language&gt;--&gt;
                          &lt;configOptions&gt;
                              &lt;sourceFolder&gt;src/java/main&lt;/sourceFolder&gt;
                              &lt;output&gt;${project.build.directory}/generated-sources&lt;/output&gt;
                              &lt;!--&lt;output&gt;${project.basedir}/generated-sources&lt;/output&gt;--&gt;
                          &lt;/configOptions&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  <p><a href="https://i.stack.imgur.com/mVZ4P.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mVZ4P.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/Cr4Lh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Cr4Lh.png" alt="enter image description here" /></a></p>
  <hr />
  <p>Using only the <code>springdoc-openapi-ui</code> dependency results in even more errors:
  <a href="https://i.stack.imgur.com/lXVsf.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lXVsf.jpg" alt="enter image description here" /></a></p>
  <p>With this updated POM:</p>
  <pre><code>&lt;properties&gt;
      &lt;java.version&gt;11&lt;/java.version&gt;
      &lt;springdoc.version&gt;1.5.5&lt;/springdoc.version&gt;
      &lt;springfox.version&gt;3.0.0&lt;/springfox.version&gt;
      &lt;openapi-generator.version&gt;3.0.0&lt;/openapi-generator.version&gt;
  &lt;/properties&gt;
  
  &lt;dependencies&gt;
  
      &lt;!-- SpringBoot --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-configuration-processor&lt;/artifactId&gt;
          &lt;optional&gt;true&lt;/optional&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-validation&lt;/artifactId&gt;
      &lt;/dependency&gt;
  
      &lt;!-- OpenApi / Swagger --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springdoc&lt;/groupId&gt;
          &lt;artifactId&gt;springdoc-openapi-data-rest&lt;/artifactId&gt;
          &lt;version&gt;${springdoc.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springdoc&lt;/groupId&gt;
          &lt;artifactId&gt;springdoc-openapi-ui&lt;/artifactId&gt;
          &lt;version&gt;${springdoc.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
  &lt;!--        &lt;dependency&gt;
          &lt;groupId&gt;io.swagger.core.v3&lt;/groupId&gt;
          &lt;artifactId&gt;swagger-annotations&lt;/artifactId&gt;
          &lt;version&gt;2.1.7&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.springfox&lt;/groupId&gt;
          &lt;artifactId&gt;springfox-boot-starter&lt;/artifactId&gt;
          &lt;version&gt;${springfox.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.springfox&lt;/groupId&gt;
          &lt;artifactId&gt;springfox-swagger2&lt;/artifactId&gt;
          &lt;version&gt;${springfox.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.springfox&lt;/groupId&gt;
          &lt;artifactId&gt;springfox-core&lt;/artifactId&gt;
          &lt;version&gt;3.0.0&lt;/version&gt;
      &lt;/dependency&gt;
  --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.openapitools&lt;/groupId&gt;
          &lt;artifactId&gt;jackson-databind-nullable&lt;/artifactId&gt;
          &lt;version&gt;0.2.1&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- Lombok --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.projectlombok&lt;/groupId&gt;
          &lt;artifactId&gt;lombok&lt;/artifactId&gt;
          &lt;version&gt;1.18.16&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  
  &lt;build&gt;
      &lt;finalName&gt;app&lt;/finalName&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
              &lt;configuration&gt;
                  &lt;excludes&gt;
                      &lt;exclude&gt;
                          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                          &lt;artifactId&gt;spring-boot-configuration-processor&lt;/artifactId&gt;
                      &lt;/exclude&gt;
                  &lt;/excludes&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  
          &lt;plugin&gt;
              &lt;groupId&gt;org.openapitools&lt;/groupId&gt;
              &lt;artifactId&gt;openapi-generator-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;4.3.1&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;generate&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;generatorName&gt;spring&lt;/generatorName&gt;
                          &lt;inputSpec&gt;${project.basedir}/src/main/resources/openapi.yaml&lt;/inputSpec&gt;
                          &lt;!--&lt;language&gt;java&lt;/language&gt;--&gt;
                          &lt;configOptions&gt;
                              &lt;sourceFolder&gt;src/java/main&lt;/sourceFolder&gt;
                              &lt;output&gt;${project.build.directory}/generated-sources&lt;/output&gt;
                              &lt;!--&lt;output&gt;${project.basedir}/generated-sources&lt;/output&gt;--&gt;
                          &lt;/configOptions&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  <p>The openapi.yaml specifying the code to be generated:</p>
  <pre><code>openapi: 3.0.3
  info:
    title: Title
    description: &quot;REST API Dokumentation xxx&quot;
    version: ${artifactId}
    termsOfService: http://swagger.io/terms/
    contact:
      name: API Support
      email: xxx.yyy@zzz.de
    license:
      name: Apache 2.0
      url: http://www.apache.org/licenses/LICENSE-2.0.html
  #externalDocs:
  servers:
    - url: http://{domain}:{port}
      description: The local server
      variables:
        domain:
          default: localhost
          description: api domain
        port:
          enum:
            - '8081'
          default: '8081'
  paths:
    /api/hello:
      get:
        summary: Says 'hello' to the user.
        description: A test endpoint.
        parameters:
          - in: path
            name: name
            required: true
            schema:
              type: string
              description: The person's name to address to.
        responses:
          '200':
            description: Ok
          '500':
            description: Server error
          default:
            description: Unexpected error
            content:
              application/json:
                schema:
                  type: string
  </code></pre>