Maven jar包冲突解决

Caused by: java.lang.ClassNotFoundException: org.springframework.web.context.support.StandardServletEnvironment
Stopping available components
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at com.taobao.pandora.boot.loader.ReLaunchURLClassLoader.doLoadClass(ReLaunchURLClassLoader.java:161)
	at com.taobao.pandora.boot.loader.ReLaunchURLClassLoader.loadClass(ReLaunchURLClassLoader.java:125)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 12 more
Exception in thread "main" java.lang.RuntimeException: An exception occurred while running. null
	at com.taobao.pandora.boot.loader.IsolatedThreadGroup.rethrowUncaughtException(IsolatedThreadGroup.java:28)
	at com.taobao.pandora.boot.loader.ReLaunchMainLauncher.reLaunch(ReLaunchMainLauncher.java:102)
	at com.taobao.pandora.boot.loader.ReLaunchMainLauncher.launch(ReLaunchMainLauncher.java:72)
	at com.taobao.pandora.boot.PandoraBootstrap.run(PandoraBootstrap.java:44)
	at com.taobao.ase.ClientApplication.main(ClientApplication.java:40)
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.taobao.pandora.boot.loader.LaunchRunner.run(LaunchRunner.java:38)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoClassDefFoundError: org/springframework/web/context/support/StandardServletEnvironment
	at org.springframework.boot.SpringApplication.getOrCreateEnvironment(SpringApplication.java:437)
	at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:336)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:309)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1187)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1176)
	at com.taobao.ase.ClientApplication.main(ClientApplication.java:41)
	... 6 more
Caused by: java.lang.ClassNotFoundException: org.springframework.web.context.support.StandardServletEnvironment
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at com.taobao.pandora.boot.loader.ReLaunchURLClassLoader.doLoadClass(ReLaunchURLClassLoader.java:161)
	at com.taobao.pandora.boot.loader.ReLaunchURLClassLoader.loadClass(ReLaunchURLClassLoader.java:125)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 12 more

先贴异常,如上所示,在网上搜了一下,排除了maven 依赖jar包没有引入的问题,怀疑是jar包冲突导致

执行 mvn dependency:tree -Dverbose 打出所有依赖,如下,发现jar包冲突。

