I am unable to start my application using #SpringBootApplication.
#SpringBootApplication
public class AppInitializer extends SpringBootServletInitializer {
#Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(AppInitializer.class);
}
public static void main(String[] args) {
ConfigurableApplicationContext ctx = new AppInitializer().configure(new SpringApplicationBuilder(AppInitializer.class)).run(args);
System.out.println("count="+ctx.getBeanDefinitionCount());
}
}
pom.xml uses:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jersey</artifactId>
<exclusions>
<exclusion>
<groupId>org.glassfish.jersey.containers</groupId>
<artifactId>jersey-container-servlet-core</artifactId>
</exclusion>
</exclusions>
</dependency>
When i run the app, i get below error:
2015-03-09 09:14:10.372 INFO 10636 --- [ main]
s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with
port(s): 9000 (http) 2015-03-09 09:14:10.636 INFO 10636 --- [
main] o.apache.catalina.core.StandardService : Starting service
Tomcat 2015-03-09 09:14:10.638 INFO 10636 --- [ main]
org.apache.catalina.core.StandardEngine : Starting Servlet Engine:
Apache Tomcat/7.0.57 2015-03-09 09:14:10.940 INFO 10636 ---
[ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] :
Initializing Spring embedded WebApplicationContext 2015-03-09
09:14:10.941 INFO 10636 --- [ost-startStop-1]
o.s.web.context.ContextLoader : Root WebApplicationContext:
initialization completed in 3588 ms 2015-03-09 09:14:11.936 ERROR
10636 --- [cat-startStop-1] org.apache.catalina.core.ContainerBase :
A child container failed during start
java.util.concurrent.ExecutionException:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]] at
java.util.concurrent.FutureTask.report(FutureTask.java:122) at
java.util.concurrent.FutureTask.get(FutureTask.java:188) at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:816)
at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
at java.util.concurrent.FutureTask.run(FutureTask.java:262) at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744) Caused by:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]] at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
... 6 common frames omitted
Caused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.addFilter(Ljava/lang/String;Ljavax/servlet/Filter;)Ljavax/servlet/FilterRegistration$Dynamic;
at
org.springframework.boot.context.embedded.FilterRegistrationBean.onStartup(FilterRegistrationBean.java:250)
at
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.selfInitialize(EmbeddedWebApplicationContext.java:222)
at
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.access$000(EmbeddedWebApplicationContext.java:84)
at
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext$1.onStartup(EmbeddedWebApplicationContext.java:206)
at
org.springframework.boot.context.embedded.tomcat.TomcatStarter.onStartup(TomcatStarter.java:54)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5481)
at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 6 common frames omitted
Dependency Tree:
[INFO] | +- mysql:mysql-connector-java:jar:5.1.34:compile
[INFO] | +- com.zaxxer:HikariCP-java6:jar:2.2.5:compile
[INFO] | | +- org.slf4j:slf4j-api:jar:1.7.8:compile (version managed from 1.7.5)
[INFO] | | \- org.javassist:javassist:jar:3.18.1-GA:compile
[INFO] | +- io.dropwizard.metrics:metrics-core:jar:3.1.0:compile
[INFO] | | \- (org.slf4j:slf4j-api:jar:1.7.8:compile - version managed from 1.7.7; omitted
for duplicate)
[INFO] | +- org.hibernate:hibernate-entitymanager:jar:4.3.7.Final:compile
[INFO] | | +- org.jboss.logging:jboss-logging:jar:3.1.3.GA:compile
[INFO] | | +- org.jboss.logging:jboss-logging-annotations:jar:1.2.0.Beta1:compile
[INFO] | | +- org.hibernate:hibernate-core:jar:4.3.7.Final:compile
[INFO] | | | +- (org.jboss.logging:jboss-logging:jar:3.1.3.GA:compile - omitted for dupli
cate)
[INFO] | | | +- (org.jboss.logging:jboss-logging-annotations:jar:1.2.0.Beta1:compile - om
itted for duplicate)
[INFO] | | | +- (org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec:jar:1.0.
0.Final:compile - omitted for duplicate)
[INFO] | | | +- (dom4j:dom4j:jar:1.6.1:compile - omitted for duplicate)
[INFO] | | | +- (org.hibernate.common:hibernate-commons-annotations:jar:4.0.5.Final:compi
le - omitted for duplicate)
[INFO] | | | +- (org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar:1.0.0.Final:co
mpile - omitted for duplicate)
[INFO] | | | +- (org.javassist:javassist:jar:3.18.1-GA:compile - omitted for duplicate)
[INFO] | | | +- antlr:antlr:jar:2.7.7:compile
[INFO] | | | \- org.jboss:jandex:jar:1.1.0.Final:compile
[INFO] | | +- dom4j:dom4j:jar:1.6.1:compile
[INFO] | | | \- xml-apis:xml-apis:jar:1.0.b2:compile
[INFO] | | +- org.hibernate.common:hibernate-commons-annotations:jar:4.0.5.Final:compile
[INFO] | | | +- (org.jboss.logging:jboss-logging:jar:3.1.3.GA:compile - omitted for dupli
cate)
[INFO] | | | \- (org.jboss.logging:jboss-logging-annotations:jar:1.2.0.Beta1:compile - om
itted for duplicate)
[INFO] | | +- org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar:1.0.0.Final:compil
e
[INFO] | | +- org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec:jar:1.0.0.Fi
nal:compile
[INFO] | | \- (org.javassist:javassist:jar:3.18.1-GA:compile - omitted for duplicate)
[INFO] | +- org.springframework.data:spring-data-jpa:jar:1.7.1.RELEASE:compile
[INFO] | | +- org.springframework.data:spring-data-commons:jar:1.9.1.RELEASE:compile
[INFO] | | | +- (org.springframework:spring-core:jar:4.1.4.RELEASE:compile - version mana
ged from 4.0.7.RELEASE; omitted for duplicate)
[INFO] | | | +- (org.springframework:spring-beans:jar:4.1.4.RELEASE:compile - version man
aged from 4.0.7.RELEASE; omitted for duplicate)
[INFO] | | | +- (org.slf4j:slf4j-api:jar:1.7.8:compile - version managed from 1.7.7; omit
ted for duplicate)
[INFO] | | | \- (org.slf4j:jcl-over-slf4j:jar:1.7.8:runtime - version managed from 1.7.7;
omitted for duplicate)
[INFO] | | +- org.springframework:spring-orm:jar:4.1.4.RELEASE:compile (version managed fr
om 4.0.7.RELEASE)
[INFO] | | | +- (org.springframework:spring-beans:jar:4.1.4.RELEASE:compile - version man
aged from 4.0.7.RELEASE; omitted for duplicate)
[INFO] | | | +- (org.springframework:spring-core:jar:4.1.4.RELEASE:compile - version mana
ged from 4.0.7.RELEASE; omitted for duplicate)
[INFO] | | | +- org.springframework:spring-jdbc:jar:4.1.4.RELEASE:compile
[INFO] | | | | +- (org.springframework:spring-beans:jar:4.1.4.RELEASE:compile - version
managed from 4.0.7.RELEASE; omitted for duplicate)
[INFO] | | | | +- (org.springframework:spring-core:jar:4.1.4.RELEASE:compile - version m
anaged from 4.0.7.RELEASE; omitted for duplicate)
[INFO] | | | | \- (org.springframework:spring-tx:jar:4.1.4.RELEASE:compile - omitted for
duplicate)
[INFO] | | | \- (org.springframework:spring-tx:jar:4.1.4.RELEASE:compile - version manage
d from 4.0.7.RELEASE; omitted for duplicate)
[INFO] | | +- org.springframework:spring-context:jar:4.1.4.RELEASE:compile (version manage
d from 4.0.7.RELEASE)
[INFO] | | | +- (org.springframework:spring-aop:jar:4.1.4.RELEASE:compile - version manag
ed from 4.0.7.RELEASE; omitted for duplicate)
[INFO] | | | +- (org.springframework:spring-beans:jar:4.1.4.RELEASE:compile - version man
aged from 4.0.7.RELEASE; omitted for duplicate)
[INFO] | | | +- (org.springframework:spring-core:jar:4.1.4.RELEASE:compile - version mana
ged from 4.0.7.RELEASE; omitted for duplicate)
[INFO] | | | \- (org.springframework:spring-expression:jar:4.1.4.RELEASE:compile - omitte
d for duplicate)
[INFO] | | +- org.springframework:spring-aop:jar:4.1.4.RELEASE:compile
[INFO] | | | +- aopalliance:aopalliance:jar:1.0:compile
[INFO] | | | +- (org.springframework:spring-beans:jar:4.1.4.RELEASE:compile - version man
aged from 4.0.7.RELEASE; omitted for duplicate)
[INFO] | | | \- (org.springframework:spring-core:jar:4.1.4.RELEASE:compile - version mana
ged from 4.0.7.RELEASE; omitted for duplicate)
[INFO] | | +- org.springframework:spring-tx:jar:4.1.4.RELEASE:compile
[INFO] | | | +- (org.springframework:spring-beans:jar:4.1.4.RELEASE:compile - version man
aged from 4.0.7.RELEASE; omitted for duplicate)
[INFO] | | | \- (org.springframework:spring-core:jar:4.1.4.RELEASE:compile - version mana
ged from 4.0.7.RELEASE; omitted for duplicate)
[INFO] | | +- org.springframework:spring-beans:jar:4.1.4.RELEASE:compile
[INFO] | | | \- (org.springframework:spring-core:jar:4.1.4.RELEASE:compile - version mana
ged from 4.0.7.RELEASE; omitted for duplicate)
[INFO] | | +- (org.springframework:spring-core:jar:4.1.4.RELEASE:compile - version managed
from 4.0.7.RELEASE; omitted for duplicate)
[INFO] | | +- org.aspectj:aspectjrt:jar:1.8.4:compile (version managed from 1.8.2)
[INFO] | | +- (org.slf4j:slf4j-api:jar:1.7.8:compile - version managed from 1.7.7; omitted
for duplicate)
[INFO] | | \- (org.slf4j:jcl-over-slf4j:jar:1.7.8:compile - version managed from 1.7.7; sc
ope updated from runtime; omitted for duplicate)
[INFO] | +- org.codehaus.groovy:groovy-all:jar:2.3.6:compile
[INFO] | \- log4j:log4j:jar:1.2.17:compile
[INFO] +- qcom.cas.backend.myapp:service:jar:1.0:compile
[INFO] | +- (qcom.cas.backend.myapp:persistence:jar:1.0:compile - omitted for duplicate)
[INFO] | +- (org.springframework.data:spring-data-jpa:jar:1.7.1.RELEASE:compile - omitted f
or duplicate)
[INFO] | +- (org.codehaus.groovy:groovy-all:jar:2.3.6:compile - omitted for duplicate)
[INFO] | \- (log4j:log4j:jar:1.2.17:compile - omitted for duplicate)
[INFO] +- org.springframework.boot:spring-boot-starter-jersey:jar:1.2.1.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter:jar:1.2.1.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot:jar:1.2.1.RELEASE:compile
[INFO] | | | +- (org.springframework:spring-core:jar:4.1.4.RELEASE:compile - version mana
ged from 4.0.7.RELEASE; omitted for duplicate)
[INFO] | | | \- (org.springframework:spring-context:jar:4.1.4.RELEASE:compile - version m
anaged from 4.0.7.RELEASE; omitted for duplicate)
[INFO] | | +- org.springframework.boot:spring-boot-autoconfigure:jar:1.2.1.RELEASE:compile
[INFO] | | | \- (org.springframework.boot:spring-boot:jar:1.2.1.RELEASE:compile - omitted
for duplicate)
[INFO] | | +- org.springframework.boot:spring-boot-starter-logging:jar:1.2.1.RELEASE:compi
le
[INFO] | | | +- org.slf4j:jcl-over-slf4j:jar:1.7.8:compile
[INFO] | | | | \- (org.slf4j:slf4j-api:jar:1.7.8:compile - version managed from 1.7.7; o
mitted for duplicate)
[INFO] | | | +- org.slf4j:jul-to-slf4j:jar:1.7.8:compile
[INFO] | | | | \- (org.slf4j:slf4j-api:jar:1.7.8:compile - version managed from 1.7.7; o
mitted for duplicate)
[INFO] | | | +- org.slf4j:log4j-over-slf4j:jar:1.7.8:compile
[INFO] | | | | \- (org.slf4j:slf4j-api:jar:1.7.8:compile - version managed from 1.7.7; o
mitted for duplicate)
[INFO] | | | \- ch.qos.logback:logback-classic:jar:1.1.2:compile
[INFO] | | | +- ch.qos.logback:logback-core:jar:1.1.2:compile
[INFO] | | | \- (org.slf4j:slf4j-api:jar:1.7.8:compile - version managed from 1.7.6; o
mitted for duplicate)
[INFO] | | +- (org.springframework:spring-core:jar:4.1.4.RELEASE:compile - version managed
from 4.0.7.RELEASE; omitted for duplicate)
[INFO] | | \- org.yaml:snakeyaml:jar:1.14:runtime
[INFO] | +- (org.springframework.boot:spring-boot-starter-tomcat:jar:1.2.1.RELEASE:compile
- omitted for duplicate)
[INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.4.4:compile
[INFO] | | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.4.4:compile (version ma
naged from 2.4.0)
[INFO] | | \- com.fasterxml.jackson.core:jackson-core:jar:2.4.4:compile
[INFO] | +- org.hibernate:hibernate-validator:jar:5.1.3.Final:compile
[INFO] | | +- javax.validation:validation-api:jar:1.1.0.Final:compile
[INFO] | | +- (org.jboss.logging:jboss-logging:jar:3.1.3.GA:compile - omitted for duplicat
e)
[INFO] | | \- com.fasterxml:classmate:jar:1.0.0:compile
[INFO] | +- org.springframework:spring-core:jar:4.1.4.RELEASE:compile
[INFO] | +- org.springframework:spring-web:jar:4.1.4.RELEASE:compile
[INFO] | | +- (org.springframework:spring-aop:jar:4.1.4.RELEASE:compile - version managed
from 4.0.7.RELEASE; omitted for duplicate)
[INFO] | | +- (org.springframework:spring-beans:jar:4.1.4.RELEASE:compile - version manage
d from 4.0.7.RELEASE; omitted for duplicate)
[INFO] | | +- (org.springframework:spring-context:jar:4.1.4.RELEASE:compile - version mana
ged from 4.0.7.RELEASE; omitted for duplicate)
[INFO] | | \- (org.springframework:spring-core:jar:4.1.4.RELEASE:compile - version managed
from 4.0.7.RELEASE; omitted for duplicate)
[INFO] | +- org.glassfish.jersey.core:jersey-server:jar:2.14:compile
[INFO] | | +- org.glassfish.jersey.core:jersey-common:jar:2.14:compile
[INFO] | | | +- (javax.ws.rs:javax.ws.rs-api:jar:2.0.1:compile - omitted for duplicate)
[INFO] | | | +- (javax.annotation:javax.annotation-api:jar:1.2:compile - omitted for dupl
icate)
[INFO] | | | +- org.glassfish.jersey.bundles.repackaged:jersey-guava:jar:2.14:compile
[INFO] | | | +- (org.glassfish.hk2:hk2-api:jar:2.4.0-b06:compile - omitted for duplicate)
[INFO] | | | +- (org.glassfish.hk2.external:javax.inject:jar:2.4.0-b06:compile - omitted
for duplicate)
[INFO] | | | +- (org.glassfish.hk2:hk2-locator:jar:2.4.0-b06:compile - omitted for duplic
ate)
[INFO] | | | \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.1:compile
[INFO] | | +- org.glassfish.jersey.core:jersey-client:jar:2.14:compile
[INFO] | | | +- (org.glassfish.jersey.core:jersey-common:jar:2.14:compile - omitted for d
uplicate)
[INFO] | | | +- (javax.ws.rs:javax.ws.rs-api:jar:2.0.1:compile - omitted for duplicate)
[INFO] | | | +- (org.glassfish.hk2:hk2-api:jar:2.4.0-b06:compile - omitted for duplicate)
[INFO] | | | +- (org.glassfish.hk2.external:javax.inject:jar:2.4.0-b06:compile - omitted
for duplicate)
[INFO] | | | \- (org.glassfish.hk2:hk2-locator:jar:2.4.0-b06:compile - omitted for duplic
ate)
[INFO] | | +- javax.ws.rs:javax.ws.rs-api:jar:2.0.1:compile
[INFO] | | +- javax.annotation:javax.annotation-api:jar:1.2:compile
[INFO] | | +- org.glassfish.hk2:hk2-api:jar:2.4.0-b06:compile
[INFO] | | | +- org.glassfish.hk2:hk2-utils:jar:2.4.0-b06:compile
[INFO] | | | \- org.glassfish.hk2.external:aopalliance-repackaged:jar:2.4.0-b06:compile
[INFO] | | +- org.glassfish.hk2.external:javax.inject:jar:2.4.0-b06:compile
[INFO] | | +- org.glassfish.hk2:hk2-locator:jar:2.4.0-b06:compile
[INFO] | | | +- (org.glassfish.hk2.external:javax.inject:jar:2.4.0-b06:compile - omitted
for duplicate)
[INFO] | | | +- (org.glassfish.hk2.external:aopalliance-repackaged:jar:2.4.0-b06:compile
- omitted for duplicate)
[INFO] | | | +- (org.glassfish.hk2:hk2-api:jar:2.4.0-b06:compile - omitted for duplicate)
[INFO] | | | +- (org.glassfish.hk2:hk2-utils:jar:2.4.0-b06:compile - omitted for duplicat
e)
[INFO] | | | \- (org.javassist:javassist:jar:3.18.1-GA:compile - omitted for duplicate)
[INFO] | | \- (javax.validation:validation-api:jar:1.1.0.Final:compile - omitted for dupli
cate)
[INFO] | +- org.glassfish.jersey.containers:jersey-container-servlet-core:jar:2.14:compile
[INFO] | | +- (org.glassfish.hk2.external:javax.inject:jar:2.4.0-b06:compile - omitted for
duplicate)
[INFO] | | +- (org.glassfish.jersey.core:jersey-common:jar:2.14:compile - omitted for dupl
icate)
[INFO] | | +- (org.glassfish.jersey.core:jersey-server:jar:2.14:compile - omitted for dupl
icate)
[INFO] | | \- (javax.ws.rs:javax.ws.rs-api:jar:2.0.1:compile - omitted for duplicate)
[INFO] | +- org.glassfish.jersey.containers:jersey-container-servlet:jar:2.14:compile
[INFO] | | +- (org.glassfish.jersey.containers:jersey-container-servlet-core:jar:2.14:comp
ile - omitted for duplicate)
[INFO] | | +- (org.glassfish.jersey.core:jersey-common:jar:2.14:compile - omitted for dupl
icate)
[INFO] | | +- (org.glassfish.jersey.core:jersey-server:jar:2.14:compile - omitted for dupl
icate)
[INFO] | | \- (javax.ws.rs:javax.ws.rs-api:jar:2.0.1:compile - omitted for duplicate)
[INFO] | +- org.glassfish.jersey.ext:jersey-spring3:jar:2.14:compile
[INFO] | | +- (org.glassfish.jersey.core:jersey-server:jar:2.14:compile - omitted for dupl
icate)
[INFO] | | +- (org.glassfish.jersey.containers:jersey-container-servlet-core:jar:2.14:comp
ile - omitted for duplicate)
[INFO] | | +- org.glassfish.hk2:hk2:jar:2.4.0-b06:compile
[INFO] | | | +- (org.glassfish.hk2:hk2-utils:jar:2.4.0-b06:compile - omitted for duplicat
e)
[INFO] | | | +- (org.glassfish.hk2:hk2-api:jar:2.4.0-b06:compile - omitted for duplicate)
[INFO] | | | +- org.glassfish.hk2:config-types:jar:2.4.0-b06:compile
[INFO] | | | | \- (org.glassfish.hk2:hk2-config:jar:2.4.0-b06:compile - omitted for dupl
icate)
[INFO] | | | +- org.glassfish.hk2:core:jar:2.4.0-b06:compile
[INFO] | | | | +- (org.glassfish.hk2:hk2-locator:jar:2.4.0-b06:compile - omitted for dup
licate)
[INFO] | | | | \- (org.glassfish.hk2:hk2-utils:jar:2.4.0-b06:compile - omitted for dupli
cate)
[INFO] | | | +- org.glassfish.hk2:hk2-config:jar:2.4.0-b06:compile
[INFO] | | | | +- (org.glassfish.hk2:core:jar:2.4.0-b06:compile - omitted for duplicate)
[INFO] | | | | +- org.jvnet:tiger-types:jar:1.4:compile
[INFO] | | | | \- org.glassfish.hk2.external:bean-validator:jar:2.4.0-b06:compile
[INFO] | | | +- (org.glassfish.hk2:hk2-locator:jar:2.4.0-b06:compile - omitted for duplic
ate)
[INFO] | | | +- org.glassfish.hk2:hk2-runlevel:jar:2.4.0-b06:compile
[INFO] | | | | +- (org.glassfish.hk2:hk2-api:jar:2.4.0-b06:compile - omitted for duplica
te)
[INFO] | | | | \- (org.glassfish.hk2:hk2-locator:jar:2.4.0-b06:compile - omitted for dup
licate)
[INFO] | | | \- org.glassfish.hk2:class-model:jar:2.4.0-b06:compile
[INFO] | | | \- org.glassfish.hk2.external:asm-all-repackaged:jar:2.4.0-b06:compile
[INFO] | | +- org.glassfish.hk2:spring-bridge:jar:2.4.0-b06:compile
[INFO] | | | \- (org.springframework:spring-context:jar:4.1.4.RELEASE:compile - version m
anaged from 3.2.3.RELEASE; omitted for duplicate)
[INFO] | | +- (org.springframework:spring-beans:jar:4.1.4.RELEASE:compile - version manage
d from 3.2.3.RELEASE; omitted for duplicate)
[INFO] | | +- (org.springframework:spring-core:jar:4.1.4.RELEASE:compile - version managed
from 3.2.3.RELEASE; omitted for duplicate)
[INFO] | | +- (org.springframework:spring-web:jar:4.1.4.RELEASE:compile - version managed
from 3.2.3.RELEASE; omitted for duplicate)
[INFO] | | \- (javax.ws.rs:javax.ws.rs-api:jar:2.0.1:compile - omitted for duplicate)
[INFO] | \- org.glassfish.jersey.media:jersey-media-json-jackson:jar:2.14:compile
[INFO] | +- (org.glassfish.jersey.core:jersey-common:jar:2.14:compile - omitted for dupl
icate)
[INFO] | +- com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:jar:2.3.2:compile
[INFO] | | +- (com.fasterxml.jackson.core:jackson-core:jar:2.4.4:compile - version mana
ged from 2.3.2; omitted for duplicate)
[INFO] | | \- (com.fasterxml.jackson.core:jackson-databind:jar:2.4.4:compile - version
managed from 2.3.2; omitted for duplicate)
[INFO] | +- com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:jar:2.3.2:compile
[INFO] | | +- (com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:jar:2.3.2:compile - omitt
ed for duplicate)
[INFO] | | +- (com.fasterxml.jackson.core:jackson-core:jar:2.4.4:compile - version mana
ged from 2.3.2; omitted for duplicate)
[INFO] | | +- (com.fasterxml.jackson.core:jackson-databind:jar:2.4.4:compile - version
managed from 2.3.2; omitted for duplicate)
[INFO] | | \- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.3.2:co
mpile
[INFO] | | +- (com.fasterxml.jackson.core:jackson-core:jar:2.4.4:compile - version m
anaged from 2.3.2; omitted for duplicate)
[INFO] | | \- (com.fasterxml.jackson.core:jackson-databind:jar:2.4.4:compile - versi
on managed from 2.3.2; omitted for duplicate)
[INFO] | \- (com.fasterxml.jackson.core:jackson-annotations:jar:2.4.4:compile - version
managed from 2.3.2; omitted for duplicate)
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:1.2.1.RELEASE:compile
[INFO] | +- (org.springframework.boot:spring-boot-starter:jar:1.2.1.RELEASE:compile - omitt
ed for duplicate)
[INFO] | +- (org.springframework.boot:spring-boot-starter-tomcat:jar:1.2.1.RELEASE:compile
- omitted for duplicate)
[INFO] | +- (com.fasterxml.jackson.core:jackson-databind:jar:2.4.4:compile - version manage
d from 2.3.2; omitted for duplicate)
[INFO] | +- (org.hibernate:hibernate-validator:jar:5.1.3.Final:compile - omitted for duplic
ate)
[INFO] | +- (org.springframework:spring-core:jar:4.1.4.RELEASE:compile - version managed fr
om 3.2.3.RELEASE; omitted for duplicate)
[INFO] | +- (org.springframework:spring-web:jar:4.1.4.RELEASE:compile - version managed fro
m 3.2.3.RELEASE; omitted for duplicate)
[INFO] | \- org.springframework:spring-webmvc:jar:4.1.4.RELEASE:compile
[INFO] | +- (org.springframework:spring-beans:jar:4.1.4.RELEASE:compile - version manage
d from 3.2.3.RELEASE; omitted for duplicate)
[INFO] | +- (org.springframework:spring-context:jar:4.1.4.RELEASE:compile - version mana
ged from 3.2.3.RELEASE; omitted for duplicate)
[INFO] | +- (org.springframework:spring-core:jar:4.1.4.RELEASE:compile - version managed
from 3.2.3.RELEASE; omitted for duplicate)
[INFO] | +- org.springframework:spring-expression:jar:4.1.4.RELEASE:compile
[INFO] | | \- (org.springframework:spring-core:jar:4.1.4.RELEASE:compile - version mana
ged from 3.2.3.RELEASE; omitted for duplicate)
[INFO] | \- (org.springframework:spring-web:jar:4.1.4.RELEASE:compile - version managed
from 3.2.3.RELEASE; omitted for duplicate)
[INFO] +- org.springframework.boot:spring-boot-starter-tomcat:jar:1.2.1.RELEASE:provided (sc
ope not updated to compile)
[INFO] | +- org.apache.tomcat.embed:tomcat-embed-core:jar:7.0.57:provided (version managed
from 8.0.15)
[INFO] | +- org.apache.tomcat.embed:tomcat-embed-el:jar:7.0.57:provided (version managed fr
om 8.0.15)
[INFO] | +- org.apache.tomcat.embed:tomcat-embed-logging-juli:jar:7.0.57:provided (version
managed from 8.0.15)
[INFO] | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:7.0.57:provided (version man
aged from 8.0.15)
[INFO] | \- (org.apache.tomcat.embed:tomcat-embed-core:jar:7.0.57:provided - version man
aged from 8.0.15; omitted for duplicate)
Found the problem: The dependency jersey-container-servlet-core is only suitable for servlet containers with less than Servlet 3.0 specification. Since you use Tomcat 7, which implements Servlet 3.0, you have to use jersey-container-servlet. See the Jersey documentation here: https://jersey.java.net/documentation/latest/modules-and-dependencies.html#servlet-app-general
If you run the application as standalone app (i.e. not deploy it into Tomcat), you have to make sure, that the dependency spring-boot-starter-tomcat is in scope "compile". Currently the dependency has the scope "provided", which means, the dependency is not on the classpath when running the application.
If you want to run your application both in Tomcat and as standalone app, you have to use Maven profiles and build two WARs, one with spring-boot-starter-tomcat as provided, and one with spring-boot-starter-tomcat as compile.
Related
I am using Azure cosmos Java SDK version 4.10.0 in spring boot application to connect to Cosmos DB, but it throws "
"java.lang.NoSuchMethodError: reactor.util.retry.Retry.withThrowable(Ljava/util/function/Function;)Lreactor/util/retry/Retry;" error.
Code to connect
CosmosClient cosmosClient = new CosmosClientBuilder()
.endpoint(<endPoint>)
.key(<Key>)
.consistencyLevel(ConsistencyLevel.SESSION)
.connectionSharingAcrossClientsEnabled(true)
.contentResponseOnWriteEnabled(true)
.userAgentSuffix("my-application1-client")
.preferredRegions(Collections.singletonList("South Central US"))
.buildClient();
cosmosClient.getDatabase(<dbName>).read();
While running it throws the following error:
java.lang.NoSuchMethodError: reactor.util.retry.Retry.withThrowable(Ljava/util/function/Function;)Lreactor/util/retry/Retry;
at com.azure.cosmos.implementation.BackoffRetryUtility.executeRetry(BackoffRetryUtility.java:41) ~[azure-cosmos-4.10.0.jar:na]
at com.azure.cosmos.implementation.RxGatewayStoreModel.invokeAsync(RxGatewayStoreModel.java:380) ~[azure-cosmos-4.10.0.jar:na]
at com.azure.cosmos.implementation.RxGatewayStoreModel.processMessage(RxGatewayStoreModel.java:387) ~[azure-cosmos-4.10.0.jar:na]
at com.azure.cosmos.implementation.RxDocumentClientImpl.lambda$getDatabaseAccountFromEndpoint$137(RxDocumentClientImpl.java:3549) ~[azure-cosmos-4.10.0.jar:na]
at reactor.core.publisher.FluxFlatMap.trySubscribeScalarMap(FluxFlatMap.java:151) ~[reactor-core-3.3.4.RELEASE.jar:3.3.4.RELEASE]
at reactor.core.publisher.MonoFlatMap.subscribeOrReturn(MonoFlatMap.java:53) ~[reactor-core-3.3.4.RELEASE.jar:3.3.4.RELEASE]
at reactor.core.publisher.FluxFromMonoOperator.subscribe(FluxFromMonoOperator.java:66) ~[reactor-core-3.3.4.RELEASE.jar:3.3.4.RELEASE]
at reactor.core.publisher.FluxDefer.subscribe(FluxDefer.java:54) ~[reactor-core-3.3.4.RELEASE.jar:3.3.4.RELEASE]
at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:55) ~[reactor-core-3.3.4.RELEASE.jar:3.3.4.RELEASE]
at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:150) ~[reactor-core-3.3.4.RELEASE.jar:3.3.4.RELEASE]
at reactor.core.publisher.MonoDelay$MonoDelayRunnable.run(MonoDelay.java:117) ~[reactor-core-3.3.4.RELEASE.jar:3.3.4.RELEASE]
at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:68) [reactor-core-3.3.4.RELEASE.jar:3.3.4.RELEASE]
at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:28) [reactor-core-3.3.4.RELEASE.jar:3.3.4.RELEASE]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_232]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) ~[na:1.8.0_232]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) ~[na:1.8.0_232]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_232]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_232]
at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_232]
Maven Dependency:
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-cosmos</artifactId>
<version>4.10.0</version>
</dependency>
Further analysis found that it needs an "io.projectreactor:reactor-core:jar" version of 3.3.11.RELEASE but maven is resolving it to use "io.projectreactor:reactor-core:jar:3.3.4.RELEASE"
io.projectreactor:reactor-core:jar:3.3.4.RELEASE:compile (version managed from 3.3.11.RELEASE)
Dependency Tree:
[INFO] com.example.sdktest:cosmos:jar:0.0.1-SNAPSHOT
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:2.2.6.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter:jar:2.2.6.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot:jar:2.2.6.RELEASE:compile
[INFO] | | | +- (org.springframework:spring-core:jar:5.2.5.RELEASE:compile - omitted for duplicate)
[INFO] | | | \- (org.springframework:spring-context:jar:5.2.5.RELEASE:compile - omitted for duplicate)
[INFO] | | +- org.springframework.boot:spring-boot-autoconfigure:jar:2.2.6.RELEASE:compile
[INFO] | | | \- (org.springframework.boot:spring-boot:jar:2.2.6.RELEASE:compile - omitted for duplicate)
[INFO] | | +- org.springframework.boot:spring-boot-starter-logging:jar:2.2.6.RELEASE:compile
[INFO] | | | +- ch.qos.logback:logback-classic:jar:1.2.3:compile
[INFO] | | | | +- ch.qos.logback:logback-core:jar:1.2.3:compile
[INFO] | | | | \- (org.slf4j:slf4j-api:jar:1.7.30:compile - version managed from 1.7.25; omitted for duplicate)
[INFO] | | | +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.12.1:compile
[INFO] | | | | +- (org.slf4j:slf4j-api:jar:1.7.30:compile - version managed from 1.7.25; omitted for duplicate)
[INFO] | | | | \- org.apache.logging.log4j:log4j-api:jar:2.12.1:compile
[INFO] | | | \- org.slf4j:jul-to-slf4j:jar:1.7.30:compile
[INFO] | | | \- (org.slf4j:slf4j-api:jar:1.7.30:compile - version managed from 1.7.25; omitted for duplicate)
[INFO] | | +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile
[INFO] | | +- org.springframework:spring-core:jar:5.2.5.RELEASE:compile
[INFO] | | | \- org.springframework:spring-jcl:jar:5.2.5.RELEASE:compile
[INFO] | | \- org.yaml:snakeyaml:jar:1.25:runtime
[INFO] | +- org.springframework.boot:spring-boot-starter-json:jar:2.2.6.RELEASE:compile
[INFO] | | +- (org.springframework.boot:spring-boot-starter:jar:2.2.6.RELEASE:compile - omitted for duplicate)
[INFO] | | +- (org.springframework:spring-web:jar:5.2.5.RELEASE:compile - omitted for duplicate)
[INFO] | | +- com.fasterxml.jackson.core:jackson-databind:jar:2.10.3:compile
[INFO] | | | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.10.3:compile
[INFO] | | | \- (com.fasterxml.jackson.core:jackson-core:jar:2.10.3:compile - omitted for duplicate)
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.10.3:compile
[INFO] | | | +- (com.fasterxml.jackson.core:jackson-core:jar:2.10.3:compile - omitted for duplicate)
[INFO] | | | \- (com.fasterxml.jackson.core:jackson-databind:jar:2.10.3:compile - omitted for duplicate)
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.10.3:compile
[INFO] | | | +- (com.fasterxml.jackson.core:jackson-annotations:jar:2.10.3:compile - omitted for duplicate)
[INFO] | | | +- (com.fasterxml.jackson.core:jackson-core:jar:2.10.3:compile - omitted for duplicate)
[INFO] | | | \- (com.fasterxml.jackson.core:jackson-databind:jar:2.10.3:compile - omitted for duplicate)
[INFO] | | \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.10.3:compile
[INFO] | | +- (com.fasterxml.jackson.core:jackson-core:jar:2.10.3:compile - omitted for duplicate)
[INFO] | | \- (com.fasterxml.jackson.core:jackson-databind:jar:2.10.3:compile - omitted for duplicate)
[INFO] | +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.2.6.RELEASE:compile
[INFO] | | +- (jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile - omitted for duplicate)
[INFO] | | +- org.apache.tomcat.embed:tomcat-embed-core:jar:9.0.33:compile
[INFO] | | +- org.apache.tomcat.embed:tomcat-embed-el:jar:9.0.33:compile
[INFO] | | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:9.0.33:compile
[INFO] | | \- (org.apache.tomcat.embed:tomcat-embed-core:jar:9.0.33:compile - omitted for duplicate)
[INFO] | +- org.springframework.boot:spring-boot-starter-validation:jar:2.2.6.RELEASE:compile
[INFO] | | +- (org.springframework.boot:spring-boot-starter:jar:2.2.6.RELEASE:compile - omitted for duplicate)
[INFO] | | +- jakarta.validation:jakarta.validation-api:jar:2.0.2:compile
[INFO] | | \- org.hibernate.validator:hibernate-validator:jar:6.0.18.Final:compile
[INFO] | | +- org.jboss.logging:jboss-logging:jar:3.4.1.Final:compile (version managed from 3.3.2.Final)
[INFO] | | \- com.fasterxml:classmate:jar:1.5.1:compile (version managed from 1.3.4)
[INFO] | +- org.springframework:spring-web:jar:5.2.5.RELEASE:compile
[INFO] | | +- org.springframework:spring-beans:jar:5.2.5.RELEASE:compile
[INFO] | | | \- (org.springframework:spring-core:jar:5.2.5.RELEASE:compile - omitted for duplicate)
[INFO] | | \- (org.springframework:spring-core:jar:5.2.5.RELEASE:compile - omitted for duplicate)
[INFO] | \- org.springframework:spring-webmvc:jar:5.2.5.RELEASE:compile
[INFO] | +- org.springframework:spring-aop:jar:5.2.5.RELEASE:compile
[INFO] | | +- (org.springframework:spring-beans:jar:5.2.5.RELEASE:compile - omitted for duplicate)
[INFO] | | \- (org.springframework:spring-core:jar:5.2.5.RELEASE:compile - omitted for duplicate)
[INFO] | +- (org.springframework:spring-beans:jar:5.2.5.RELEASE:compile - omitted for duplicate)
[INFO] | +- org.springframework:spring-context:jar:5.2.5.RELEASE:compile
[INFO] | | +- (org.springframework:spring-aop:jar:5.2.5.RELEASE:compile - omitted for duplicate)
[INFO] | | +- (org.springframework:spring-beans:jar:5.2.5.RELEASE:compile - omitted for duplicate)
[INFO] | | +- (org.springframework:spring-core:jar:5.2.5.RELEASE:compile - omitted for duplicate)
[INFO] | | \- (org.springframework:spring-expression:jar:5.2.5.RELEASE:compile - omitted for duplicate)
[INFO] | +- (org.springframework:spring-core:jar:5.2.5.RELEASE:compile - omitted for duplicate)
[INFO] | +- org.springframework:spring-expression:jar:5.2.5.RELEASE:compile
[INFO] | | \- (org.springframework:spring-core:jar:5.2.5.RELEASE:compile - omitted for duplicate)
[INFO] | \- (org.springframework:spring-web:jar:5.2.5.RELEASE:compile - omitted for duplicate)
[INFO] +- com.azure:azure-cosmos:jar:4.10.0:compile
[INFO] | +- com.azure:azure-core:jar:1.11.0:compile
[INFO] | | +- (com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.10.3:compile - version managed from 2.11.3; omitted for duplicate)
[INFO] | | +- com.fasterxml.jackson.dataformat:jackson-dataformat-xml:jar:2.10.3:compile (version managed from 2.11.3)
[INFO] | | | +- (com.fasterxml.jackson.core:jackson-core:jar:2.10.3:compile - omitted for duplicate)
[INFO] | | | +- (com.fasterxml.jackson.core:jackson-annotations:jar:2.10.3:compile - omitted for duplicate)
[INFO] | | | +- (com.fasterxml.jackson.core:jackson-databind:jar:2.10.3:compile - omitted for duplicate)
[INFO] | | | +- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.10.3:compile
[INFO] | | | | +- (com.fasterxml.jackson.core:jackson-annotations:jar:2.10.3:compile - omitted for duplicate)
[INFO] | | | | +- (com.fasterxml.jackson.core:jackson-core:jar:2.10.3:compile - omitted for duplicate)
[INFO] | | | | +- (com.fasterxml.jackson.core:jackson-databind:jar:2.10.3:compile - omitted for duplicate)
[INFO] | | | | +- jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.3:compile (version managed from 2.3.2)
[INFO] | | | | | \- (jakarta.activation:jakarta.activation-api:jar:1.2.2:compile - version managed from 1.2.1; omitted for duplicate)
[INFO] | | | | \- jakarta.activation:jakarta.activation-api:jar:1.2.2:compile
[INFO] | | | +- org.codehaus.woodstox:stax2-api:jar:4.2:compile
[INFO] | | | \- com.fasterxml.woodstox:woodstox-core:jar:6.1.1:compile
[INFO] | | | \- (org.codehaus.woodstox:stax2-api:jar:4.2:compile - omitted for duplicate)
[INFO] | | +- (org.slf4j:slf4j-api:jar:1.7.30:compile - version managed from 1.7.25; omitted for duplicate)
[INFO] | | +- io.projectreactor:reactor-core:jar:3.3.4.RELEASE:compile (version managed from 3.3.11.RELEASE)
[INFO] | | | \- org.reactivestreams:reactive-streams:jar:1.0.3:compile
[INFO] | | \- io.netty:netty-tcnative-boringssl-static:jar:2.0.30.Final:compile (version managed from 2.0.34.Final)
[INFO] | +- com.azure:azure-core-http-netty:jar:1.7.0:compile
[INFO] | | +- io.netty:netty-handler:jar:4.1.48.Final:compile (version managed from 4.1.53.Final)
[INFO] | | | +- io.netty:netty-common:jar:4.1.48.Final:compile
[INFO] | | | +- io.netty:netty-resolver:jar:4.1.48.Final:compile
[INFO] | | | | \- (io.netty:netty-common:jar:4.1.48.Final:compile - omitted for duplicate)
[INFO] | | | +- (io.netty:netty-buffer:jar:4.1.48.Final:compile - version managed from 4.1.53.Final; omitted for duplicate)
[INFO] | | | +- io.netty:netty-transport:jar:4.1.48.Final:compile
[INFO] | | | | +- (io.netty:netty-common:jar:4.1.48.Final:compile - omitted for duplicate)
[INFO] | | | | +- (io.netty:netty-buffer:jar:4.1.48.Final:compile - omitted for duplicate)
[INFO] | | | | \- (io.netty:netty-resolver:jar:4.1.48.Final:compile - omitted for duplicate)
[INFO] | | | \- io.netty:netty-codec:jar:4.1.48.Final:compile
[INFO] | | | +- (io.netty:netty-common:jar:4.1.48.Final:compile - omitted for duplicate)
[INFO] | | | +- (io.netty:netty-buffer:jar:4.1.48.Final:compile - omitted for duplicate)
[INFO] | | | \- (io.netty:netty-transport:jar:4.1.48.Final:compile - omitted for duplicate)
[INFO] | | +- io.netty:netty-handler-proxy:jar:4.1.48.Final:compile (version managed from 4.1.53.Final)
[INFO] | | | +- (io.netty:netty-common:jar:4.1.48.Final:compile - omitted for duplicate)
[INFO] | | | +- (io.netty:netty-buffer:jar:4.1.48.Final:compile - omitted for duplicate)
[INFO] | | | +- (io.netty:netty-transport:jar:4.1.48.Final:compile - omitted for duplicate)
[INFO] | | | +- (io.netty:netty-codec:jar:4.1.48.Final:compile - omitted for duplicate)
[INFO] | | | +- io.netty:netty-codec-socks:jar:4.1.48.Final:compile
[INFO] | | | | +- (io.netty:netty-common:jar:4.1.48.Final:compile - omitted for duplicate)
[INFO] | | | | +- (io.netty:netty-buffer:jar:4.1.48.Final:compile - omitted for duplicate)
[INFO] | | | | +- (io.netty:netty-transport:jar:4.1.48.Final:compile - omitted for duplicate)
[INFO] | | | | \- (io.netty:netty-codec:jar:4.1.48.Final:compile - omitted for duplicate)
[INFO] | | | \- (io.netty:netty-codec-http:jar:4.1.48.Final:compile - version managed from 4.1.53.Final; omitted for duplicate)
[INFO] | | +- io.netty:netty-buffer:jar:4.1.48.Final:compile
[INFO] | | | \- (io.netty:netty-common:jar:4.1.48.Final:compile - omitted for duplicate)
[INFO] | | +- io.netty:netty-codec-http:jar:4.1.48.Final:compile
[INFO] | | | +- (io.netty:netty-common:jar:4.1.48.Final:compile - omitted for duplicate)
[INFO] | | | +- (io.netty:netty-buffer:jar:4.1.48.Final:compile - version managed from 4.1.53.Final; omitted for duplicate)
[INFO] | | | +- (io.netty:netty-transport:jar:4.1.48.Final:compile - omitted for duplicate)
[INFO] | | | +- (io.netty:netty-codec:jar:4.1.48.Final:compile - omitted for duplicate)
[INFO] | | | \- (io.netty:netty-handler:jar:4.1.48.Final:compile - version managed from 4.1.53.Final; omitted for duplicate)
[INFO] | | +- io.netty:netty-codec-http2:jar:4.1.48.Final:compile (version managed from 4.1.53.Final)
[INFO] | | | +- (io.netty:netty-common:jar:4.1.48.Final:compile - omitted for duplicate)
[INFO] | | | +- (io.netty:netty-buffer:jar:4.1.48.Final:compile - version managed from 4.1.53.Final; omitted for duplicate)
[INFO] | | | +- (io.netty:netty-transport:jar:4.1.48.Final:compile - omitted for duplicate)
[INFO] | | | +- (io.netty:netty-codec:jar:4.1.48.Final:compile - omitted for duplicate)
[INFO] | | | +- (io.netty:netty-handler:jar:4.1.48.Final:compile - version managed from 4.1.53.Final; omitted for duplicate)
[INFO] | | | \- (io.netty:netty-codec-http:jar:4.1.48.Final:compile - version managed from 4.1.53.Final; omitted for duplicate)
[INFO] | | +- io.netty:netty-transport-native-unix-common:jar:4.1.48.Final:compile (version managed from 4.1.53.Final)
[INFO] | | | +- (io.netty:netty-common:jar:4.1.48.Final:compile - omitted for duplicate)
[INFO] | | | +- (io.netty:netty-buffer:jar:4.1.48.Final:compile - version managed from 4.1.53.Final; omitted for duplicate)
[INFO] | | | \- (io.netty:netty-transport:jar:4.1.48.Final:compile - omitted for duplicate)
[INFO] | | +- io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.48.Final:compile (version managed from 4.1.53.Final)
[INFO] | | | +- (io.netty:netty-common:jar:4.1.48.Final:compile - omitted for duplicate)
[INFO] | | | +- (io.netty:netty-buffer:jar:4.1.48.Final:compile - version managed from 4.1.53.Final; omitted for duplicate)
[INFO] | | | +- (io.netty:netty-transport:jar:4.1.48.Final:compile - omitted for duplicate)
[INFO] | | | \- (io.netty:netty-transport-native-unix-common:jar:4.1.48.Final:compile - version managed from 4.1.53.Final; omitted for duplicate)
[INFO] | | +- io.netty:netty-transport-native-kqueue:jar:osx-x86_64:4.1.48.Final:compile (version managed from 4.1.53.Final)
[INFO] | | | +- (io.netty:netty-common:jar:4.1.48.Final:compile - omitted for duplicate)
[INFO] | | | +- (io.netty:netty-buffer:jar:4.1.48.Final:compile - version managed from 4.1.53.Final; omitted for duplicate)
[INFO] | | | +- (io.netty:netty-transport:jar:4.1.48.Final:compile - omitted for duplicate)
[INFO] | | | \- (io.netty:netty-transport-native-unix-common:jar:4.1.48.Final:compile - version managed from 4.1.53.Final; omitted for duplicate)
[INFO] | | \- io.projectreactor.netty:reactor-netty:jar:0.9.6.RELEASE:compile (version managed from 0.9.13.RELEASE)
[INFO] | | +- (io.netty:netty-codec-http:jar:4.1.48.Final:compile - version managed from 4.1.53.Final; omitted for duplicate)
[INFO] | | +- (io.netty:netty-codec-http2:jar:4.1.48.Final:compile - version managed from 4.1.53.Final; omitted for duplicate)
[INFO] | | +- (io.netty:netty-handler:jar:4.1.48.Final:compile - version managed from 4.1.53.Final; omitted for duplicate)
[INFO] | | +- (io.netty:netty-handler-proxy:jar:4.1.48.Final:compile - version managed from 4.1.53.Final; omitted for duplicate)
[INFO] | | +- (io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.48.Final:compile - version managed from 4.1.53.Final; omitted for duplicate)
[INFO] | | \- (io.projectreactor:reactor-core:jar:3.3.4.RELEASE:compile - version managed from 3.3.11.RELEASE; omitted for duplicate)
[INFO] | +- com.fasterxml.jackson.module:jackson-module-afterburner:jar:2.10.3:compile (version managed from 2.11.2)
[INFO] | | +- com.fasterxml.jackson.core:jackson-core:jar:2.10.3:compile
[INFO] | | \- (com.fasterxml.jackson.core:jackson-databind:jar:2.10.3:compile - omitted for duplicate)
[INFO] | +- org.slf4j:slf4j-api:jar:1.7.30:compile
[INFO] | +- org.hdrhistogram:HdrHistogram:jar:2.1.12:compile
[INFO] | +- io.dropwizard.metrics:metrics-core:jar:4.1.5:compile (version managed from 4.1.0)
[INFO] | | \- (org.slf4j:slf4j-api:jar:1.7.30:compile - version managed from 1.7.25; omitted for duplicate)
[INFO] | \- io.micrometer:micrometer-core:jar:1.3.6:compile (version managed from 1.5.6)
[INFO] | +- (org.hdrhistogram:HdrHistogram:jar:2.1.11:compile - omitted for conflict with 2.1.12)
[INFO] | \- org.latencyutils:LatencyUtils:jar:2.0.3:compile
[INFO] \- org.springframework.boot:spring-boot-starter-test:jar:2.2.6.RELEASE:test
[INFO] +- (org.springframework.boot:spring-boot-starter:jar:2.2.6.RELEASE:test - omitted for duplicate)
[INFO] +- org.springframework.boot:spring-boot-test:jar:2.2.6.RELEASE:test
[INFO] | \- (org.springframework.boot:spring-boot:jar:2.2.6.RELEASE:test - omitted for duplicate)
[INFO] +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.2.6.RELEASE:test
[INFO] | +- (org.springframework.boot:spring-boot-test:jar:2.2.6.RELEASE:test - omitted for duplicate)
[INFO] | \- (org.springframework.boot:spring-boot-autoconfigure:jar:2.2.6.RELEASE:test - omitted for duplicate)
[INFO] +- com.jayway.jsonpath:json-path:jar:2.4.0:test
[INFO] | +- net.minidev:json-smart:jar:2.3:test
[INFO] | | \- net.minidev:accessors-smart:jar:1.2:test
[INFO] | | \- org.ow2.asm:asm:jar:5.0.4:test
[INFO] | \- (org.slf4j:slf4j-api:jar:1.7.30:test - version managed from 1.7.25; omitted for duplicate)
[INFO] +- (jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.3:compile - version managed from 2.3.2; scope updated from test; omitted for duplicate)
[INFO] +- org.junit.jupiter:junit-jupiter:jar:5.5.2:test
[INFO] | +- org.junit.jupiter:junit-jupiter-api:jar:5.5.2:test
[INFO] | | +- (org.apiguardian:apiguardian-api:jar:1.1.0:test - omitted for duplicate)
[INFO] | | +- org.opentest4j:opentest4j:jar:1.2.0:test
[INFO] | | \- org.junit.platform:junit-platform-commons:jar:1.5.2:test
[INFO] | | \- (org.apiguardian:apiguardian-api:jar:1.1.0:test - omitted for duplicate)
[INFO] | +- org.junit.jupiter:junit-jupiter-params:jar:5.5.2:test
[INFO] | | +- (org.apiguardian:apiguardian-api:jar:1.1.0:test - omitted for duplicate)
[INFO] | | \- (org.junit.jupiter:junit-jupiter-api:jar:5.5.2:test - omitted for duplicate)
[INFO] | \- org.junit.jupiter:junit-jupiter-engine:jar:5.5.2:test
[INFO] | +- (org.apiguardian:apiguardian-api:jar:1.1.0:test - omitted for duplicate)
[INFO] | +- (org.junit.platform:junit-platform-engine:jar:1.5.2:test - omitted for duplicate)
[INFO] | \- (org.junit.jupiter:junit-jupiter-api:jar:5.5.2:test - omitted for duplicate)
[INFO] +- org.junit.vintage:junit-vintage-engine:jar:5.5.2:test
[INFO] | +- org.apiguardian:apiguardian-api:jar:1.1.0:test
[INFO] | +- org.junit.platform:junit-platform-engine:jar:1.5.2:test
[INFO] | | +- (org.apiguardian:apiguardian-api:jar:1.1.0:test - omitted for duplicate)
[INFO] | | +- (org.opentest4j:opentest4j:jar:1.2.0:test - omitted for duplicate)
[INFO] | | \- (org.junit.platform:junit-platform-commons:jar:1.5.2:test - omitted for duplicate)
[INFO] | \- junit:junit:jar:4.12:test
[INFO] +- org.mockito:mockito-junit-jupiter:jar:3.1.0:test
[INFO] | +- (org.mockito:mockito-core:jar:3.1.0:test - omitted for duplicate)
[INFO] | \- (org.junit.jupiter:junit-jupiter-api:jar:5.5.2:test - version managed from 5.4.2; omitted for duplicate)
[INFO] +- org.assertj:assertj-core:jar:3.13.2:test
[INFO] +- org.hamcrest:hamcrest:jar:2.1:test
[INFO] +- org.mockito:mockito-core:jar:3.1.0:test
[INFO] | +- net.bytebuddy:byte-buddy:jar:1.10.8:test (version managed from 1.9.10)
[INFO] | +- net.bytebuddy:byte-buddy-agent:jar:1.10.8:test (version managed from 1.9.10)
[INFO] | \- org.objenesis:objenesis:jar:2.6:test
[INFO] +- org.skyscreamer:jsonassert:jar:1.5.0:test
[INFO] | \- com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:test
[INFO] +- (org.springframework:spring-core:jar:5.2.5.RELEASE:compile - scope updated from test; omitted for duplicate)
[INFO] +- org.springframework:spring-test:jar:5.2.5.RELEASE:test
[INFO] | \- (org.springframework:spring-core:jar:5.2.5.RELEASE:test - omitted for duplicate)
[INFO] \- org.xmlunit:xmlunit-core:jar:2.6.4:test
How do I resolve this?
The problem is the .read() function you are calling.
If you want a reference to a database object look at this sample below.
database = client.getDatabase(databaseName);
For more Java SDK samples look here Azure Cosmos DB Java SQL API Samples
I was trying to parse some dependency trees via maven dependency:tree, and found some interesting cases:
I made a pom.xml to install org.glassfish.jersey.containers:jersey-container-servlet:2.19, here is the content:
<project>
<modelVersion>4.0.0</modelVersion>
<groupId> fake_id </groupId>
<artifactId> fake_id </artifactId>
<version>1.0.0</version>
<dependencies>
<dependency>
<groupId>org.glassfish.jersey.containers</groupId>
<artifactId>jersey-container-servlet</artifactId>
<version>2.19</version>
</dependency>
</dependencies>
</project>
Before installing this package, I removed all folders in /home/${user}/.m2/repository in case the result to be affected by existing environment.
Then I ran mvn dependency:tree -Dverbose, I got the following dependency tree:
fake_id:fake_id:jar:1.0.0
[INFO] \- org.glassfish.jersey.containers:jersey-container-servlet:jar:2.19:compile
[INFO] +- org.glassfish.jersey.containers:jersey-container-servlet-core:jar:2.19:compile
[INFO] | +- org.glassfish.hk2.external:javax.inject:jar:2.4.0-b25:compile
[INFO] | +- (org.glassfish.jersey.core:jersey-common:jar:2.19:compile - omitted for duplicate)
[INFO] | +- (org.glassfish.jersey.core:jersey-server:jar:2.19:compile - omitted for duplicate)
[INFO] | \- (javax.ws.rs:javax.ws.rs-api:jar:2.0.1:compile - omitted for duplicate)
[INFO] +- org.glassfish.jersey.core:jersey-common:jar:2.19:compile
[INFO] | +- (javax.ws.rs:javax.ws.rs-api:jar:2.0.1:compile - omitted for duplicate)
[INFO] | +- javax.annotation:javax.annotation-api:jar:1.2:compile
[INFO] | +- org.glassfish.jersey.bundles.repackaged:jersey-guava:jar:2.19:compile
[INFO] | +- org.glassfish.hk2:hk2-api:jar:2.4.0-b25:compile
[INFO] | | +- org.glassfish.hk2:hk2-utils:jar:2.4.0-b25:compile
[INFO] | | \- org.glassfish.hk2.external:aopalliance-repackaged:jar:2.4.0-b25:compile
[INFO] | +- (org.glassfish.hk2.external:javax.inject:jar:2.4.0-b25:compile - omitted for duplicate)
[INFO] | +- org.glassfish.hk2:hk2-locator:jar:2.4.0-b25:compile
[INFO] | | +- (org.glassfish.hk2.external:javax.inject:jar:2.4.0-b25:compile - omitted for duplicate)
[INFO] | | +- (org.glassfish.hk2.external:aopalliance-repackaged:jar:2.4.0-b25:compile - omitted for duplicate)
[INFO] | | +- (org.glassfish.hk2:hk2-api:jar:2.4.0-b25:compile - omitted for duplicate)
[INFO] | | +- (org.glassfish.hk2:hk2-utils:jar:2.4.0-b25:compile - omitted for duplicate)
[INFO] | | \- org.javassist:javassist:jar:3.18.1-GA:compile
[INFO] | \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.1:compile
[INFO] +- org.glassfish.jersey.core:jersey-server:jar:2.19:compile
[INFO] | +- (org.glassfish.jersey.core:jersey-common:jar:2.19:compile - omitted for duplicate)
[INFO] | +- org.glassfish.jersey.core:jersey-client:jar:2.19:compile
[INFO] | | +- (javax.ws.rs:javax.ws.rs-api:jar:2.0.1:compile - omitted for duplicate)
[INFO] | | +- (org.glassfish.jersey.core:jersey-common:jar:2.19:compile - omitted for duplicate)
[INFO] | | +- (org.glassfish.hk2:hk2-api:jar:2.4.0-b25:compile - omitted for duplicate)
[INFO] | | +- (org.glassfish.hk2.external:javax.inject:jar:2.4.0-b25:compile - omitted for duplicate)
[INFO] | | \- (org.glassfish.hk2:hk2-locator:jar:2.4.0-b25:compile - omitted for duplicate)
[INFO] | +- (javax.ws.rs:javax.ws.rs-api:jar:2.0.1:compile - omitted for duplicate)
[INFO] | +- org.glassfish.jersey.media:jersey-media-jaxb:jar:2.19:compile
[INFO] | | +- (org.glassfish.jersey.core:jersey-common:jar:2.19:compile - omitted for duplicate)
[INFO] | | +- (org.glassfish.hk2:hk2-api:jar:2.4.0-b25:compile - omitted for duplicate)
[INFO] | | +- (org.glassfish.hk2.external:javax.inject:jar:2.4.0-b25:compile - omitted for duplicate)
[INFO] | | +- (org.glassfish.hk2:hk2-locator:jar:2.4.0-b25:compile - omitted for duplicate)
[INFO] | | \- (org.glassfish.hk2:osgi-resource-locator:jar:1.0.1:compile - omitted for duplicate)
[INFO] | +- (javax.annotation:javax.annotation-api:jar:1.2:compile - omitted for duplicate)
[INFO] | +- (org.glassfish.hk2:hk2-api:jar:2.4.0-b25:compile - omitted for duplicate)
[INFO] | +- (org.glassfish.hk2.external:javax.inject:jar:2.4.0-b25:compile - omitted for duplicate)
[INFO] | +- (org.glassfish.hk2:hk2-locator:jar:2.4.0-b25:compile - omitted for duplicate)
[INFO] | \- javax.validation:validation-api:jar:1.1.0.Final:compile
[INFO] \- javax.ws.rs:javax.ws.rs-api:jar:2.0.1:compile
However, both org.glassfish.hk2:hk2-api:2.4.0-b25 and org.glassfish.hk2:hk2-utils:2.4.0-b25 have a direct dependency on javax.inject:javex.inject, but javax.inject:javex.injectdidn't show in the output dependency tree. Dependency section in the two pom.xml looks like:
...
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
</dependency>
...
To validate whether javax.inject:javax.inject was an real dependency in the tree, I removed the /home/${user}/.m2/javax/inject folder in case , and ran mvn dependency:tree -Dverbose again, and I found it indeed has downloaded javax.inject:javax.inject:1 again, here is the log.
[INFO] Building fake_id 1.0.0
[INFO] ------------------------------------------------------------------------
Downloading: https://repo.maven.apache.org/maven2/javax/inject/javax.inject/1/javax.inject-1.pom
Downloaded: https://repo.maven.apache.org/maven2/javax/inject/javax.inject/1/javax.inject-1.pom (612 B at 0.5 KB/sec)
[INFO]
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) # fake_id ---
[INFO] fake_id:fake_id:jar:1.0.0
[INFO] \- org.glassfish.jersey.containers:jersey-container-servlet:jar:2.19:compile
[INFO] +- org.glassfish.jersey.containers:jersey-container-servlet-core:jar:2.19:compile
[INFO] | +- org.glassfish.hk2.external:javax.inject:jar:2.4.0-b25:compile
[INFO] | +- (org.glassfish.jersey.core:jersey-common:jar:2.19:compile - omitted for duplicate)
[INFO] | +- (org.glassfish.jersey.core:jersey-server:jar:2.19:compile - omitted for duplicate)
[INFO] | \- (javax.ws.rs:javax.ws.rs-api:jar:2.0.1:compile - omitted for duplicate)
[INFO] +- org.glassfish.jersey.core:jersey-common:jar:2.19:compile
[INFO] | +- (javax.ws.rs:javax.ws.rs-api:jar:2.0.1:compile - omitted for duplicate)
[INFO] | +- javax.annotation:javax.annotation-api:jar:1.2:compile
[INFO] | +- org.glassfish.jersey.bundles.repackaged:jersey-guava:jar:2.19:compile
[INFO] | +- org.glassfish.hk2:hk2-api:jar:2.4.0-b25:compile
[INFO] | | +- org.glassfish.hk2:hk2-utils:jar:2.4.0-b25:compile
[INFO] | | \- org.glassfish.hk2.external:aopalliance-repackaged:jar:2.4.0-b25:compile
[INFO] | +- (org.glassfish.hk2.external:javax.inject:jar:2.4.0-b25:compile - omitted for duplicate)
[INFO] | +- org.glassfish.hk2:hk2-locator:jar:2.4.0-b25:compile
[INFO] | | +- (org.glassfish.hk2.external:javax.inject:jar:2.4.0-b25:compile - omitted for duplicate)
[INFO] | | +- (org.glassfish.hk2.external:aopalliance-repackaged:jar:2.4.0-b25:compile - omitted for duplicate)
[INFO] | | +- (org.glassfish.hk2:hk2-api:jar:2.4.0-b25:compile - omitted for duplicate)
[INFO] | | +- (org.glassfish.hk2:hk2-utils:jar:2.4.0-b25:compile - omitted for duplicate)
[INFO] | | \- org.javassist:javassist:jar:3.18.1-GA:compile
[INFO] | \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.1:compile
[INFO] +- org.glassfish.jersey.core:jersey-server:jar:2.19:compile
[INFO] | +- (org.glassfish.jersey.core:jersey-common:jar:2.19:compile - omitted for duplicate)
[INFO] | +- org.glassfish.jersey.core:jersey-client:jar:2.19:compile
[INFO] | | +- (javax.ws.rs:javax.ws.rs-api:jar:2.0.1:compile - omitted for duplicate)
[INFO] | | +- (org.glassfish.jersey.core:jersey-common:jar:2.19:compile - omitted for duplicate)
[INFO] | | +- (org.glassfish.hk2:hk2-api:jar:2.4.0-b25:compile - omitted for duplicate)
[INFO] | | +- (org.glassfish.hk2.external:javax.inject:jar:2.4.0-b25:compile - omitted for duplicate)
[INFO] | | \- (org.glassfish.hk2:hk2-locator:jar:2.4.0-b25:compile - omitted for duplicate)
[INFO] | +- (javax.ws.rs:javax.ws.rs-api:jar:2.0.1:compile - omitted for duplicate)
[INFO] | +- org.glassfish.jersey.media:jersey-media-jaxb:jar:2.19:compile
[INFO] | | +- (org.glassfish.jersey.core:jersey-common:jar:2.19:compile - omitted for duplicate)
[INFO] | | +- (org.glassfish.hk2:hk2-api:jar:2.4.0-b25:compile - omitted for duplicate)
[INFO] | | +- (org.glassfish.hk2.external:javax.inject:jar:2.4.0-b25:compile - omitted for duplicate)
[INFO] | | +- (org.glassfish.hk2:hk2-locator:jar:2.4.0-b25:compile - omitted for duplicate)
[INFO] | | \- (org.glassfish.hk2:osgi-resource-locator:jar:1.0.1:compile - omitted for duplicate)
[INFO] | +- (javax.annotation:javax.annotation-api:jar:1.2:compile - omitted for duplicate)
[INFO] | +- (org.glassfish.hk2:hk2-api:jar:2.4.0-b25:compile - omitted for duplicate)
[INFO] | +- (org.glassfish.hk2.external:javax.inject:jar:2.4.0-b25:compile - omitted for duplicate)
[INFO] | +- (org.glassfish.hk2:hk2-locator:jar:2.4.0-b25:compile - omitted for duplicate)
[INFO] | \- javax.validation:validation-api:jar:1.1.0.Final:compile
[INFO] \- javax.ws.rs:javax.ws.rs-api:jar:2.0.1:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.439 s
[INFO] Finished at: 2020-03-17T14:58:44+08:00
[INFO] Final Memory: 20M/596M
As far as I have explored, I didn't find any other constraints on javax.inject:javax.inject (such as exclusion, option, etc.).
So I what I want to ask is why javax.inject:javax.inject are ignored by mvn dependency:tree, and is this any solution that I can get this package in dependency tree?
Thanks for your time and kind reply!
To make up the result without -Dverbose:
[INFO] Building fake_id 1.0.0
[INFO] ------------------------------------------------------------------------
Downloading: https://repo.maven.apache.org/maven2/javax/inject/javax.inject/1/javax.inject-1.pom
Downloaded: https://repo.maven.apache.org/maven2/javax/inject/javax.inject/1/javax.inject-1.pom (612 B at 0.5 KB/sec)
[INFO]
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) # fake_id ---
[INFO] fake_id:fake_id:jar:1.0.0
[INFO] \- org.glassfish.jersey.containers:jersey-container-servlet:jar:2.19:compile
[INFO] +- org.glassfish.jersey.containers:jersey-container-servlet-core:jar:2.19:compile
[INFO] | \- org.glassfish.hk2.external:javax.inject:jar:2.4.0-b25:compile
[INFO] +- org.glassfish.jersey.core:jersey-common:jar:2.19:compile
[INFO] | +- javax.annotation:javax.annotation-api:jar:1.2:compile
[INFO] | +- org.glassfish.jersey.bundles.repackaged:jersey-guava:jar:2.19:compile
[INFO] | +- org.glassfish.hk2:hk2-api:jar:2.4.0-b25:compile
[INFO] | | +- org.glassfish.hk2:hk2-utils:jar:2.4.0-b25:compile
[INFO] | | \- org.glassfish.hk2.external:aopalliance-repackaged:jar:2.4.0-b25:compile
[INFO] | +- org.glassfish.hk2:hk2-locator:jar:2.4.0-b25:compile
[INFO] | | \- org.javassist:javassist:jar:3.18.1-GA:compile
[INFO] | \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.1:compile
[INFO] +- org.glassfish.jersey.core:jersey-server:jar:2.19:compile
[INFO] | +- org.glassfish.jersey.core:jersey-client:jar:2.19:compile
[INFO] | +- org.glassfish.jersey.media:jersey-media-jaxb:jar:2.19:compile
[INFO] | \- javax.validation:validation-api:jar:1.1.0.Final:compile
[INFO] \- javax.ws.rs:javax.ws.rs-api:jar:2.0.1:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
The description of the verbose option says (https://maven.apache.org/plugins/maven-dependency-plugin/tree-mojo.html):
Whether to include omitted nodes in the serialized dependency tree. Notice this feature actually uses Maven 2 algorithm and may give wrong results when used with Maven 3
I am using JDk 1.8 and Spring boot 2.0.8, app is working fine in local laptop however once deploy on PCF its start complain
Unable to start web server; nested exception is
java.lang.NoSuchMethodError:
org.apache.tomcat.util.ExceptionUtils.preload()V
Dependancy Tree:
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:2.0.8.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter:jar:2.0.8.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot:jar:2.0.8.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-autoconfigure:jar:2.0.8.RELEASE:compile
[INFO] | | \- org.yaml:snakeyaml:jar:1.19:runtime
[INFO] | +- org.springframework.boot:spring-boot-starter-json:jar:2.0.8.RELEASE:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.9.8:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.9.8:compile
[INFO] | | \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.9.8:compile
[INFO] | +- org.hibernate.validator:hibernate-validator:jar:6.0.14.Final:compile
[INFO] | | +- javax.validation:validation-api:jar:2.0.1.Final:compile
[INFO] | | +- org.jboss.logging:jboss-logging:jar:3.3.2.Final:compile
[INFO] | | \- com.fasterxml:classmate:jar:1.3.4:compile
[INFO] | +- org.springframework:spring-web:jar:5.0.12.RELEASE:compile
[INFO] | \- org.springframework:spring-webmvc:jar:5.0.12.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.0.8.RELEASE:compile
[INFO] | +- javax.annotation:javax.annotation-api:jar:1.3.2:compile
[INFO] | +- org.apache.tomcat.embed:tomcat-embed-core:jar:8.5.37:compile
[INFO] | +- org.apache.tomcat.embed:tomcat-embed-el:jar:8.5.37:compile
[INFO] | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:8.5.37:compile
[INFO] +- org.springframework.boot:spring-boot-starter-logging:jar:2.0.8.RELEASE:compile
[INFO] | \- ch.qos.logback:logback-classic:jar:1.2.3:compile
[INFO] +- net.logstash.logback:logstash-logback-encoder:jar:4.11:compile
[INFO] | +- ch.qos.logback:logback-core:jar:1.2.3:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-databind:jar:2.9.8:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-core:jar:2.9.8:compile
[INFO] \- org.apache.hive:hive-jdbc:jar:3.1.0.3.1.0.0-78:compile
[INFO] +- org.apache.hive:hive-common:jar:3.1.0.3.1.0.0-78:compile
[INFO] | +- org.apache.hive:hive-classification:jar:3.1.0.3.1.0.0-78:compile
[INFO] | +- org.apache.hive:hive-storage-api:jar:2.3.0.3.1.0.0-78:compile
[INFO] | +- commons-cli:commons-cli:jar:1.2:compile
[INFO] | +- commons-lang:commons-lang:jar:2.6:compile
[INFO] | +- org.apache.commons:commons-lang3:jar:3.7:compile
[INFO] | +- org.apache.orc:orc-core:jar:1.5.1.3.1.0.0-78:compile
[INFO] | | +- org.apache.orc:orc-shims:jar:1.5.1.3.1.0.0-78:compile
[INFO] | | +- com.google.protobuf:protobuf-java:jar:2.5.0:compile
[INFO] | | +- io.airlift:aircompressor:jar:0.10:compile
[INFO] | | \- org.apache.hadoop:hadoop-hdfs:jar:3.1.1.3.1.0.0-78:compile
[INFO] | | +- org.eclipse.jetty:jetty-util-ajax:jar:9.4.14.v20181114:compile
[INFO] | | +- com.sun.jersey:jersey-core:jar:1.19:compile
[INFO] | | | \- javax.ws.rs:jsr311-api:jar:1.1.1:compile
[INFO] | | \- com.sun.jersey:jersey-server:jar:1.19:compile
[INFO] | +- jline:jline:jar:2.14.3:compile
[INFO] | +- org.eclipse.jetty:jetty-http:jar:9.4.14.v20181114:compile
[INFO] | | +- org.eclipse.jetty:jetty-util:jar:9.4.14.v20181114:compile
[INFO] | | \- org.eclipse.jetty:jetty-io:jar:9.4.14.v20181114:compile
[INFO] | +- org.eclipse.jetty:jetty-rewrite:jar:9.4.14.v20181114:compile
[INFO] | +- org.eclipse.jetty:jetty-servlet:jar:9.4.14.v20181114:compile
[INFO] | | \- org.eclipse.jetty:jetty-security:jar:9.4.14.v20181114:compile
[INFO] | +- org.eclipse.jetty:jetty-webapp:jar:9.4.14.v20181114:compile
[INFO] | | \- org.eclipse.jetty:jetty-xml:jar:9.4.14.v20181114:compile
[INFO] | +- joda-time:joda-time:jar:2.9.9:compile
[INFO] | +- org.apache.logging.log4j:log4j-1.2-api:jar:2.10.0:compile
[INFO] | | \- org.apache.logging.log4j:log4j-core:jar:2.10.0:compile
[INFO] | +- org.apache.logging.log4j:log4j-web:jar:2.10.0:compile
[INFO] | +- org.apache.commons:commons-compress:jar:1.9:compile
[INFO] | +- org.apache.ant:ant:jar:1.9.1:compile
[INFO] | | \- org.apache.ant:ant-launcher:jar:1.9.1:compile
[INFO] | +- net.sf.jpam:jpam:jar:1.1:compile
[INFO] | | \- commons-logging:commons-logging:jar:1.1.3:compile
[INFO] | +- com.tdunning:json:jar:1.8:compile
[INFO] | +- io.dropwizard.metrics:metrics-core:jar:3.2.6:compile
[INFO] | +- io.dropwizard.metrics:metrics-jvm:jar:3.2.6:compile
[INFO] | +- io.dropwizard.metrics:metrics-json:jar:3.2.6:compile
[INFO] | +- com.github.joshelser:dropwizard-metrics-hadoop-metrics2-reporter:jar:0.1.2:compile
[INFO] | | \- org.apache.hadoop:hadoop-common:jar:3.1.1.3.1.0.0-78:compile
[INFO] | | +- org.apache.hadoop:hadoop-annotations:jar:3.1.1.3.1.0.0-78:compile
[INFO] | | | \- jdk.tools:jdk.tools:jar:1.8:system
[INFO] | | +- org.apache.commons:commons-math3:jar:3.6.1:compile
[INFO] | | +- commons-collections:commons-collections:jar:3.2.2:compile
[INFO] | | +- javax.servlet.jsp:jsp-api:jar:2.1:runtime
[INFO] | | +- com.sun.jersey:jersey-servlet:jar:1.19:compile
[INFO] | | +- org.apache.commons:commons-configuration2:jar:2.1.1:compile
[INFO] | | +- com.google.re2j:re2j:jar:1.1:compile
[INFO] | | +- com.jcraft:jsch:jar:0.1.54:compile
[INFO] | | +- org.apache.kerby:kerb-simplekdc:jar:1.0.1:compile
[INFO] | | | +- org.apache.kerby:kerb-client:jar:1.0.1:compile
[INFO] | | | | +- org.apache.kerby:kerby-config:jar:1.0.1:compile
[INFO] | | | | +- org.apache.kerby:kerb-core:jar:1.0.1:compile
[INFO] | | | | | \- org.apache.kerby:kerby-pkix:jar:1.0.1:compile
[INFO] | | | | | +- org.apache.kerby:kerby-asn1:jar:1.0.1:compile
[INFO] | | | | | \- org.apache.kerby:kerby-util:jar:1.0.1:compile
[INFO] | | | | +- org.apache.kerby:kerb-common:jar:1.0.1:compile
[INFO] | | | | | \- org.apache.kerby:kerb-crypto:jar:1.0.1:compile
[INFO] | | | | +- org.apache.kerby:kerb-util:jar:1.0.1:compile
[INFO] | | | | \- org.apache.kerby:token-provider:jar:1.0.1:compile
[INFO] | | | | \- com.nimbusds:nimbus-jose-jwt:jar:3.10:compile
[INFO] | | | | +- net.jcip:jcip-annotations:jar:1.0:compile
[INFO] | | | | +- net.minidev:json-smart:jar:2.3:compile
[INFO] | | | | | \- net.minidev:accessors-smart:jar:1.2:compile
[INFO] | | | | \- org.bouncycastle:bcprov-jdk15on:jar:1.52:compile
[INFO] | | | \- org.apache.kerby:kerb-admin:jar:1.0.1:compile
[INFO] | | | +- org.apache.kerby:kerb-server:jar:1.0.1:compile
[INFO] | | | | \- org.apache.kerby:kerb-identity:jar:1.0.1:compile
[INFO] | | | \- org.apache.kerby:kerby-xdr:jar:1.0.1:compile
[INFO] | | +- org.codehaus.woodstox:stax2-api:jar:3.1.4:compile
[INFO] | | \- com.fasterxml.woodstox:woodstox-core:jar:5.0.3:compile
[INFO] | \- javolution:javolution:jar:5.5.1:compile
[INFO] +- org.apache.hive:hive-service:jar:3.1.0.3.1.0.0-78:compile
[INFO] | +- org.apache.hive:hive-llap-server:jar:3.1.0.3.1.0.0-78:compile
[INFO] | | +- org.apache.hive:hive-llap-common:jar:3.1.0.3.1.0.0-78:compile
[INFO] | | +- org.apache.hive:hive-llap-client:jar:3.1.0.3.1.0.0-78:compile
[INFO] | | | \- org.apache.curator:apache-curator:pom:2.12.0:compile
[INFO] | | +- org.apache.hive:hive-llap-tez:jar:3.1.0.3.1.0.0-78:compile
[INFO] | | +- io.netty:netty-all:jar:4.1.31.Final:compile
[INFO] | | +- org.apache.hive:hive-llap-common:test-jar:tests:3.1.0.3.1.0.0-78:compile
[INFO] | | +- org.apache.hbase:hbase-hadoop2-compat:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | | +- org.apache.hbase:hbase-metrics:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | | +- org.apache.hbase:hbase-metrics-api:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | | \- org.apache.hadoop:hadoop-mapreduce-client-core:jar:3.1.1.3.1.0.0-78:compile
[INFO] | | | +- org.apache.hadoop:hadoop-yarn-client:jar:3.1.1.3.1.0.0-78:compile
[INFO] | | | \- org.apache.hadoop:hadoop-hdfs-client:jar:3.1.1.3.1.0.0-78:compile
[INFO] | | | \- com.squareup.okhttp:okhttp:jar:2.7.5:compile
[INFO] | | | \- com.squareup.okio:okio:jar:1.6.0:compile
[INFO] | | +- org.apache.hbase:hbase-server:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | | +- org.apache.hbase:hbase-http:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | | | +- org.glassfish.jersey.core:jersey-server:jar:2.26:compile
[INFO] | | | | | +- org.glassfish.jersey.core:jersey-common:jar:2.26:compile
[INFO] | | | | | | \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.1:compile
[INFO] | | | | | +- org.glassfish.jersey.core:jersey-client:jar:2.26:compile
[INFO] | | | | | +- org.glassfish.jersey.media:jersey-media-jaxb:jar:2.26:compile
[INFO] | | | | | \- org.glassfish.hk2.external:javax.inject:jar:2.5.0-b42:compile
[INFO] | | | | \- org.glassfish.jersey.containers:jersey-container-servlet-core:jar:2.26:compile
[INFO] | | | +- org.apache.hbase:hbase-procedure:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | | +- org.apache.hbase:hbase-zookeeper:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | | +- org.apache.hbase:hbase-replication:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | | +- org.glassfish.web:javax.servlet.jsp:jar:2.3.2:compile
[INFO] | | | | \- org.glassfish:javax.el:jar:3.0.0:compile
[INFO] | | | +- javax.ws.rs:javax.ws.rs-api:jar:2.1:compile
[INFO] | | | +- org.apache.htrace:htrace-core:jar:3.2.0-incubating:compile
[INFO] | | | +- com.lmax:disruptor:jar:3.3.6:compile
[INFO] | | | +- org.apache.hadoop:hadoop-distcp:jar:3.1.1.3.1.0.0-78:compile
[INFO] | | | \- org.apache.hadoop:hadoop-client:jar:3.1.1.3.1.0.0-78:compile
[INFO] | | | \- org.apache.hadoop:hadoop-mapreduce-client-jobclient:jar:3.1.1.3.1.0.0-78:compile
[INFO] | | | \- org.apache.hadoop:hadoop-mapreduce-client-common:jar:3.1.1.3.1.0.0-78:compile
[INFO] | | +- org.apache.hbase:hbase-mapreduce:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | +- org.apache.hbase:hbase-common:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | | \- com.github.stephenc.findbugs:findbugs-annotations:jar:1.3.9-1:compile
[INFO] | | \- org.apache.hbase:hbase-hadoop-compat:jar:2.0.2.3.1.0.0-78:compile
[INFO] | +- javax.servlet.jsp:javax.servlet.jsp-api:jar:2.3.1:compile
[INFO] | +- commons-codec:commons-codec:jar:1.11:compile
[INFO] | +- org.eclipse.jetty:jetty-runner:jar:9.3.25.v20180904:compile
[INFO] | | +- org.eclipse.jetty:jetty-plus:jar:9.4.14.v20181114:compile
[INFO] | | +- org.eclipse.jetty:jetty-annotations:jar:9.4.14.v20181114:compile
[INFO] | | | +- org.ow2.asm:asm:jar:6.2:compile
[INFO] | | | \- org.ow2.asm:asm-commons:jar:7.0:compile
[INFO] | | | +- org.ow2.asm:asm-tree:jar:7.0:compile
[INFO] | | | \- org.ow2.asm:asm-analysis:jar:7.0:compile
[INFO] | | +- org.eclipse.jetty:jetty-jaas:jar:9.4.14.v20181114:compile
[INFO] | | +- org.eclipse.jetty.websocket:websocket-server:jar:9.4.14.v20181114:compile
[INFO] | | | +- org.eclipse.jetty.websocket:websocket-common:jar:9.4.14.v20181114:compile
[INFO] | | | | \- org.eclipse.jetty.websocket:websocket-api:jar:9.4.14.v20181114:compile
[INFO] | | | +- org.eclipse.jetty.websocket:websocket-client:jar:9.4.14.v20181114:compile
[INFO] | | | | \- org.eclipse.jetty:jetty-client:jar:9.4.14.v20181114:compile
[INFO] | | | \- org.eclipse.jetty.websocket:websocket-servlet:jar:9.4.14.v20181114:compile
[INFO] | | +- org.eclipse.jetty:jetty-jndi:jar:9.4.14.v20181114:compile
[INFO] | | +- org.eclipse.jetty:apache-jsp:jar:9.4.14.v20181114:compile
[INFO] | | | \- org.eclipse.jetty.toolchain:jetty-schemas:jar:3.1.2:compile
[INFO] | | \- org.eclipse.jetty:apache-jstl:jar:9.4.14.v20181114:compile
[INFO] | | +- org.apache.taglibs:taglibs-standard-spec:jar:1.2.5:compile
[INFO] | | \- org.apache.taglibs:taglibs-standard-impl:jar:1.2.5:compile
[INFO] | +- org.apache.thrift:libfb303:jar:0.9.3:compile
[INFO] | +- org.apache.curator:curator-recipes:jar:2.12.0:compile
[INFO] | \- org.jamon:jamon-runtime:jar:2.4.1:compile
[INFO] +- org.apache.hive:hive-serde:jar:3.1.0.3.1.0.0-78:compile
[INFO] | +- org.apache.arrow:arrow-vector:jar:0.8.0.3.1.0.0-78:compile
[INFO] | | +- org.apache.arrow:arrow-format:jar:0.8.0.3.1.0.0-78:compile
[INFO] | | +- org.apache.arrow:arrow-memory:jar:0.8.0.3.1.0.0-78:compile
[INFO] | | +- io.netty:netty-buffer:jar:4.1.31.Final:compile
[INFO] | | \- io.netty:netty-common:jar:4.1.31.Final:compile
[INFO] | +- com.carrotsearch:hppc:jar:0.7.2:compile
[INFO] | +- com.vlkan:flatbuffers:jar:1.2.0-3f79e055:compile
[INFO] | +- org.apache.avro:avro:jar:1.7.2:compile
[INFO] | | +- org.codehaus.jackson:jackson-core-asl:jar:1.8.8:compile
[INFO] | | +- com.thoughtworks.paranamer:paranamer:jar:2.3:compile
[INFO] | | \- org.xerial.snappy:snappy-java:jar:1.0.4.1:compile
[INFO] | +- net.sf.opencsv:opencsv:jar:2.3:compile
[INFO] | \- org.apache.parquet:parquet-hadoop-bundle:jar:1.10.0.3.1.0.0-78:compile
[INFO] +- org.apache.hive:hive-metastore:jar:3.1.0.3.1.0.0-78:compile
[INFO] | +- org.apache.hive:hive-standalone-metastore:jar:3.1.0.3.1.0.0-78:compile
[INFO] | | +- org.datanucleus:datanucleus-api-jdo:jar:4.2.4:compile
[INFO] | | +- org.datanucleus:datanucleus-core:jar:4.1.17:compile
[INFO] | | +- org.datanucleus:datanucleus-rdbms:jar:4.1.19:compile
[INFO] | | +- org.datanucleus:javax.jdo:jar:3.2.0-m3:compile
[INFO] | | | \- javax.transaction:transaction-api:jar:1.1:compile
[INFO] | | \- sqlline:sqlline:jar:1.3.0:compile
[INFO] | +- com.google.guava:guava:jar:16.0:compile
[INFO] | +- org.apache.hbase:hbase-client:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | +- org.apache.hbase.thirdparty:hbase-shaded-protobuf:jar:2.1.0:compile
[INFO] | | +- org.apache.hbase:hbase-protocol-shaded:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | +- org.apache.hbase:hbase-protocol:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | | \- junit:junit:jar:4.12:compile
[INFO] | | | \- org.hamcrest:hamcrest-core:jar:1.3:compile
[INFO] | | +- org.apache.hadoop:hadoop-aws:jar:3.1.1.3.1.0.0-78:compile
[INFO] | | | \- com.amazonaws:aws-java-sdk-bundle:jar:1.11.271:compile
[INFO] | | +- commons-io:commons-io:jar:2.5:compile
[INFO] | | +- org.apache.hbase.thirdparty:hbase-shaded-miscellaneous:jar:2.1.0:compile
[INFO] | | +- org.apache.hbase.thirdparty:hbase-shaded-netty:jar:2.1.0:compile
[INFO] | | +- org.apache.htrace:htrace-core4:jar:4.2.0-incubating:compile
[INFO] | | +- org.jruby.jcodings:jcodings:jar:1.0.8:compile
[INFO] | | +- org.jruby.joni:joni:jar:2.1.11:compile
[INFO] | | +- org.apache.commons:commons-crypto:jar:1.0.0:compile
[INFO] | | \- org.apache.yetus:audience-annotations:jar:0.5.0:compile
[INFO] | +- com.jolbox:bonecp:jar:0.8.0.RELEASE:compile
[INFO] | +- com.zaxxer:HikariCP:jar:2.7.9:compile
[INFO] | +- org.apache.derby:derby:jar:10.14.2.0:compile
[INFO] | +- commons-pool:commons-pool:jar:1.6:compile
[INFO] | +- commons-dbcp:commons-dbcp:jar:1.4:compile
[INFO] | +- javax.jdo:jdo-api:jar:3.0.1:compile
[INFO] | | \- javax.transaction:jta:jar:1.1:compile
[INFO] | +- org.antlr:antlr-runtime:jar:3.5.2:compile
[INFO] | +- co.cask.tephra:tephra-api:jar:0.6.0:compile
[INFO] | +- co.cask.tephra:tephra-core:jar:0.6.0:compile
[INFO] | | +- com.google.code.gson:gson:jar:2.8.5:compile
[INFO] | | +- com.google.inject.extensions:guice-assistedinject:jar:3.0:compile
[INFO] | | +- org.apache.twill:twill-common:jar:0.6.0-incubating:compile
[INFO] | | +- org.apache.twill:twill-core:jar:0.6.0-incubating:compile
[INFO] | | | \- org.apache.twill:twill-api:jar:0.6.0-incubating:compile
[INFO] | | +- org.apache.twill:twill-discovery-api:jar:0.6.0-incubating:compile
[INFO] | | +- org.apache.twill:twill-discovery-core:jar:0.6.0-incubating:compile
[INFO] | | \- org.apache.twill:twill-zookeeper:jar:0.6.0-incubating:compile
[INFO] | \- co.cask.tephra:tephra-hbase-compat-1.0:jar:0.6.0:compile
[INFO] +- org.apache.hive:hive-shims:jar:3.1.0.3.1.0.0-78:compile
[INFO] | +- org.apache.hive.shims:hive-shims-common:jar:3.1.0.3.1.0.0-78:compile
[INFO] | +- org.apache.hive.shims:hive-shims-0.23:jar:3.1.0.3.1.0.0-78:runtime
[INFO] | | \- org.apache.hadoop:hadoop-yarn-server-resourcemanager:jar:3.1.1.3.1.0.0-78:runtime
[INFO] | | +- com.google.inject.extensions:guice-servlet:jar:4.0:compile
[INFO] | | +- com.sun.jersey.contribs:jersey-guice:jar:1.19:compile
[INFO] | | | \- javax.inject:javax.inject:jar:1:compile
[INFO] | | +- org.apache.hadoop:hadoop-yarn-common:jar:3.1.1:compile
[INFO] | | | +- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.9.8:compile
[INFO] | | | \- com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:jar:2.9.8:compile
[INFO] | | | \- com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:jar:2.9.8:compile
[INFO] | | +- org.apache.hadoop:hadoop-yarn-api:jar:3.1.1.3.1.0.0-78:compile
[INFO] | | +- javax.xml.bind:jaxb-api:jar:2.3.1:compile
[INFO] | | | \- javax.activation:javax.activation-api:jar:1.2.0:compile
[INFO] | | +- com.sun.jersey:jersey-client:jar:1.19:compile
[INFO] | | +- org.apache.hadoop:hadoop-yarn-server-common:jar:3.1.1.3.1.0.0-78:runtime
[INFO] | | | +- org.apache.hadoop:hadoop-yarn-registry:jar:3.1.1.3.1.0.0-78:runtime
[INFO] | | | | +- commons-daemon:commons-daemon:jar:1.0.13:runtime
[INFO] | | | | \- dnsjava:dnsjava:jar:2.1.7:runtime
[INFO] | | | +- org.apache.geronimo.specs:geronimo-jcache_1.0_spec:jar:1.0-alpha-1:runtime
[INFO] | | | +- org.ehcache:ehcache:jar:3.5.3:runtime
[INFO] | | | +- com.zaxxer:HikariCP-java7:jar:2.4.12:runtime
[INFO] | | | \- com.microsoft.sqlserver:mssql-jdbc:jar:6.2.2.jre8:runtime
[INFO] | | +- org.apache.hadoop:hadoop-yarn-server-applicationhistoryservice:jar:3.1.1.3.1.0.0-78:runtime
[INFO] | | | +- org.objenesis:objenesis:jar:1.0:runtime
[INFO] | | | \- de.ruedigermoeller:fst:jar:2.50:runtime
[INFO] | | | \- com.cedarsoftware:java-util:jar:1.9.0:runtime
[INFO] | | | \- com.cedarsoftware:json-io:jar:2.5.1:runtime
[INFO] | | +- org.apache.hadoop:hadoop-yarn-server-web-proxy:jar:3.1.1.3.1.0.0-78:runtime
[INFO] | | \- org.fusesource.leveldbjni:leveldbjni-all:jar:1.8:runtime
[INFO] | \- org.apache.hive.shims:hive-shims-scheduler:jar:3.1.0.3.1.0.0-78:runtime
[INFO] +- org.apache.hive:hive-service-rpc:jar:3.1.0.3.1.0.0-78:compile
[INFO] +- org.apache.httpcomponents:httpclient:jar:4.5.6:compile
[INFO] +- org.apache.httpcomponents:httpcore:jar:4.4.10:compile
[INFO] +- org.apache.thrift:libthrift:jar:0.9.3:compile
[INFO] +- org.apache.zookeeper:zookeeper:jar:3.4.6.3.1.0.0-78:compile
[INFO] | \- io.netty:netty:jar:3.10.5.Final:compile
[INFO] +- org.apache.curator:curator-framework:jar:2.12.0:compile
[INFO] | \- org.apache.curator:curator-client:jar:2.12.0:compile
[INFO] \- org.slf4j:slf4j-api:jar:1.7.25:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
PCF logs :
[ERR] Caused by: java.lang.NoSuchMethodError: org.apache.tomcat.util.ExceptionUtils.preload()V
[ERR] at org.apache.catalina.startup.Tomcat.<init>(Tomcat.java:160)
[ERR] at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:160)
[ERR] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:181)
[ERR] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:154)
[APP/PROC/WEB/0] [ERR] ... 16 more
I have tried diffrent springboot version and fllowing properties with diffrent tomcat version.
<properties>
<java.version>1.8</java.version>
<maven.compiler.target>1.8</maven.compiler.target>
<tomcat.version>8.5.37</tomcat.version>
</properties>
Also tried to exclude tomcat in web and added from external dependency but nothing is working on pcf
It's because your dependencies are missing the following:
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<version>8.5.37</version>
</dependency>
Make sure to add it into your pom.xml.
When including a not-so-recent version of Guava (20.0) in my Quarkus (0.19.1) application via a third-party lib, at runtime (mvn compile quarkus:dev), I get the following exception:
java.lang.NoSuchMethodError: com.google.common.net.HostAndPort.getHostText()Ljava/lang/String;
Upgrading to the latest snapshot of the lib solves the problem because the version of Guava has been upgraded as well. But this is not an ideal solution as the lib has not yet released in this version. Furthermore, there are libraries out there relying on Guava (on another lib used by Quarkus internals) that might never get updated.
Is there a way to isolate the Guava lib (or any other lib) used by Quarkus from the one used by applications?
Edit
Some more details. The issue occurs with the org.littleshoot:littleproxy 1.1.2 (https://github.com/adamfisk/LittleProxy/blob/littleproxy-1.1.2/pom.xml) which has a dependency to com.google.guava:guava 20.0
A dependency tree check shows that com.google.guava:guava 27.0.1-jre is used instead of the 20.0 version.
[INFO] +- io.quarkus:quarkus-resteasy:jar:0.19.1:compile
[INFO] | +- io.quarkus:quarkus-undertow:jar:0.19.1:compile
[INFO] | | +- io.quarkus:quarkus-arc:jar:0.19.1:compile
[INFO] | | | \- io.quarkus.arc:arc:jar:0.19.1:compile
[INFO] | | +- io.undertow:undertow-servlet:jar:2.0.21.Final:compile
[INFO] | | | +- io.undertow:undertow-core:jar:2.0.21.Final:compile
[INFO] | | | \- org.jboss.spec.javax.servlet:jboss-servlet-api_4.0_spec:jar:1.0.0.Final:compile
[INFO] | | +- org.jboss.xnio:xnio-nio:jar:3.7.2.Final:compile
[INFO] | | +- org.jboss.xnio:xnio-api:jar:3.7.2.Final:compile
[INFO] | | \- org.eclipse.microprofile.context-propagation:microprofile-context-propagation-api:jar:1.0-RC1:compile
[INFO] | | \- javax.enterprise:cdi-api:jar:2.0.SP1:compile
[INFO] | | +- javax.el:javax.el-api:jar:3.0.0:compile
[INFO] | | \- javax.interceptor:javax.interceptor-api:jar:1.2:compile
[INFO] | \- io.quarkus:quarkus-resteasy-server-common:jar:0.19.1:compile
[INFO] | +- io.quarkus:quarkus-resteasy-common:jar:0.19.1:compile
[INFO] | | +- org.jboss.resteasy:resteasy-core:jar:4.1.0.Final:compile
[INFO] | | | +- org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_2.1_spec:jar:1.0.2.Final:compile
[INFO] | | | +- org.jboss.spec.javax.xml.bind:jboss-jaxb-api_2.3_spec:jar:1.0.1.Final:compile
[INFO] | | | +- org.jboss.resteasy:resteasy-core-spi:jar:4.1.0.Final:compile
[INFO] | | | \- org.reactivestreams:reactive-streams:jar:1.0.2:compile
[INFO] | | +- org.jboss.resteasy:resteasy-context-propagation:jar:4.1.0.Final:compile
[INFO] | | | \- io.smallrye:smallrye-context-propagation:jar:1.0.7:compile
[INFO] | | | \- io.smallrye:smallrye-context-propagation-api:jar:1.0.7:compile
[INFO] | | \- com.sun.activation:jakarta.activation:jar:1.2.1:compile
[INFO] | +- javax.validation:validation-api:jar:2.0.1.Final:compile
[INFO] | \- io.quarkus:quarkus-jaxb:jar:0.19.1:compile
[INFO] +- io.quarkus:quarkus-resteasy-jsonb:jar:0.19.1:compile
[INFO] | +- io.quarkus:quarkus-jsonb:jar:0.19.1:compile
[INFO] | | +- org.eclipse:yasson:jar:1.0.4:compile
[INFO] | | +- javax.json.bind:javax.json.bind-api:jar:1.0:compile
[INFO] | | \- io.quarkus:quarkus-jsonp:jar:0.19.1:compile
[INFO] | +- org.jboss.resteasy:resteasy-json-binding-provider:jar:4.1.0.Final:compile
[INFO] | | +- org.glassfish:javax.json:jar:1.1.4:compile
[INFO] | | \- org.jboss.logging:jboss-logging:jar:3.3.2.Final:compile
[INFO] | +- org.jboss.resteasy:resteasy-json-p-provider:jar:4.1.0.Final:compile
[INFO] | \- commons-io:commons-io:jar:2.5:compile
[INFO] +- org.littleshoot:littleproxy:jar:1.1.2:compile
[INFO] | +- com.google.guava:guava:jar:27.0.1-jre:compile
[INFO] | | +- com.google.guava:failureaccess:jar:1.0.1:compile
[INFO] | | +- com.google.guava:listenablefuture:jar:9999.0-empty-to-avoid-conflict-with-guava:compile
[INFO] | | +- com.google.code.findbugs:jsr305:jar:3.0.2:compile
[INFO] | | +- org.checkerframework:checker-qual:jar:2.5.2:compile
[INFO] | | +- com.google.errorprone:error_prone_annotations:jar:2.2.0:compile
[INFO] | | +- com.google.j2objc:j2objc-annotations:jar:1.1:compile
[INFO] | | \- org.codehaus.mojo:animal-sniffer-annotations:jar:1.17:compile
[INFO] | +- org.apache.commons:commons-lang3:jar:3.8.1:compile
[INFO] | +- io.netty:netty-all:jar:4.1.34.Final:compile
[INFO] | +- com.barchart.udt:barchart-udt-bundle:jar:2.3.0:compile
[INFO] | \- org.slf4j:slf4j-api:jar:1.7.25:compile
[INFO] +- io.quarkus:quarkus-junit5:jar:0.19.1:test
[INFO] | +- io.quarkus:quarkus-bootstrap-core:jar:0.19.1:test
[INFO] | | +- org.apache.maven:maven-embedder:jar:3.5.4:test
[INFO] | | | +- org.apache.maven:maven-settings:jar:3.5.4:test
[INFO] | | | +- org.apache.maven:maven-core:jar:3.5.4:test
[INFO] | | | | \- org.apache.maven:maven-artifact:jar:3.5.4:test
[INFO] | | | +- org.apache.maven:maven-plugin-api:jar:3.5.4:test
[INFO] | | | +- org.apache.maven:maven-model:jar:3.5.4:test
[INFO] | | | +- org.apache.maven:maven-model-builder:jar:3.5.4:test
[INFO] | | | +- org.apache.maven:maven-builder-support:jar:3.5.4:test
[INFO] | | | +- org.apache.maven.resolver:maven-resolver-api:jar:1.1.1:test
[INFO] | | | +- org.apache.maven.resolver:maven-resolver-util:jar:1.1.1:test
[INFO] | | | +- org.apache.maven.shared:maven-shared-utils:jar:3.2.1:test
[INFO] | | | +- com.google.inject:guice:jar:no_aop:4.2.0:test
[INFO] | | | | \- aopalliance:aopalliance:jar:1.0:test
[INFO] | | | +- javax.annotation:jsr250-api:jar:1.0:test
[INFO] | | | +- org.codehaus.plexus:plexus-utils:jar:3.0.24:test
[INFO] | | | +- org.codehaus.plexus:plexus-classworlds:jar:2.5.2:test
[INFO] | | | +- org.eclipse.sisu:org.eclipse.sisu.plexus:jar:0.3.3:test
[INFO] | | | +- org.codehaus.plexus:plexus-component-annotations:jar:1.7.1:test
[INFO] | | | \- commons-cli:commons-cli:jar:1.4:test
[INFO] | | +- org.apache.maven:maven-settings-builder:jar:3.5.4:test
[INFO] | | | +- org.codehaus.plexus:plexus-interpolation:jar:1.24:test
[INFO] | | | \- org.sonatype.plexus:plexus-sec-dispatcher:jar:1.4:test
[INFO] | | | \- org.sonatype.plexus:plexus-cipher:jar:1.4:test
[INFO] | | +- org.apache.maven:maven-resolver-provider:jar:3.5.4:test
[INFO] | | | +- org.apache.maven:maven-repository-metadata:jar:3.5.4:test
[INFO] | | | +- org.apache.maven.resolver:maven-resolver-spi:jar:1.1.1:test
[INFO] | | | \- org.apache.maven.resolver:maven-resolver-impl:jar:1.1.1:test
[INFO] | | +- org.apache.maven.resolver:maven-resolver-connector-basic:jar:1.1.1:test
[INFO] | | +- org.apache.maven.resolver:maven-resolver-transport-file:jar:1.1.1:test
[INFO] | | \- org.apache.maven.resolver:maven-resolver-transport-http:jar:1.1.1:test
[INFO] | | \- org.slf4j:jcl-over-slf4j:jar:1.7.25:test
[INFO] | +- io.quarkus:quarkus-test-common:jar:0.19.1:test
[INFO] | | +- io.quarkus:quarkus-core-deployment:jar:0.19.1:test
[INFO] | | | +- commons-beanutils:commons-beanutils:jar:1.9.3:test
[INFO] | | | | \- commons-collections:commons-collections:jar:3.2.2:test
[INFO] | | | +- org.jboss.invocation:jboss-invocation:jar:1.5.2.Final:test
[INFO] | | | +- org.jboss.classfilewriter:jboss-classfilewriter:jar:1.2.4.Final:test
[INFO] | | | +- io.quarkus.gizmo:gizmo:jar:1.0.0.Alpha5:test
[INFO] | | | | \- org.ow2.asm:asm-util:jar:7.1:test
[INFO] | | | | +- org.ow2.asm:asm-tree:jar:7.1:test
[INFO] | | | | \- org.ow2.asm:asm-analysis:jar:7.1:test
[INFO] | | | +- org.ow2.asm:asm:jar:7.1:test
[INFO] | | | \- io.quarkus:quarkus-builder:jar:0.19.1:test
[INFO] | | +- io.quarkus:quarkus-jsonp-deployment:jar:0.19.1:test
[INFO] | | \- org.jboss:jandex:jar:2.1.1.Final:test
[INFO] | +- org.junit.jupiter:junit-jupiter-api:jar:5.5.0:test
[INFO] | | +- org.apiguardian:apiguardian-api:jar:1.1.0:test
[INFO] | | +- org.opentest4j:opentest4j:jar:1.2.0:test
[INFO] | | \- org.junit.platform:junit-platform-commons:jar:1.5.0:test
[INFO] | +- org.junit.jupiter:junit-jupiter-params:jar:5.5.0:test
[INFO] | +- org.junit.jupiter:junit-jupiter-engine:jar:5.5.0:test
[INFO] | | \- org.junit.platform:junit-platform-engine:jar:1.5.0:test
[INFO] | \- io.quarkus:quarkus-core:jar:0.19.1:compile
[INFO] | +- javax.inject:javax.inject:jar:1:compile
[INFO] | +- javax.annotation:javax.annotation-api:jar:1.3.2:compile
[INFO] | +- io.smallrye:smallrye-config:jar:1.3.5:compile
[INFO] | | \- org.eclipse.microprofile.config:microprofile-config-api:jar:1.3:compile
[INFO] | | \- org.osgi:org.osgi.annotation.versioning:jar:1.0.0:compile
[INFO] | +- org.jboss.logmanager:jboss-logmanager-embedded:jar:1.0.3:compile
[INFO] | +- org.jboss.logging:jboss-logging-annotations:jar:2.1.0.Final:compile
[INFO] | +- org.jboss.threads:jboss-threads:jar:3.0.0.Beta4:compile
[INFO] | +- org.jboss.slf4j:slf4j-jboss-logging:jar:1.2.0.Final:compile
[INFO] | +- org.graalvm.sdk:graal-sdk:jar:19.0.2:compile
[INFO] | +- org.wildfly.common:wildfly-common:jar:1.5.0.Final-format-001:compile
[INFO] | +- org.wildfly.security:wildfly-elytron-ssl:jar:2.0.0.Alpha4:compile
[INFO] | | +- org.wildfly.security:wildfly-elytron-auth-server:jar:2.0.0.Alpha4:compile
[INFO] | | | \- org.wildfly.security:wildfly-elytron-permission:jar:2.0.0.Alpha4:compile
[INFO] | | +- org.wildfly.security:wildfly-elytron-base:jar:2.0.0.Alpha4:compile
[INFO] | | +- org.wildfly.security:wildfly-elytron-credential:jar:2.0.0.Alpha4:compile
[INFO] | | | +- org.wildfly.security:wildfly-elytron-keystore:jar:2.0.0.Alpha4:compile
[INFO] | | | \- org.wildfly.security:wildfly-elytron-provider-util:jar:2.0.0.Alpha4:compile
[INFO] | | +- org.wildfly.security:wildfly-elytron-auth:jar:2.0.0.Alpha4:compile
[INFO] | | +- org.wildfly.security:wildfly-elytron-util:jar:2.0.0.Alpha4:compile
[INFO] | | \- org.wildfly.security:wildfly-elytron-x500:jar:2.0.0.Alpha4:compile
[INFO] | \- org.wildfly.security:wildfly-elytron-x500-cert:jar:2.0.0.Alpha4:compile
[INFO] | +- org.wildfly.security:wildfly-elytron-asn1:jar:2.0.0.Alpha4:compile
[INFO] | \- org.wildfly.security:wildfly-elytron-x500-cert-util:jar:2.0.0.Alpha4:compile
[INFO] \- io.rest-assured:rest-assured:jar:3.3.0:test
[INFO] +- org.codehaus.groovy:groovy:jar:2.4.15:test
[INFO] +- org.codehaus.groovy:groovy-xml:jar:2.4.15:test
[INFO] +- org.apache.httpcomponents:httpclient:jar:4.5.9:test
[INFO] | +- org.apache.httpcomponents:httpcore:jar:4.4.11:test
[INFO] | +- commons-logging:commons-logging:jar:1.2:test
[INFO] | \- commons-codec:commons-codec:jar:1.11:test
[INFO] +- org.apache.httpcomponents:httpmime:jar:4.5.3:test
[INFO] +- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] +- org.hamcrest:hamcrest-library:jar:1.3:test
[INFO] +- org.ccil.cowan.tagsoup:tagsoup:jar:1.2.1:test
[INFO] +- io.rest-assured:json-path:jar:3.3.0:test
[INFO] | +- org.codehaus.groovy:groovy-json:jar:2.4.15:test
[INFO] | \- io.rest-assured:rest-assured-common:jar:3.3.0:test
[INFO] \- io.rest-assured:xml-path:jar:3.3.0:test
[INFO] +- javax.xml.bind:jaxb-api:jar:2.3.1:compile
[INFO] \- org.apache.sling:org.apache.sling.javax.activation:jar:0.1.0:test
Edit 2: adding the full stacktrance
2019-08-06 14:44:07,908 INFO [io.qua.dep.QuarkusAugmentor] (main) Beginning quarkus augmentation
2019-08-06 14:44:09,055 INFO [io.qua.dep.QuarkusAugmentor] (main) Quarkus augmentation completed in 1147ms
2019-08-06 14:44:10,208 INFO [com.agf.orb.orm.LifecycleManager] (main) Bootstrap proxy on /127.0.0.1:8888
2019-08-06 14:44:10,346 INFO [com.agf.orb.orm.LifecycleManager] (main) Loaded config file from D:/dev/tmp/chaos.conf
2019-08-06 14:44:10,346 INFO [com.agf.orb.orm.LifecycleManager] (main) Chaos Proxy started. Read/Write/Delete configuration via GET|PUT|DELETE /resources/chaos/conf.
2019-08-06 14:44:10,348 INFO [io.quarkus] (main) Quarkus 0.19.1 started in 2.657s. Listening on: http://[::]:18080
2019-08-06 14:44:10,349 INFO [io.quarkus] (main) Installed features: [cdi, resteasy, resteasy-jsonb]
2019-08-06 14:44:18,744 ERROR [org.lit.pro.imp.ClientToProxyConnection] (LittleProxy-0-ClientToProxyWorker-0) (AWAITING_INITIAL) [id: 0x95348e38, L:/127.0.0.1:8888 - R:/127.0.0.1:63611]: Caught an exception on ClientToProxyConnection: java.lang.NoSuchMethodError: com.google.common.net.HostAndPort.getHostText()Ljava/lang/String;
at org.littleshoot.proxy.impl.ProxyToServerConnection.addressFor(ProxyToServerConnection.java:961)
at org.littleshoot.proxy.impl.ProxyToServerConnection.setupConnectionParameters(ProxyToServerConnection.java:832)
at org.littleshoot.proxy.impl.ProxyToServerConnection.<init>(ProxyToServerConnection.java:199)
at org.littleshoot.proxy.impl.ProxyToServerConnection.create(ProxyToServerConnection.java:173)
at org.littleshoot.proxy.impl.ClientToProxyConnection.doReadHTTPInitial(ClientToProxyConnection.java:300)
at org.littleshoot.proxy.impl.ClientToProxyConnection.readHTTPInitial(ClientToProxyConnection.java:206)
at org.littleshoot.proxy.impl.ClientToProxyConnection.readHTTPInitial(ClientToProxyConnection.java:80)
at org.littleshoot.proxy.impl.ProxyConnection.readHTTP(ProxyConnection.java:135)
at org.littleshoot.proxy.impl.ProxyConnection.read(ProxyConnection.java:120)
at org.littleshoot.proxy.impl.ProxyConnection.channelRead0(ProxyConnection.java:587)
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:345)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:337)
at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:345)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:337)
at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)
at org.littleshoot.proxy.impl.ProxyConnection$RequestReadMonitor.channelRead(ProxyConnection.java:715)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:345)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:337)
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:323)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:297)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:345)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:337)
at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)
at org.littleshoot.proxy.impl.ProxyConnection$BytesReadMonitor.channelRead(ProxyConnection.java:692)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:345)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:337)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1408)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:345)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:930)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:677)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:612)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:529)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:491)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:905)
at java.lang.Thread.run(Thread.java:748)
I was able to get past the problem you describe by adding:
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>20.0</version>
</dependency>
in Maven's dependencyManagement section (after littleproxy).
Note that this will likely change in the future since guava is a transient dependency of maven-embedder, but the codebase of that dependency has since been updated to remove guava so Quarkus needs to pick up the new version
Using Apache Maven 3.3.9. I have a project that pulls some spring dependencies transitively. This is what I get:
$ mvn dependency:tree -Dverbose|grep spring-c
[INFO] | | +- org.springframework:spring-context:jar:4.3.1.RELEASE:compile
[INFO] | | | | \- (org.springframework:spring-core:jar:4.3.1.RELEASE:compile - omitted for duplicate)
[INFO] | | | | \- (org.springframework:spring-core:jar:4.3.1.RELEASE:compile - omitted for duplicate)
[INFO] | | | +- (org.springframework:spring-core:jar:4.3.1.RELEASE:compile - omitted for duplicate)
[INFO] | | | \- (org.springframework:spring-core:jar:4.3.1.RELEASE:compile - omitted for duplicate)
[INFO] | | | +- (org.springframework:spring-context:jar:4.3.1.RELEASE:compile - omitted for duplicate)
[INFO] | | | +- (org.springframework:spring-core:jar:4.3.1.RELEASE:compile - omitted for duplicate)
[INFO] | | | | +- (org.springframework:spring-context:jar:4.3.1.RELEASE:compile - omitted for duplicate)
[INFO] | | | | \- (org.springframework:spring-core:jar:4.3.1.RELEASE:compile - omitted for duplicate)
[INFO] | | | \- (org.springframework:spring-core:jar:4.3.1.RELEASE:compile - omitted for duplicate)
[INFO] | | | +- (org.springframework:spring-core:jar:4.3.1.RELEASE:compile - omitted for duplicate)
[INFO] | | | +- (org.springframework:spring-core:jar:4.3.1.RELEASE:compile - omitted for duplicate)
All above are compile scope, so all should be included. However, for some reason, spring-core is being completely omitted.
Strange enough, this looks like a depth problem. As you can see above the main project has dependency A that has dependency B that includes spring-context. Set up this way, it does not pull spring-core.
However, if I also include dependency B in my project pom directly in <dependency> (i.e. instead of relying A to transitively include B), it pulls spring-core as expected:
$ mvn dependency:tree -Dverbose|grep spring-c
[INFO] | +- org.springframework:spring-context:jar:4.3.1.RELEASE:compile
[INFO] | | | \- (org.springframework:spring-core:jar:4.3.1.RELEASE:compile - omitted for duplicate)
[INFO] | | | \- (org.springframework:spring-core:jar:4.3.1.RELEASE:compile - omitted for duplicate)
[INFO] | | +- org.springframework:spring-core:jar:4.3.1.RELEASE:compile
[INFO] | | \- (org.springframework:spring-core:jar:4.3.1.RELEASE:compile - omitted for duplicate)
[INFO] | | +- (org.springframework:spring-context:jar:4.3.1.RELEASE:compile - omitted for duplicate)
[INFO] | | +- (org.springframework:spring-core:jar:4.3.1.RELEASE:compile - omitted for duplicate)
[INFO] | | | +- (org.springframework:spring-context:jar:4.3.1.RELEASE:compile - omitted for duplicate)
[INFO] | | | \- (org.springframework:spring-core:jar:4.3.1.RELEASE:compile - omitted for duplicate)
[INFO] | | \- (org.springframework:spring-core:jar:4.3.1.RELEASE:compile - omitted for duplicate)
[INFO] | | +- (org.springframework:spring-core:jar:4.3.1.RELEASE:compile - omitted for duplicate)
[INFO] | | +- (org.springframework:spring-core:jar:4.3.1.RELEASE:compile - omitted for duplicate)
As you can see in row 4 of the maven output, spring-core is now included. That is, moving spring-context one level up seems to cause it's spring-core dependency to be pulled in.
Any idea why this is happening?