maven 中使用jar包的多个版本容易造成依赖问题,解决问题的方式可以将
使用jar包的版本排除掉,比如dubbo使用netty 4.0.33版本可以将dubbo排除掉
netty依赖,这样其他jar包就不会引用到netty4.0.33版本了。
如下:
<dependency>
            <groupId>com.jd</groupId>
            <artifactId>jsf</artifactId>
            <version>1.6.0</version>
            <exclusions>
                <exclusion>
                    <groupId>io.netty</groupId>
                    <artifactId>netty-all</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
相关连接
http://chwshuang.iteye.com/blog/2069937
原文:http://www.cnblogs.com/freedommovie/p/6795045.html