After upgrading from Springfox 2.6.1 version to 2.7.0, getting the following exception while trying to access swagger-ui.html,
java.lang.NoSuchMethodError: io.swagger.models.Operation.setVendorExtensions(Ljava/util/Map;)V
at springfox.documentation.swagger2.mappers.ServiceModelToSwagger2MapperImpl.mapOperation(ServiceModelToSwagger2MapperImpl.java:230) ~[springfox-swagger2-2.7.0.jar:2.7.0]
at springfox.documentation.swagger2.mappers.ServiceModelToSwagger2Mapper.mapOperations(ServiceModelToSwagger2Mapper.java:173) ~[springfox-swagger2-2.7.0.jar:2.7.0]
at springfox.documentation.swagger2.mappers.ServiceModelToSwagger2Mapper.mapApiListings(ServiceModelToSwagger2Mapper.java:155) ~[springfox-swagger2-2.7.0.jar:2.7.0]
at springfox.documentation.swagger2.mappers.ServiceModelToSwagger2MapperImpl.mapDocumentation(ServiceModelToSwagger2MapperImpl.java:115) ~[springfox-swagger2-2.7.0.jar:2.7.0]
at springfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(Swagger2Controller.java:92) ~[springfox-swagger2-2.7.0.jar:2.7.0]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_92]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_92]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_92]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_92]
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) ~[spring-web-4.3.11.RELEASE.jar:4.3.11.RELEASE]
Springfox 2.7.0Spring Boot 1.5.7.RELEASE (with embedded Tomcat)Jackson 2.9.1Lombok 1.16.16What kind of issue is this?
Here is my project dependency tree,
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ swagger-deepdive ---
[INFO] com.basaki.example:swagger-deepdive:pom:1.0
[INFO] +- org.projectlombok:lombok:jar:1.16.16:provided
[INFO] +- com.fasterxml.jackson.core:jackson-core:jar:2.9.1:compile
[INFO] +- com.fasterxml.jackson.core:jackson-annotations:jar:2.9.1:compile
[INFO] +- com.fasterxml.jackson.datatype:jackson-datatype-joda:jar:2.9.1:compile
[INFO] | +- (com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0:compile - omitted for conflict with 2.9.1)
[INFO] | +- (com.fasterxml.jackson.core:jackson-core:jar:2.9.1:compile - omitted for duplicate)
[INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.9.1:compile
[INFO] | | +- (com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0:compile - omitted for conflict with 2.9.1)
[INFO] | | \- (com.fasterxml.jackson.core:jackson-core:jar:2.9.1:compile - omitted for duplicate)
[INFO] | \- joda-time:joda-time:jar:2.7:compile
[INFO] +- io.springfox:springfox-swagger2:jar:2.7.0:compile
[INFO] | +- io.swagger:swagger-annotations:jar:1.5.13:compile
[INFO] | +- io.swagger:swagger-models:jar:1.5.13:compile
[INFO] | | +- (com.fasterxml.jackson.core:jackson-annotations:jar:2.8.5:compile - omitted for conflict with 2.9.1)
[INFO] | | +- (org.slf4j:slf4j-api:jar:1.7.22:compile - omitted for conflict with 1.7.24)
[INFO] | | \- (io.swagger:swagger-annotations:jar:1.5.13:compile - omitted for duplicate)
[INFO] | +- (io.springfox:springfox-spi:jar:2.7.0:compile - omitted for duplicate)
[INFO] | +- io.springfox:springfox-schema:jar:2.7.0:compile
[INFO] | | +- (io.springfox:springfox-core:jar:2.7.0:compile - omitted for duplicate)
[INFO] | | \- (io.springfox:springfox-spi:jar:2.7.0:compile - omitted for duplicate)
[INFO] | +- io.springfox:springfox-swagger-common:jar:2.7.0:compile
[INFO] | | +- (io.swagger:swagger-annotations:jar:1.5.13:compile - omitted for duplicate)
[INFO] | | +- (io.swagger:swagger-models:jar:1.5.13:compile - omitted for duplicate)
[INFO] | | +- (io.springfox:springfox-spi:jar:2.7.0:compile - omitted for duplicate)
[INFO] | | +- (io.springfox:springfox-schema:jar:2.7.0:compile - omitted for duplicate)
[INFO] | | +- (io.springfox:springfox-spring-web:jar:2.7.0:compile - omitted for duplicate)
[INFO] | | +- (com.google.guava:guava:jar:18.0:compile - omitted for duplicate)
[INFO] | | +- (com.fasterxml:classmate:jar:1.3.3:compile - omitted for duplicate)
[INFO] | | +- (org.slf4j:slf4j-api:jar:1.7.24:compile - omitted for conflict with 1.7.22)
[INFO] | | +- (org.springframework.plugin:spring-plugin-core:jar:1.2.0.RELEASE:compile - omitted for duplicate)
[INFO] | | \- (org.springframework.plugin:spring-plugin-metadata:jar:1.2.0.RELEASE:compile - omitted for duplicate)
[INFO] | +- io.springfox:springfox-spring-web:jar:2.7.0:compile
[INFO] | | +- org.reflections:reflections:jar:0.9.11:compile
[INFO] | | | +- (com.google.guava:guava:jar:20.0:compile - omitted for conflict with 18.0)
[INFO] | | | \- org.javassist:javassist:jar:3.21.0-GA:compile
[INFO] | | +- (com.google.guava:guava:jar:18.0:compile - omitted for duplicate)
[INFO] | | +- (com.fasterxml:classmate:jar:1.3.3:compile - omitted for duplicate)
[INFO] | | +- (org.slf4j:slf4j-api:jar:1.7.24:compile - omitted for conflict with 1.7.22)
[INFO] | | +- (org.springframework.plugin:spring-plugin-core:jar:1.2.0.RELEASE:compile - omitted for duplicate)
[INFO] | | +- (org.springframework.plugin:spring-plugin-metadata:jar:1.2.0.RELEASE:compile - omitted for duplicate)
[INFO] | | \- (io.springfox:springfox-spi:jar:2.7.0:compile - omitted for duplicate)
[INFO] | +- com.google.guava:guava:jar:18.0:compile
[INFO] | +- com.fasterxml:classmate:jar:1.3.3:compile
[INFO] | +- org.slf4j:slf4j-api:jar:1.7.24:compile
[INFO] | +- org.springframework.plugin:spring-plugin-core:jar:1.2.0.RELEASE:compile
[INFO] | | +- org.springframework:spring-beans:jar:4.0.9.RELEASE:compile
[INFO] | | | \- org.springframework:spring-core:jar:4.0.9.RELEASE:compile
[INFO] | | +- org.springframework:spring-context:jar:4.0.9.RELEASE:compile
[INFO] | | | +- (org.springframework:spring-aop:jar:4.0.9.RELEASE:compile - omitted for duplicate)
[INFO] | | | +- (org.springframework:spring-beans:jar:4.0.9.RELEASE:compile - omitted for duplicate)
[INFO] | | | +- (org.springframework:spring-core:jar:4.0.9.RELEASE:compile - omitted for duplicate)
[INFO] | | | \- org.springframework:spring-expression:jar:4.0.9.RELEASE:compile
[INFO] | | | \- (org.springframework:spring-core:jar:4.0.9.RELEASE:compile - omitted for duplicate)
[INFO] | | +- org.springframework:spring-aop:jar:4.0.9.RELEASE:compile
[INFO] | | | +- aopalliance:aopalliance:jar:1.0:compile
[INFO] | | | +- (org.springframework:spring-beans:jar:4.0.9.RELEASE:compile - omitted for duplicate)
[INFO] | | | \- (org.springframework:spring-core:jar:4.0.9.RELEASE:compile - omitted for duplicate)
[INFO] | | \- (org.slf4j:slf4j-api:jar:1.7.10:compile - omitted for conflict with 1.7.24)
[INFO] | +- org.springframework.plugin:spring-plugin-metadata:jar:1.2.0.RELEASE:compile
[INFO] | | +- (org.springframework.plugin:spring-plugin-core:jar:1.2.0.RELEASE:compile - omitted for duplicate)
[INFO] | | \- (org.slf4j:slf4j-api:jar:1.7.10:compile - omitted for conflict with 1.7.24)
[INFO] | \- org.mapstruct:mapstruct:jar:1.1.0.Final:compile
[INFO] +- io.springfox:springfox-spi:jar:2.7.0:compile
[INFO] | \- io.springfox:springfox-core:jar:2.7.0:compile
[INFO] | +- net.bytebuddy:byte-buddy:jar:1.6.14:compile
[INFO] | +- (com.google.guava:guava:jar:18.0:compile - omitted for duplicate)
[INFO] | +- (com.fasterxml:classmate:jar:1.3.3:compile - omitted for duplicate)
[INFO] | +- (org.slf4j:slf4j-api:jar:1.7.24:compile - omitted for duplicate)
[INFO] | +- (org.springframework.plugin:spring-plugin-core:jar:1.2.0.RELEASE:compile - omitted for duplicate)
[INFO] | \- (org.springframework.plugin:spring-plugin-metadata:jar:1.2.0.RELEASE:compile - omitted for duplicate)
[INFO] \- io.springfox:springfox-swagger-ui:jar:2.7.0:compile
[INFO] \- (io.springfox:springfox-spring-web:jar:2.7.0:compile - omitted for duplicate)
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Swagger Deepdive Model 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ swagger-deepdive-model ---
[INFO] com.basaki.example:swagger-deepdive-model:jar:1.0
[INFO] +- org.projectlombok:lombok:jar:1.16.16:provided
[INFO] +- com.fasterxml.jackson.core:jackson-core:jar:2.9.1:compile
[INFO] +- com.fasterxml.jackson.core:jackson-annotations:jar:2.9.1:compile
[INFO] +- com.fasterxml.jackson.datatype:jackson-datatype-joda:jar:2.9.1:compile
[INFO] | +- (com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0:compile - omitted for conflict with 2.9.1)
[INFO] | +- (com.fasterxml.jackson.core:jackson-core:jar:2.9.1:compile - omitted for duplicate)
[INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.9.1:compile
[INFO] | | +- (com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0:compile - omitted for conflict with 2.9.1)
[INFO] | | \- (com.fasterxml.jackson.core:jackson-core:jar:2.9.1:compile - omitted for duplicate)
[INFO] | \- joda-time:joda-time:jar:2.7:compile
[INFO] +- io.springfox:springfox-swagger2:jar:2.7.0:compile
[INFO] | +- io.swagger:swagger-annotations:jar:1.5.13:compile
[INFO] | +- io.swagger:swagger-models:jar:1.5.13:compile
[INFO] | | +- (com.fasterxml.jackson.core:jackson-annotations:jar:2.8.5:compile - omitted for conflict with 2.9.1)
[INFO] | | +- (org.slf4j:slf4j-api:jar:1.7.22:compile - omitted for conflict with 1.7.24)
[INFO] | | \- (io.swagger:swagger-annotations:jar:1.5.13:compile - omitted for duplicate)
[INFO] | +- (io.springfox:springfox-spi:jar:2.7.0:compile - omitted for duplicate)
[INFO] | +- io.springfox:springfox-schema:jar:2.7.0:compile
[INFO] | | +- (io.springfox:springfox-core:jar:2.7.0:compile - omitted for duplicate)
[INFO] | | \- (io.springfox:springfox-spi:jar:2.7.0:compile - omitted for duplicate)
[INFO] | +- io.springfox:springfox-swagger-common:jar:2.7.0:compile
[INFO] | | +- (io.swagger:swagger-annotations:jar:1.5.13:compile - omitted for duplicate)
[INFO] | | +- (io.swagger:swagger-models:jar:1.5.13:compile - omitted for duplicate)
[INFO] | | +- (io.springfox:springfox-spi:jar:2.7.0:compile - omitted for duplicate)
[INFO] | | +- (io.springfox:springfox-schema:jar:2.7.0:compile - omitted for duplicate)
[INFO] | | +- (io.springfox:springfox-spring-web:jar:2.7.0:compile - omitted for duplicate)
[INFO] | | +- (com.google.guava:guava:jar:18.0:compile - omitted for duplicate)
[INFO] | | +- (com.fasterxml:classmate:jar:1.3.3:compile - omitted for duplicate)
[INFO] | | +- (org.slf4j:slf4j-api:jar:1.7.24:compile - omitted for conflict with 1.7.22)
[INFO] | | +- (org.springframework.plugin:spring-plugin-core:jar:1.2.0.RELEASE:compile - omitted for duplicate)
[INFO] | | \- (org.springframework.plugin:spring-plugin-metadata:jar:1.2.0.RELEASE:compile - omitted for duplicate)
[INFO] | +- io.springfox:springfox-spring-web:jar:2.7.0:compile
[INFO] | | +- org.reflections:reflections:jar:0.9.11:compile
[INFO] | | | +- (com.google.guava:guava:jar:20.0:compile - omitted for conflict with 18.0)
[INFO] | | | \- org.javassist:javassist:jar:3.21.0-GA:compile
[INFO] | | +- (com.google.guava:guava:jar:18.0:compile - omitted for duplicate)
[INFO] | | +- (com.fasterxml:classmate:jar:1.3.3:compile - omitted for duplicate)
[INFO] | | +- (org.slf4j:slf4j-api:jar:1.7.24:compile - omitted for conflict with 1.7.22)
[INFO] | | +- (org.springframework.plugin:spring-plugin-core:jar:1.2.0.RELEASE:compile - omitted for duplicate)
[INFO] | | +- (org.springframework.plugin:spring-plugin-metadata:jar:1.2.0.RELEASE:compile - omitted for duplicate)
[INFO] | | \- (io.springfox:springfox-spi:jar:2.7.0:compile - omitted for duplicate)
[INFO] | +- com.google.guava:guava:jar:18.0:compile
[INFO] | +- com.fasterxml:classmate:jar:1.3.3:compile
[INFO] | +- org.slf4j:slf4j-api:jar:1.7.24:compile
[INFO] | +- org.springframework.plugin:spring-plugin-core:jar:1.2.0.RELEASE:compile
[INFO] | | +- org.springframework:spring-beans:jar:4.0.9.RELEASE:compile
[INFO] | | | \- org.springframework:spring-core:jar:4.0.9.RELEASE:compile
[INFO] | | +- org.springframework:spring-context:jar:4.0.9.RELEASE:compile
[INFO] | | | +- (org.springframework:spring-aop:jar:4.0.9.RELEASE:compile - omitted for duplicate)
[INFO] | | | +- (org.springframework:spring-beans:jar:4.0.9.RELEASE:compile - omitted for duplicate)
[INFO] | | | +- (org.springframework:spring-core:jar:4.0.9.RELEASE:compile - omitted for duplicate)
[INFO] | | | \- org.springframework:spring-expression:jar:4.0.9.RELEASE:compile
[INFO] | | | \- (org.springframework:spring-core:jar:4.0.9.RELEASE:compile - omitted for duplicate)
[INFO] | | +- org.springframework:spring-aop:jar:4.0.9.RELEASE:compile
[INFO] | | | +- aopalliance:aopalliance:jar:1.0:compile
[INFO] | | | +- (org.springframework:spring-beans:jar:4.0.9.RELEASE:compile - omitted for duplicate)
[INFO] | | | \- (org.springframework:spring-core:jar:4.0.9.RELEASE:compile - omitted for duplicate)
[INFO] | | \- (org.slf4j:slf4j-api:jar:1.7.10:compile - omitted for conflict with 1.7.24)
[INFO] | +- org.springframework.plugin:spring-plugin-metadata:jar:1.2.0.RELEASE:compile
[INFO] | | +- (org.springframework.plugin:spring-plugin-core:jar:1.2.0.RELEASE:compile - omitted for duplicate)
[INFO] | | \- (org.slf4j:slf4j-api:jar:1.7.10:compile - omitted for conflict with 1.7.24)
[INFO] | \- org.mapstruct:mapstruct:jar:1.1.0.Final:compile
[INFO] +- io.springfox:springfox-spi:jar:2.7.0:compile
[INFO] | \- io.springfox:springfox-core:jar:2.7.0:compile
[INFO] | +- net.bytebuddy:byte-buddy:jar:1.6.14:compile
[INFO] | +- (com.google.guava:guava:jar:18.0:compile - omitted for duplicate)
[INFO] | +- (com.fasterxml:classmate:jar:1.3.3:compile - omitted for duplicate)
[INFO] | +- (org.slf4j:slf4j-api:jar:1.7.24:compile - omitted for duplicate)
[INFO] | +- (org.springframework.plugin:spring-plugin-core:jar:1.2.0.RELEASE:compile - omitted for duplicate)
[INFO] | \- (org.springframework.plugin:spring-plugin-metadata:jar:1.2.0.RELEASE:compile - omitted for duplicate)
[INFO] \- io.springfox:springfox-swagger-ui:jar:2.7.0:compile
[INFO] \- (io.springfox:springfox-spring-web:jar:2.7.0:compile - omitted for duplicate)
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Swagger Deepdive Custom Swagger Plugins 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ swagger-deepdive-swagger ---
[INFO] com.basaki.example:swagger-deepdive-swagger:jar:1.0
[INFO] +- org.springframework:spring-web:jar:4.3.8.RELEASE:compile
[INFO] | +- org.springframework:spring-aop:jar:4.3.8.RELEASE:compile
[INFO] | | +- (org.springframework:spring-beans:jar:4.3.8.RELEASE:compile - omitted for duplicate)
[INFO] | | \- (org.springframework:spring-core:jar:4.3.8.RELEASE:compile - omitted for duplicate)
[INFO] | +- org.springframework:spring-beans:jar:4.3.8.RELEASE:compile
[INFO] | | \- (org.springframework:spring-core:jar:4.3.8.RELEASE:compile - omitted for duplicate)
[INFO] | +- org.springframework:spring-context:jar:4.3.8.RELEASE:compile
[INFO] | | +- (org.springframework:spring-aop:jar:4.3.8.RELEASE:compile - omitted for duplicate)
[INFO] | | +- (org.springframework:spring-beans:jar:4.3.8.RELEASE:compile - omitted for duplicate)
[INFO] | | +- (org.springframework:spring-core:jar:4.3.8.RELEASE:compile - omitted for duplicate)
[INFO] | | \- org.springframework:spring-expression:jar:4.3.8.RELEASE:compile
[INFO] | | \- (org.springframework:spring-core:jar:4.3.8.RELEASE:compile - omitted for duplicate)
[INFO] | \- org.springframework:spring-core:jar:4.3.8.RELEASE:compile
[INFO] | \- commons-logging:commons-logging:jar:1.2:compile
[INFO] +- org.projectlombok:lombok:jar:1.16.16:provided
[INFO] +- com.fasterxml.jackson.core:jackson-core:jar:2.9.1:compile
[INFO] +- com.fasterxml.jackson.core:jackson-annotations:jar:2.9.1:compile
[INFO] +- com.fasterxml.jackson.datatype:jackson-datatype-joda:jar:2.9.1:compile
[INFO] | +- (com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0:compile - omitted for conflict with 2.9.1)
[INFO] | +- (com.fasterxml.jackson.core:jackson-core:jar:2.9.1:compile - omitted for duplicate)
[INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.9.1:compile
[INFO] | | +- (com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0:compile - omitted for conflict with 2.9.1)
[INFO] | | \- (com.fasterxml.jackson.core:jackson-core:jar:2.9.1:compile - omitted for duplicate)
[INFO] | \- joda-time:joda-time:jar:2.7:compile
[INFO] +- io.springfox:springfox-swagger2:jar:2.7.0:compile
[INFO] | +- io.swagger:swagger-annotations:jar:1.5.13:compile
[INFO] | +- io.swagger:swagger-models:jar:1.5.13:compile
[INFO] | | +- (com.fasterxml.jackson.core:jackson-annotations:jar:2.8.5:compile - omitted for conflict with 2.9.1)
[INFO] | | +- (org.slf4j:slf4j-api:jar:1.7.22:compile - omitted for conflict with 1.7.24)
[INFO] | | \- (io.swagger:swagger-annotations:jar:1.5.13:compile - omitted for duplicate)
[INFO] | +- (io.springfox:springfox-spi:jar:2.7.0:compile - omitted for duplicate)
[INFO] | +- io.springfox:springfox-schema:jar:2.7.0:compile
[INFO] | | +- (io.springfox:springfox-core:jar:2.7.0:compile - omitted for duplicate)
[INFO] | | \- (io.springfox:springfox-spi:jar:2.7.0:compile - omitted for duplicate)
[INFO] | +- io.springfox:springfox-swagger-common:jar:2.7.0:compile
[INFO] | | +- (io.swagger:swagger-annotations:jar:1.5.13:compile - omitted for duplicate)
[INFO] | | +- (io.swagger:swagger-models:jar:1.5.13:compile - omitted for duplicate)
[INFO] | | +- (io.springfox:springfox-spi:jar:2.7.0:compile - omitted for duplicate)
[INFO] | | +- (io.springfox:springfox-schema:jar:2.7.0:compile - omitted for duplicate)
[INFO] | | +- (io.springfox:springfox-spring-web:jar:2.7.0:compile - omitted for duplicate)
[INFO] | | +- (com.google.guava:guava:jar:18.0:compile - omitted for duplicate)
[INFO] | | +- (com.fasterxml:classmate:jar:1.3.3:compile - omitted for duplicate)
[INFO] | | +- (org.slf4j:slf4j-api:jar:1.7.24:compile - omitted for conflict with 1.7.22)
[INFO] | | +- (org.springframework.plugin:spring-plugin-core:jar:1.2.0.RELEASE:compile - omitted for duplicate)
[INFO] | | \- (org.springframework.plugin:spring-plugin-metadata:jar:1.2.0.RELEASE:compile - omitted for duplicate)
[INFO] | +- io.springfox:springfox-spring-web:jar:2.7.0:compile
[INFO] | | +- org.reflections:reflections:jar:0.9.11:compile
[INFO] | | | +- (com.google.guava:guava:jar:20.0:compile - omitted for conflict with 18.0)
[INFO] | | | \- org.javassist:javassist:jar:3.21.0-GA:compile
[INFO] | | +- (com.google.guava:guava:jar:18.0:compile - omitted for duplicate)
[INFO] | | +- (com.fasterxml:classmate:jar:1.3.3:compile - omitted for duplicate)
[INFO] | | +- (org.slf4j:slf4j-api:jar:1.7.24:compile - omitted for conflict with 1.7.22)
[INFO] | | +- (org.springframework.plugin:spring-plugin-core:jar:1.2.0.RELEASE:compile - omitted for duplicate)
[INFO] | | +- (org.springframework.plugin:spring-plugin-metadata:jar:1.2.0.RELEASE:compile - omitted for duplicate)
[INFO] | | \- (io.springfox:springfox-spi:jar:2.7.0:compile - omitted for duplicate)
[INFO] | +- com.google.guava:guava:jar:18.0:compile
[INFO] | +- com.fasterxml:classmate:jar:1.3.3:compile
[INFO] | +- org.slf4j:slf4j-api:jar:1.7.24:compile
[INFO] | +- org.springframework.plugin:spring-plugin-core:jar:1.2.0.RELEASE:compile
[INFO] | | +- (org.springframework:spring-beans:jar:4.0.9.RELEASE:compile - omitted for conflict with 4.3.8.RELEASE)
[INFO] | | +- (org.springframework:spring-context:jar:4.0.9.RELEASE:compile - omitted for conflict with 4.3.8.RELEASE)
[INFO] | | +- (org.springframework:spring-aop:jar:4.0.9.RELEASE:compile - omitted for conflict with 4.3.8.RELEASE)
[INFO] | | \- (org.slf4j:slf4j-api:jar:1.7.10:compile - omitted for conflict with 1.7.24)
[INFO] | +- org.springframework.plugin:spring-plugin-metadata:jar:1.2.0.RELEASE:compile
[INFO] | | +- (org.springframework.plugin:spring-plugin-core:jar:1.2.0.RELEASE:compile - omitted for duplicate)
[INFO] | | \- (org.slf4j:slf4j-api:jar:1.7.10:compile - omitted for conflict with 1.7.24)
[INFO] | \- org.mapstruct:mapstruct:jar:1.1.0.Final:compile
[INFO] +- io.springfox:springfox-spi:jar:2.7.0:compile
[INFO] | \- io.springfox:springfox-core:jar:2.7.0:compile
[INFO] | +- net.bytebuddy:byte-buddy:jar:1.6.14:compile
[INFO] | +- (com.google.guava:guava:jar:18.0:compile - omitted for duplicate)
[INFO] | +- (com.fasterxml:classmate:jar:1.3.3:compile - omitted for duplicate)
[INFO] | +- (org.slf4j:slf4j-api:jar:1.7.24:compile - omitted for duplicate)
[INFO] | +- (org.springframework.plugin:spring-plugin-core:jar:1.2.0.RELEASE:compile - omitted for duplicate)
[INFO] | \- (org.springframework.plugin:spring-plugin-metadata:jar:1.2.0.RELEASE:compile - omitted for duplicate)
[INFO] \- io.springfox:springfox-swagger-ui:jar:2.7.0:compile
[INFO] \- (io.springfox:springfox-spring-web:jar:2.7.0:compile - omitted for duplicate)
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Swagger Deepdive Service 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:3.0.0:tree (default-cli) @ swagger-deepdive-service ---
[INFO] Verbose not supported since maven-dependency-plugin 3.0
[INFO] com.basaki.example:swagger-deepdive-service:jar:1.0
[INFO] +- com.basaki.example:swagger-deepdive-model:jar:1.0:compile
[INFO] +- com.basaki.example:swagger-deepdive-swagger:jar:1.0:compile
[INFO] | \- org.springframework:spring-web:jar:4.3.11.RELEASE:compile
[INFO] | +- org.springframework:spring-aop:jar:4.3.11.RELEASE:compile
[INFO] | +- org.springframework:spring-beans:jar:4.3.11.RELEASE:compile
[INFO] | \- org.springframework:spring-context:jar:4.3.11.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:1.5.7.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter:jar:1.5.7.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot:jar:1.5.7.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-autoconfigure:jar:1.5.7.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-logging:jar:1.5.7.RELEASE:compile
[INFO] | | | +- ch.qos.logback:logback-classic:jar:1.1.11:compile
[INFO] | | | | \- ch.qos.logback:logback-core:jar:1.1.11:compile
[INFO] | | | +- org.slf4j:jul-to-slf4j:jar:1.7.25:compile
[INFO] | | | \- org.slf4j:log4j-over-slf4j:jar:1.7.25:compile
[INFO] | | \- org.yaml:snakeyaml:jar:1.17:runtime
[INFO] | +- org.springframework.boot:spring-boot-starter-tomcat:jar:1.5.7.RELEASE:compile
[INFO] | | +- org.apache.tomcat.embed:tomcat-embed-core:jar:8.5.20:compile
[INFO] | | +- org.apache.tomcat.embed:tomcat-embed-el:jar:8.5.20:compile
[INFO] | | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:8.5.20:compile
[INFO] | +- org.hibernate:hibernate-validator:jar:5.3.5.Final:compile
[INFO] | | +- javax.validation:validation-api:jar:1.1.0.Final:compile
[INFO] | | \- org.jboss.logging:jboss-logging:jar:3.3.1.Final:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.8.10:compile
[INFO] | \- org.springframework:spring-webmvc:jar:4.3.11.RELEASE:compile
[INFO] | \- org.springframework:spring-expression:jar:4.3.11.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-actuator:jar:1.5.7.RELEASE:compile
[INFO] | \- org.springframework.boot:spring-boot-actuator:jar:1.5.7.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:1.5.7.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test:jar:1.5.7.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:1.5.7.RELEASE:test
[INFO] | +- com.jayway.jsonpath:json-path:jar:2.2.0:test
[INFO] | | \- net.minidev:json-smart:jar:2.2.1:test
[INFO] | | \- net.minidev:accessors-smart:jar:1.1:test
[INFO] | | \- org.ow2.asm:asm:jar:5.0.3:test
[INFO] | +- org.assertj:assertj-core:jar:2.6.0:test
[INFO] | +- org.mockito:mockito-core:jar:1.10.19:test
[INFO] | | \- org.objenesis:objenesis:jar:2.1:test
[INFO] | +- org.hamcrest:hamcrest-library:jar:1.3:test
[INFO] | +- org.skyscreamer:jsonassert:jar:1.4.0:test
[INFO] | | \- com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:test
[INFO] | +- org.springframework:spring-core:jar:4.3.11.RELEASE:compile
[INFO] | \- org.springframework:spring-test:jar:4.3.11.RELEASE:test
[INFO] +- org.springframework.boot:spring-boot-starter-data-jpa:jar:1.5.7.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-aop:jar:1.5.7.RELEASE:compile
[INFO] | | \- org.aspectj:aspectjweaver:jar:1.8.10:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-jdbc:jar:1.5.7.RELEASE:compile
[INFO] | | +- org.apache.tomcat:tomcat-jdbc:jar:8.5.20:compile
[INFO] | | | \- org.apache.tomcat:tomcat-juli:jar:8.5.20:compile
[INFO] | | \- org.springframework:spring-jdbc:jar:4.3.11.RELEASE:compile
[INFO] | +- org.hibernate:hibernate-core:jar:5.0.12.Final:compile
[INFO] | | +- org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar:1.0.0.Final:compile
[INFO] | | +- org.javassist:javassist:jar:3.21.0-GA:compile
[INFO] | | +- antlr:antlr:jar:2.7.7:compile
[INFO] | | +- org.jboss:jandex:jar:2.0.0.Final:compile
[INFO] | | +- dom4j:dom4j:jar:1.6.1:compile
[INFO] | | \- org.hibernate.common:hibernate-commons-annotations:jar:5.0.1.Final:compile
[INFO] | +- org.hibernate:hibernate-entitymanager:jar:5.0.12.Final:compile
[INFO] | +- javax.transaction:javax.transaction-api:jar:1.2:compile
[INFO] | +- org.springframework.data:spring-data-jpa:jar:1.11.7.RELEASE:compile
[INFO] | | +- org.springframework.data:spring-data-commons:jar:1.13.7.RELEASE:compile
[INFO] | | +- org.springframework:spring-orm:jar:4.3.11.RELEASE:compile
[INFO] | | \- org.springframework:spring-tx:jar:4.3.11.RELEASE:compile
[INFO] | \- org.springframework:spring-aspects:jar:4.3.11.RELEASE:compile
[INFO] +- org.hsqldb:hsqldb:jar:2.3.4:compile
[INFO] +- javax.interceptor:javax.interceptor-api:jar:1.2:compile
[INFO] +- net.sf.dozer:dozer:jar:5.4.0:compile
[INFO] | +- commons-beanutils:commons-beanutils:jar:1.9.3:compile
[INFO] | | \- commons-collections:commons-collections:jar:3.2.2:compile
[INFO] | +- org.apache.commons:commons-lang3:jar:3.1:compile
[INFO] | +- org.slf4j:slf4j-api:jar:1.7.25:compile
[INFO] | \- org.slf4j:jcl-over-slf4j:jar:1.7.25:compile
[INFO] +- junit:junit:jar:4.12:compile
[INFO] +- io.rest-assured:rest-assured:jar:3.0.0:test
[INFO] | +- org.codehaus.groovy:groovy:jar:2.4.12:test
[INFO] | +- org.codehaus.groovy:groovy-xml:jar:2.4.12:test
[INFO] | +- org.apache.httpcomponents:httpclient:jar:4.5.3:test
[INFO] | | +- org.apache.httpcomponents:httpcore:jar:4.4.6:test
[INFO] | | \- commons-codec:commons-codec:jar:1.10:test
[INFO] | +- org.apache.httpcomponents:httpmime:jar:4.5.3:test
[INFO] | +- org.ccil.cowan.tagsoup:tagsoup:jar:1.2.1:test
[INFO] | +- io.rest-assured:json-path:jar:3.0.0:test
[INFO] | | +- org.codehaus.groovy:groovy-json:jar:2.4.12:test
[INFO] | | \- io.rest-assured:rest-assured-common:jar:3.0.0:test
[INFO] | \- io.rest-assured:xml-path:jar:3.0.0:test
[INFO] +- io.rest-assured:spring-mock-mvc:jar:3.0.0:test
[INFO] +- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] +- org.projectlombok:lombok:jar:1.16.16:provided
[INFO] +- com.fasterxml.jackson.core:jackson-core:jar:2.9.1:compile
[INFO] +- com.fasterxml.jackson.core:jackson-annotations:jar:2.9.1:compile
[INFO] +- com.fasterxml.jackson.datatype:jackson-datatype-joda:jar:2.9.1:compile
[INFO] | \- joda-time:joda-time:jar:2.9.9:compile
[INFO] +- io.springfox:springfox-swagger2:jar:2.7.0:compile
[INFO] | +- io.swagger:swagger-annotations:jar:1.5.13:compile
[INFO] | +- io.swagger:swagger-models:jar:1.5.13:compile
[INFO] | +- io.springfox:springfox-schema:jar:2.7.0:compile
[INFO] | +- io.springfox:springfox-swagger-common:jar:2.7.0:compile
[INFO] | +- io.springfox:springfox-spring-web:jar:2.7.0:compile
[INFO] | | \- org.reflections:reflections:jar:0.9.11:compile
[INFO] | +- com.google.guava:guava:jar:18.0:compile
[INFO] | +- com.fasterxml:classmate:jar:1.3.4:compile
[INFO] | +- org.springframework.plugin:spring-plugin-core:jar:1.2.0.RELEASE:compile
[INFO] | +- org.springframework.plugin:spring-plugin-metadata:jar:1.2.0.RELEASE:compile
[INFO] | \- org.mapstruct:mapstruct:jar:1.1.0.Final:compile
[INFO] +- io.springfox:springfox-spi:jar:2.7.0:compile
[INFO] | \- io.springfox:springfox-core:jar:2.7.0:compile
[INFO] | \- net.bytebuddy:byte-buddy:jar:1.6.14:compile
[INFO] \- io.springfox:springfox-swagger-ui:jar:2.7.0:compile
That method is totally there. Not sure what is causing this. Perhaps you have a stale io.swagger lying around?
The same problem has happened to me which I had set two different swagger2 version dependency in pom.xml。
Remove the old version and the problem have resolved .
Had the same issue. Quick fix was in dependencies.gradle added this:
swagger : [
"io.swagger:swagger-core:1.5.21",
"io.swagger:swagger-annotations:1.5.21"
]
This ensured that the proper version was downloaded .. without this the version in .gradle/cache was 1.5.14 and was causing the issue
Most helpful comment
The same problem has happened to me which I had set two different
swagger2version dependency inpom.xml。Remove the old version and the problem have resolved .