ali-186590dd05f5:promotion_assistant tangcunzhou$ mvn dependency:tree -Dverbose 
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.taobao.ase:promotion_assistant:jar:1.0-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.taobao.pandora:taobao-hsf.sar:jar -> duplicate declaration of version (?) @ line 47, column 17
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.fasterxml.jackson.core:jackson-annotations:jar -> version 2.6.0 vs 2.9.3 @ line 76, column 17
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO] 
[INFO] -----------------< com.taobao.ase:promotion_assistant >-----------------
[INFO] Building promotion_assistant 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ promotion_assistant ---
[INFO] com.taobao.ase:promotion_assistant:jar:1.0-SNAPSHOT
[INFO] +- junit:junit:jar:4.12:compile
[INFO] |  \- org.hamcrest:hamcrest-core:jar:1.3:compile
[INFO] +- com.taobao.pandora:taobao-hsf.sar:jar:2017-09-stable:compile
[INFO] |  +- com.taobao.pandora.plugin:acl.plugin:jar:1.2.41:compile
[INFO] |  +- com.taobao.pandora.plugin:alimonitor-jmonitor:jar:1.2.5:compile
[INFO] |  +- com.taobao.pandora.plugin:buc.sso.client.plugin:jar:0.7.18:compile
[INFO] |  +- com.taobao.pandora.plugin:config-client:jar:1.9.2:compile
[INFO] |  +- com.taobao.pandora.plugin:diamond-client:jar:3.8.3:compile
[INFO] |  +- com.taobao.pandora.plugin:eagleeye-core:jar:1.6.3:compile
[INFO] |  +- com.taobao.pandora.plugin:filesync-client:jar:1.0.8:compile
[INFO] |  +- com.taobao.pandora.plugin:hsf:jar:2.2.3.5:compile
[INFO] |  +- com.taobao.pandora.plugin:hsf-mock:jar:1.0.3.2:compile
[INFO] |  +- com.taobao.pandora.plugin:hsf-notify-client:jar:3.2.2:compile
[INFO] |  +- com.taobao.pandora.plugin:live-profiler-pandora:jar:1.0.3:compile
[INFO] |  +- com.taobao.pandora.plugin:metaq-client:jar:4.1.4.Final:compile
[INFO] |  +- com.taobao.pandora.plugin:metrics:jar:1.6.3:compile
[INFO] |  +- com.taobao.pandora.plugin:monitor:jar:1.2.1:compile
[INFO] |  +- com.taobao.pandora.plugin:mtop-uncenter:jar:1.0.3.0:compile
[INFO] |  +- com.taobao.pandora.plugin:notify-tr-client:jar:3.3.6:compile
[INFO] |  +- com.taobao.pandora.plugin:ons-sdk:jar:1.3.1:compile
[INFO] |  +- com.taobao.pandora.plugin:pandolet:jar:1.0.2:compile
[INFO] |  +- com.taobao.pandora.plugin:pandora-framework:jar:2.1.8.1:compile
[INFO] |  +- com.taobao.pandora.plugin:pandora-qos-service:jar:2.1.6.3:compile
[INFO] |  +- com.taobao.pandora.plugin:rocketmq-client:jar:4.1.2:compile
[INFO] |  +- com.taobao.pandora.plugin:spas-sdk-client:jar:1.2.5:compile
[INFO] |  +- com.taobao.pandora.plugin:spas-sdk-service:jar:1.2.5:compile
[INFO] |  +- com.taobao.pandora.plugin:switch:jar:2.1.0.4:compile
[INFO] |  +- com.taobao.pandora.plugin:tair-plugin:jar:2.2.29:compile
[INFO] |  +- com.taobao.pandora.plugin:tbsession:jar:3.1.3.2:compile
[INFO] |  +- com.taobao.pandora.plugin:tddl-client:jar:5.2.2-8:compile
[INFO] |  +- com.taobao.pandora.plugin:unitrouter:jar:1.1.3:compile
[INFO] |  +- com.taobao.pandora.plugin:vipserver-client:jar:4.6.9:compile
[INFO] |  \- com.taobao.pandora:taobao-hsf.sar-container:jar:2017-09-stable:compile
[INFO] +- com.alibaba.boot:pandora-hsf-spring-boot-starter:jar:2017-09-stable:compile
[INFO] |  +- com.taobao.pandora:pandora-boot-starter-hsf:jar:2017-09-stable:compile
[INFO] |  |  +- com.taobao.pandora:pandora-boot-starter:jar:2017-09-stable:compile
[INFO] |  |  |  +- (com.alibaba.middleware:sdk:jar:2017-09-stable:compile - omitted for duplicate)
[INFO] |  |  |  \- com.taobao.pandora:pandora-boot-bootstrap:jar:2.1.7.7:compile
[INFO] |  |  |     +- com.taobao.pandora:pandora-boot-common:jar:2.1.7.7:compile
[INFO] |  |  |     +- com.taobao.pandora:pandora-boot-loader:jar:2.1.7.7:compile
[INFO] |  |  |     |  +- com.taobao.pandora:pandora-boot-version:jar:2.1.7.7:compile
[INFO] |  |  |     |  \- com.taobao.pandora:pandora.archive:jar:2.1.7.1:compile
[INFO] |  |  |     +- com.taobao.pandora:pandora-boot-autoconf:jar:2.1.7.7:compile
[INFO] |  |  |     |  \- (com.taobao.pandora:pandora-boot-common:jar:2.1.7.7:compile - omitted for duplicate)
[INFO] |  |  |     \- (com.taobao.middleware:logger.api:jar:0.2.0:compile - version managed from 0.2.3; omitted for duplicate)
[INFO] |  |  +- (com.taobao.pandora:taobao-hsf.sar-container:jar:2017-09-stable:compile - omitted for duplicate)
[INFO] |  |  +- (com.taobao.pandora.plugin:metrics:jar:1.6.3:compile - omitted for duplicate)
[INFO] |  |  +- (com.taobao.pandora.plugin:pandolet:jar:1.0.2:compile - omitted for duplicate)
[INFO] |  |  +- (com.taobao.pandora.plugin:pandora-qos-service:jar:2.1.6.3:compile - omitted for duplicate)
[INFO] |  |  +- (com.taobao.pandora.plugin:unitrouter:jar:1.1.3:compile - omitted for duplicate)
[INFO] |  |  +- (com.taobao.pandora.plugin:hsf:jar:2.2.3.5:compile - omitted for duplicate)
[INFO] |  |  +- (com.taobao.pandora.plugin:diamond-client:jar:3.8.3:compile - omitted for duplicate)
[INFO] |  |  +- (com.taobao.pandora.plugin:config-client:jar:1.9.2:compile - omitted for duplicate)
[INFO] |  |  +- (com.taobao.pandora.plugin:eagleeye-core:jar:1.6.3:compile - omitted for duplicate)
[INFO] |  |  +- (com.taobao.pandora.plugin:vipserver-client:jar:4.6.9:compile - omitted for duplicate)
[INFO] |  |  +- (com.taobao.pandora.plugin:spas-sdk-service:jar:1.2.5:compile - omitted for duplicate)
[INFO] |  |  \- (com.taobao.pandora.plugin:spas-sdk-client:jar:1.2.5:compile - omitted for duplicate)
[INFO] |  +- org.springframework.boot:spring-boot-starter:jar:1.4.7.RELEASE:compile
[INFO] |  |  +- org.springframework.boot:spring-boot:jar:1.4.7.RELEASE:compile
[INFO] |  |  |  +- (org.springframework:spring-core:jar:4.3.9.RELEASE:compile - omitted for duplicate)
[INFO] |  |  |  \- org.springframework:spring-context:jar:4.3.9.RELEASE:compile
[INFO] |  |  |     +- org.springframework:spring-aop:jar:4.3.9.RELEASE:compile
[INFO] |  |  |     |  +- (org.springframework:spring-beans:jar:4.3.9.RELEASE:compile - omitted for duplicate)
[INFO] |  |  |     |  \- (org.springframework:spring-core:jar:4.3.9.RELEASE:compile - omitted for duplicate)
[INFO] |  |  |     +- org.springframework:spring-beans:jar:4.3.9.RELEASE:compile
[INFO] |  |  |     |  \- (org.springframework:spring-core:jar:4.3.9.RELEASE:compile - omitted for duplicate)
[INFO] |  |  |     +- (org.springframework:spring-core:jar:4.3.9.RELEASE:compile - omitted for duplicate)
[INFO] |  |  |     \- org.springframework:spring-expression:jar:4.3.9.RELEASE:compile
[INFO] |  |  |        \- (org.springframework:spring-core:jar:4.3.9.RELEASE:compile - omitted for duplicate)
[INFO] |  |  +- org.springframework.boot:spring-boot-autoconfigure:jar:1.4.7.RELEASE:compile
[INFO] |  |  |  \- (org.springframework.boot:spring-boot:jar:1.4.7.RELEASE:compile - omitted for duplicate)
[INFO] |  |  +- org.springframework.boot:spring-boot-starter-logging:jar:1.4.7.RELEASE:compile
[INFO] |  |  |  +- ch.qos.logback:logback-classic:jar:1.1.11:compile
[INFO] |  |  |  |  +- ch.qos.logback:logback-core:jar:1.1.11:compile
[INFO] |  |  |  |  \- (org.slf4j:slf4j-api:jar:1.7.22:compile - omitted for conflict with 1.7.25)
[INFO] |  |  |  +- org.slf4j:jcl-over-slf4j:jar:1.7.25:compile
[INFO] |  |  |  |  \- (org.slf4j:slf4j-api:jar:1.7.25:compile - omitted for conflict with 1.7.22)
[INFO] |  |  |  +- org.slf4j:jul-to-slf4j:jar:1.7.25:compile
[INFO] |  |  |  |  \- (org.slf4j:slf4j-api:jar:1.7.25:compile - omitted for conflict with 1.7.22)
[INFO] |  |  |  \- org.slf4j:log4j-over-slf4j:jar:1.7.25:compile
[INFO] |  |  |     \- (org.slf4j:slf4j-api:jar:1.7.25:compile - omitted for conflict with 1.7.22)
[INFO] |  |  +- org.springframework:spring-core:jar:4.3.9.RELEASE:compile
[INFO] |  |  \- org.yaml:snakeyaml:jar:1.17:runtime
[INFO] |  \- com.alibaba.boot:pandora-hsf-spring-boot-autoconfigure:jar:2017-09-stable:compile
[INFO] |     +- com.alibaba.middleware:sdk:jar:2017-09-stable:compile
[INFO] |     |  +- com.alibaba.middleware:acl.plugin-sdk:jar:1.2.41--2017-09-stable:compile
[INFO] |     |  +- com.alibaba.middleware:alimonitor-jmonitor-sdk:jar:1.2.5--2017-09-stable:compile
[INFO] |     |  +- com.alibaba.middleware:buc.sso.client.plugin-sdk:jar:0.7.18--2017-09-stable:compile
[INFO] |     |  +- com.alibaba.middleware:config-client-sdk:jar:1.9.2--2017-09-stable:compile
[INFO] |     |  +- com.alibaba.middleware:diamond-client-sdk:jar:3.8.3--2017-09-stable:compile
[INFO] |     |  +- com.alibaba.middleware:eagleeye-core-sdk:jar:1.6.3--2017-09-stable:compile
[INFO] |     |  +- com.alibaba.middleware:filesync-client-sdk:jar:1.0.8--2017-09-stable:compile
[INFO] |     |  +- com.alibaba.middleware:hsf-sdk:jar:2.2.3.5--2017-09-stable:compile
[INFO] |     |  +- com.alibaba.middleware:hsf-notify-client-sdk:jar:3.2.2--2017-09-stable:compile
[INFO] |     |  +- com.alibaba.middleware:live-profiler-pandora-sdk:jar:1.0.3--2017-09-stable:compile
[INFO] |     |  +- com.alibaba.middleware:metaq-client-sdk:jar:4.1.4.Final--2017-09-stable:compile
[INFO] |     |  +- com.alibaba.middleware:metrics-sdk:jar:1.6.3--2017-09-stable:compile
[INFO] |     |  +- com.alibaba.middleware:monitor-sdk:jar:1.2.1--2017-09-stable:compile
[INFO] |     |  +- com.alibaba.middleware:mtop-uncenter-sdk:jar:1.0.3.0--2017-09-stable:compile
[INFO] |     |  +- com.alibaba.middleware:notify-tr-client-sdk:jar:3.3.6--2017-09-stable:compile
[INFO] |     |  +- com.alibaba.middleware:ons-sdk-sdk:jar:1.3.1--2017-09-stable:compile
[INFO] |     |  +- com.alibaba.middleware:pandolet-sdk:jar:1.0.2--2017-09-stable:compile
[INFO] |     |  +- com.alibaba.middleware:pandora-framework-sdk:jar:2.1.8.1--2017-09-stable:compile
[INFO] |     |  +- com.alibaba.middleware:pandora-qos-service-sdk:jar:2.1.6.3--2017-09-stable:compile
[INFO] |     |  +- com.alibaba.middleware:rocketmq-client-sdk:jar:4.1.2--2017-09-stable:compile
[INFO] |     |  +- com.alibaba.middleware:spas-sdk-client-sdk:jar:1.2.5--2017-09-stable:compile
[INFO] |     |  +- com.alibaba.middleware:spas-sdk-service-sdk:jar:1.2.5--2017-09-stable:compile
[INFO] |     |  +- com.alibaba.middleware:switch-sdk:jar:2.1.0.4--2017-09-stable:compile
[INFO] |     |  +- com.alibaba.middleware:tair-plugin-sdk:jar:2.2.29--2017-09-stable:compile
[INFO] |     |  +- com.alibaba.middleware:tbsession-sdk:jar:3.1.3.2--2017-09-stable:compile
[INFO] |     |  +- com.alibaba.middleware:tddl-client-sdk:jar:5.2.2-8--2017-09-stable:compile
[INFO] |     |  +- com.alibaba.middleware:unitrouter-sdk:jar:1.1.3--2017-09-stable:compile
[INFO] |     |  \- com.alibaba.middleware:vipserver-client-sdk:jar:4.6.9--2017-09-stable:compile
[INFO] |     +- (org.springframework.boot:spring-boot-autoconfigure:jar:1.4.7.RELEASE:compile - omitted for duplicate)
[INFO] |     \- org.slf4j:slf4j-api:jar:1.7.25:compile
[INFO] +- org.mybatis.spring.boot:mybatis-spring-boot-starter:jar:1.1.1:compile
[INFO] |  \- org.mybatis.spring.boot:mybatis-spring-boot-autoconfigure:jar:1.1.1:compile
[INFO] |     +- org.mybatis:mybatis:jar:3.4.0:compile
[INFO] |     +- org.mybatis:mybatis-spring:jar:1.3.0:compile
[INFO] |     +- (org.springframework.boot:spring-boot:jar:1.3.3.RELEASE:compile - omitted for conflict with 1.4.7.RELEASE)
[INFO] |     +- (org.springframework.boot:spring-boot-autoconfigure:jar:1.3.3.RELEASE:compile - omitted for conflict with 1.4.7.RELEASE)
[INFO] |     \- org.springframework.boot:spring-boot-starter-jdbc:jar:1.3.3.RELEASE:compile
[INFO] |        +- (org.springframework.boot:spring-boot-starter:jar:1.3.3.RELEASE:compile - omitted for conflict with 1.4.7.RELEASE)
[INFO] |        +- org.apache.tomcat:tomcat-jdbc:jar:8.0.32:compile
[INFO] |        |  \- org.apache.tomcat:tomcat-juli:jar:8.0.32:compile
[INFO] |        \- org.springframework:spring-jdbc:jar:4.2.5.RELEASE:compile
[INFO] |           +- (org.springframework:spring-beans:jar:4.2.5.RELEASE:compile - omitted for conflict with 4.3.9.RELEASE)
[INFO] |           +- (org.springframework:spring-core:jar:4.2.5.RELEASE:compile - omitted for conflict with 4.3.9.RELEASE)
[INFO] |           \- org.springframework:spring-tx:jar:4.2.5.RELEASE:compile
[INFO] |              +- (org.springframework:spring-beans:jar:4.2.5.RELEASE:compile - omitted for conflict with 4.3.9.RELEASE)
[INFO] |              \- (org.springframework:spring-core:jar:4.2.5.RELEASE:compile - omitted for conflict with 4.3.9.RELEASE)
[INFO] +- com.fasterxml.jackson.core:jackson-annotations:jar:2.9.3:compile
[INFO] +- org.apache.httpcomponents:httpclient:jar:4.3.6:compile
[INFO] |  +- org.apache.httpcomponents:httpcore:jar:4.3.3:compile
[INFO] |  +- commons-logging:commons-logging:jar:1.1.3:compile
[INFO] |  \- commons-codec:commons-codec:jar:1.6:compile
[INFO] +- com.alibaba:fastjson:jar:1.2.31:compile
[INFO] +- com.fasterxml.jackson.core:jackson-databind:jar:2.9.3:compile
[INFO] |  +- (com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0:compile - omitted for conflict with 2.9.3)
[INFO] |  \- (com.fasterxml.jackson.core:jackson-core:jar:2.9.3:compile - omitted for duplicate)
[INFO] +- com.fasterxml.jackson.core:jackson-core:jar:2.9.3:compile
[INFO] +- com.taobao.tddl:tddl-client:jar:5.2.5:compile
[INFO] |  +- com.taobao.tddl:tddl-matrix:jar:5.2.5:compile
[INFO] |  |  +- com.taobao.tddl:tddl-common:jar:5.2.5:compile
[INFO] |  |  |  +- (commons-lang:commons-lang:jar:2.6:compile - version managed from 2.4; omitted for duplicate)
[INFO] |  |  |  +- commons-io:commons-io:jar:2.4:compile
[INFO] |  |  |  +- (com.google.guava:guava:jar:19.0:compile - omitted for duplicate)
[INFO] |  |  |  +- (com.alibaba:fastjson:jar:1.2.44:compile - omitted for conflict with 1.2.31)
[INFO] |  |  |  +- org.jdom:jdom:jar:2.0.2:compile
[INFO] |  |  |  +- commons-beanutils:commons-beanutils:jar:1.9.3:compile
[INFO] |  |  |  |  \- (commons-collections:commons-collections:jar:3.2.2:compile - omitted for conflict with 3.2.1)
[INFO] |  |  |  \- (commons-logging:commons-logging:jar:1.1.3:compile - omitted for duplicate)
[INFO] |  |  +- com.taobao.tddl:tddl-optimizer:jar:5.2.5:compile
[INFO] |  |  |  +- (com.taobao.tddl:tddl-common:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |  |  +- com.taobao.tddl:tddl-rule:jar:5.2.5:compile
[INFO] |  |  |  |  +- (com.taobao.tddl:tddl-common:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |  |  |  +- (com.taobao.tddl:tddl-monitor:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |  |  |  +- (com.taobao.tddl:tddl-config:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |  |  |  +- (com.taobao.tddl:tddl-net:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |  |  |  +- (org.springframework:spring-core:jar:2.5.6.SEC03:compile - omitted for conflict with 4.3.9.RELEASE)
[INFO] |  |  |  |  +- (org.springframework:spring-context:jar:2.5.6.SEC03:compile - omitted for conflict with 4.3.9.RELEASE)
[INFO] |  |  |  |  \- org.codehaus.groovy:groovy-all:jar:2.1.9:compile
[INFO] |  |  |  \- com.taobao.tddl:tddl-parser:jar:5.2.5:compile
[INFO] |  |  |     +- (com.taobao.tddl:tddl-common:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |  |     +- (com.taobao.tddl:tddl-config:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |  |     \- (org.hamcrest:hamcrest-core:jar:1.3:compile - omitted for duplicate)
[INFO] |  |  +- com.taobao.tddl:tddl-executor:jar:5.2.5:compile
[INFO] |  |  |  +- (com.taobao.tddl:tddl-optimizer:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |  |  +- (com.taobao.tddl:tddl-sequence:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |  |  +- com.taobao.tddl:tddl-net:jar:5.2.5:compile
[INFO] |  |  |  |  +- (com.taobao.tddl:tddl-common:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |  |  |  +- (org.springframework:spring-core:jar:2.5.6.SEC03:compile - omitted for conflict with 4.3.9.RELEASE)
[INFO] |  |  |  |  +- (org.springframework:spring-context:jar:2.5.6.SEC03:compile - omitted for conflict with 4.3.9.RELEASE)
[INFO] |  |  |  |  +- org.springframework:spring-web:jar:2.5.6.SEC03:compile
[INFO] |  |  |  |  |  +- (org.springframework:spring-beans:jar:2.5.6.SEC03:compile - omitted for conflict with 4.3.9.RELEASE)
[INFO] |  |  |  |  |  +- (org.springframework:spring-context:jar:2.5.6.SEC03:compile - omitted for conflict with 4.3.9.RELEASE)
[INFO] |  |  |  |  |  \- (org.springframework:spring-core:jar:2.5.6.SEC03:compile - omitted for conflict with 4.3.9.RELEASE)
[INFO] |  |  |  |  +- (org.springframework:spring-aop:jar:2.5.6.SEC03:compile - omitted for conflict with 4.3.9.RELEASE)
[INFO] |  |  |  |  \- (commons-logging:commons-logging:jar:1.1.3:compile - omitted for duplicate)
[INFO] |  |  |  +- com.sleepycat:je:jar:5.0.73:compile
[INFO] |  |  |  +- org.fusesource:sigar:jar:1.6.4:compile
[INFO] |  |  |  |  \- log4j:log4j:jar:1.2.15:compile
[INFO] |  |  |  \- com.taobao.h2database:h2:jar:1.0.0.ali.fix1:compile
[INFO] |  |  |     +- (javax.servlet:javax.servlet-api:jar:3.0.1:compile - omitted for duplicate)
[INFO] |  |  |     +- (org.slf4j:slf4j-api:jar:1.6.0:compile - omitted for conflict with 1.7.25)
[INFO] |  |  |     +- org.osgi:org.osgi.core:jar:4.2.0:compile
[INFO] |  |  |     +- org.osgi:org.osgi.enterprise:jar:4.2.0:compile
[INFO] |  |  |     \- com.vividsolutions:jts:jar:1.13:compile
[INFO] |  |  +- com.taobao.tddl:tddl-config:jar:5.2.5:compile
[INFO] |  |  |  \- (com.taobao.tddl:tddl-common:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |  +- com.taobao.tddl:tddl-monitor:jar:5.2.5:compile
[INFO] |  |  |  +- (com.taobao.tddl:tddl-common:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |  |  \- (com.taobao.tddl:tddl-config:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |  +- com.taobao.tddl:tddl-repo-mysql:jar:5.2.5:compile
[INFO] |  |  |  +- (com.taobao.tddl:tddl-common:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |  |  +- (com.taobao.tddl:tddl-executor:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |  |  +- (commons-logging:commons-logging:jar:1.1.3:compile - omitted for duplicate)
[INFO] |  |  |  +- (com.taobao.tddl:tddl-optimizer:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |  |  +- com.taobao.tddl:tddl-group:jar:5.2.5:compile
[INFO] |  |  |  |  +- (com.taobao.tddl:tddl-common:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |  |  |  +- (com.taobao.tddl:tddl-config:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |  |  |  +- (com.taobao.tddl:tddl-monitor:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |  |  |  +- com.taobao.tddl:tddl-atom:jar:5.2.5:compile
[INFO] |  |  |  |  |  +- (com.taobao.tddl:tddl-common:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |  |  |  |  +- (com.taobao.tddl:tddl-monitor:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |  |  |  |  +- (com.taobao.tddl:tddl-optimizer:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |  |  |  |  +- (com.taobao.tddl:tddl-config:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |  |  |  |  +- com.alibaba:druid:jar:1.0.25.2017103101:compile
[INFO] |  |  |  |  |  |  +- com.alibaba:jconsole:jar:1.8.0:system
[INFO] |  |  |  |  |  |  \- com.alibaba:tools:jar:1.8.0:system
[INFO] |  |  |  |  |  \- (mysql:mysql-connector-java:jar:5.1.40:compile - omitted for duplicate)
[INFO] |  |  |  |  +- com.taobao.tddl:tddl-memcached:jar:5.2.5:compile
[INFO] |  |  |  |  |  +- (com.taobao.tddl:tddl-common:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |  |  |  |  +- (com.taobao.tddl:tddl-monitor:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |  |  |  |  \- com.taobao.tddl:tmemcached:jar:2.2.6:compile
[INFO] |  |  |  |  +- (com.taobao.tddl:tddl-optimizer:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |  |  |  \- (mysql:mysql-connector-java:jar:5.1.40:compile - omitted for duplicate)
[INFO] |  |  |  \- mysql:mysql-connector-java:jar:5.1.40:compile
[INFO] |  |  +- com.taobao.tddl:tddl-repo-bdb:jar:5.2.5:compile
[INFO] |  |  |  +- (com.taobao.tddl:tddl-common:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |  |  +- (com.taobao.tddl:tddl-executor:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |  |  +- (com.taobao.tddl:tddl-optimizer:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |  |  +- (com.taobao.tddl:tddl-group:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |  |  \- (com.sleepycat:je:jar:5.0.73:compile - omitted for duplicate)
[INFO] |  |  +- com.taobao.tddl:tddl-repo-demo:jar:5.2.5:compile
[INFO] |  |  |  +- (com.taobao.tddl:tddl-common:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |  |  +- (com.taobao.tddl:tddl-executor:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |  |  +- (com.taobao.tddl:tddl-optimizer:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |  |  \- (com.taobao.tddl:tddl-group:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |  \- com.taobao.tddl:tddl-sequence:jar:5.2.5:compile
[INFO] |  |     +- (com.taobao.tddl:tddl-common:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |     +- (com.taobao.tddl:tddl-group:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |     \- (com.taobao.tddl:tddl-monitor:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  +- com.taobao.tddl:tddl-config-diamond:jar:5.2.5:compile
[INFO] |  |  +- (com.taobao.tddl:tddl-config:jar:5.2.5:compile - omitted for duplicate)
[INFO] |  |  +- com.taobao.diamond:diamond-client:jar:3.8.3:compile
[INFO] |  |  |  +- (com.taobao.diamond:diamond-utils:jar:3.2.4:compile - omitted for conflict with 3.2.7-SNAPSHOT)
[INFO] |  |  |  +- com.alibaba.middleware:metrics-core-api:jar:1.0.0:compile
[INFO] |  |  |  +- (com.google.guava:guava:jar:19.0:compile - omitted for duplicate)
[INFO] |  |  |  \- (com.taobao.spas.sdk:spas-sdk-client:jar:1.2.5:compile - omitted for duplicate)
[INFO] |  |  \- (com.alibaba:fastjson:jar:1.2.44:compile - omitted for conflict with 1.2.31)
[INFO] |  +- com.taobao.eagleeye:eagleeye-core:jar:1.5.2.3:compile
[INFO] |  |  \- javax.servlet:javax.servlet-api:jar:3.0.1:compile
[INFO] |  +- com.alibaba.unit.rule:unitrouter:jar:1.1.2:compile
[INFO] |  |  +- com.taobao.vipserver:vipserver-client:jar:4.6.9:compile
[INFO] |  |  |  +- com.alibaba.middleware:ushura:jar:1.0:compile
[INFO] |  |  |  \- (com.google.guava:guava:jar:19.0:compile - omitted for duplicate)
[INFO] |  |  \- com.taobao.middleware:logger.api:jar:0.2.0:compile
[INFO] |  +- (com.alibaba:fastjson:jar:1.2.44:compile - omitted for conflict with 1.2.31)
[INFO] |  +- com.alibaba.unit:unitrouter-ext:jar:1.0.3:compile
[INFO] |  |  \- org.apache.commons:commons-lang3:jar:3.4:compile
[INFO] |  \- com.taobao.common:fulllinkstresstesting:jar:0.9.9.3:compile
[INFO] +- org.apache.velocity:velocity:jar:1.6.3:compile
[INFO] |  +- commons-collections:commons-collections:jar:3.2.1:compile
[INFO] |  +- commons-lang:commons-lang:jar:2.6:compile
[INFO] |  \- oro:oro:jar:2.0.8:compile
[INFO] \- com.taobao.diamond:diamond-sdk:jar:2.4.4-SNAPSHOT:compile
[INFO]    +- commons-httpclient:commons-httpclient:jar:3.1:compile
[INFO]    |  +- (commons-logging:commons-logging:jar:1.0.4:compile - omitted for conflict with 1.1.3)
[INFO]    |  \- (commons-codec:commons-codec:jar:1.2:compile - omitted for conflict with 1.6)
[INFO]    +- org.springframework:spring:jar:2.5.6.SEC02:compile
[INFO]    |  \- (commons-logging:commons-logging:jar:1.1.1:compile - omitted for conflict with 1.1.3)
[INFO]    +- com.taobao.diamond:diamond-utils:jar:3.2.7-SNAPSHOT:compile
[INFO]    |  \- org.codehaus.jackson:jackson-mapper-lgpl:jar:1.9.6:compile
[INFO]    |     \- org.codehaus.jackson:jackson-core-lgpl:jar:1.9.6:compile
[INFO]    +- (commons-lang:commons-lang:jar:2.6:compile - version managed from 2.4; omitted for duplicate)
[INFO]    +- com.google.guava:guava:jar:19.0:compile
[INFO]    \- com.taobao.spas.sdk:spas-sdk-client:jar:1.2.5:compile
[INFO]       \- com.taobao.spas.sdk:spas-sdk-common:jar:1.2.5:compile
[INFO]          +- (com.alibaba:fastjson:jar:1.2.26:compile - omitted for conflict with 1.2.31)
[INFO]          \- (com.taobao.middleware:logger.api:jar:0.2.0:compile - version managed from 0.2.3; omitted for duplicate)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.348 s
[INFO] Finished at: 2018-03-28T11:19:06+08:00
[INFO] ------------------------------------------------------------------------

搜索“conflict” 发现有多处冲突,进行一一排包,例如,再次执行mvn dependency:tree -Dverbose 命令发现冲突已解决。

<dependency>
  <groupId>com.fasterxml.jackson.core</groupId>
  <artifactId>jackson-databind</artifactId>
  <version>2.9.3</version>
  <exclusions>
    <exclusion>
      <groupId>com.fasterxml.jackson.core</groupId>
      <artifactId>jackson-annotations</artifactId>
    </exclusion>
  </exclusions>
</dependency>

总结:

出现下述异常时,先查找StandardServletEnvironment 类看能否查找到,如果能则是jar包冲突,否则则是缺少依赖jar包,然后再继续对症下药。

Caused by: java.lang.ClassNotFoundException: org.springframework.web.context.support.StandardServletEnvironment

猜你喜欢

转载自blog.csdn.net/diu_brother/article/details/79724912