unable to locate spring namespacehandler.
查询资料说在导出时多个spring文件相互覆盖了spring.handlers,spring.schemas,spring.tooling引起的,所以我们要做的就是合并这些配置文件,而不是覆盖他们。
2. 解决办法,用maven-shade-plugin
3. shade插件注意要用适当的版本,刚开始用2.1版本,老时报Noclassfound Dependency Node, 后来用2.1版本就好了。
Maven官方的解释如下:
AetherClassNotFound
- Added by Hervé Boutemy, last edited by Hervé Boutemy on Sep 28, 2013
(view change) - show comment
java.lang.NoClassDefFoundError: org/sonatype/aether/*
Caused by: java.lang.ClassNotFoundException: org.sonatype.aether.*
|
This error is caused by Maven 3.1-alpha-1 migration from Sonatype Aether to Eclipse Aether (MNG-5354), which is an incompatible change for some plugins.
To support this change, new versions of the affected plugins have been published which work both with Maven 3.0.x and 3.1.x:
groupId |
artifactId |
affected goal |
Plugin Name |
Compatible Version |
Related Issues |
---|---|---|---|---|---|
com.google.appengine | appengine-maven-plugin | | 1.8.3 (Maven 3.1.x required) | ||
org.apache.maven.plugins | maven-dependency-plugin | tree | 2.8 | ||
org.apache.maven.plugins | maven-enforcer-plugin | | 1.3 | | |
org.apache.maven.plugins | maven-project-info-reports-plugin | dependencies | 2.7 | ||
org.apache.maven.plugins | maven-shade-plugin | shade | 2.1 | ||
org.apache.maven.plugins | maven-site-plugin | site | 3.3 | ||
org.codehaus.mojo | nbm-maven-plugin | | 3.11 | ||
org.codehaus.mojo | sonar-maven-plugin | sonar | 2.1 | ||
| | 0.18.1 | |||
org.twdata.maven | mojo-executor | All the library | 2.1.0 |