1. 程式人生 > >xfire沖突問題解決(maven配置)

xfire沖突問題解決(maven配置)

color group microsoft OS ring exc -c org pre

1、xfire與spring沖突解決方法,將spring從maven配置中去掉:

        <!-- https://mvnrepository.com/artifact/org.codehaus.xfire/xfire-all -->
        <dependency>
            <groupId>org.codehaus.xfire</groupId>
            <artifactId>xfire-all</artifactId>
            <version>1.2.6</version>
            <exclusions>
                <exclusion>
                    <groupId>org.springframework</groupId>
                    <artifactId>spring</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

2、xfire與其他webservice的jar包沖突,maven配置文件:

        <!-- https://mvnrepository.com/artifact/org.codehaus.xfire/xfire-core -->
        <dependency>
            <groupId>org.codehaus.xfire</groupId>
            <artifactId>xfire-core</artifactId>
            <version>1.2.6</version>
        </dependency>
        <!-- https://
mvnrepository.com/artifact/org.codehaus.xfire/xfire-aegis --> <dependency> <groupId>org.codehaus.xfire</groupId> <artifactId>xfire-aegis</artifactId> <version>1.2.6</version> </dependency>

如果有用,請隨手頂一下,讓更多的人看到,謝謝!

xfire沖突問題解決(maven配置)