What's the minimum classpath for an Axis2 client?

后端 未结 9 917
清歌不尽
清歌不尽 2021-02-01 15:24

I want to build an Axis2 client (I\'m only accessing a remote web service, I\'m not implementing one!) with Maven2 and I don\'t want to add 21MB of JARs to my project.

9条回答
  •  遥遥无期
    2021-02-01 15:48

    For those using Gradle, here I exclude unnecessary libraries:

    dependencies {
    
        ext.compileEx = { lib, exModules, exGroups ->
            compile (lib) {
                exModules.each { exclude module : "$it" }
                exGroups.each  { exclude group: "$it" }
            }
        }
    
        List axisExModules = [ 'axiom-compat', 'jaxen', 'apache-mime4j-core' ]
        List axisExGroups  = [ 'javax.servlet', 'commons-fileupload', 'org.apache.woden',
                               'javax.ws.rs', 'org.apache.geronimo.specs', 'org.codehaus.woodstox' ]
        compileEx ('org.apache.axis2:axis2-adb:1.6.3', axisExModules, axisExGroups)
        compileEx ('org.apache.axis2:axis2-transport-local:1.6.3', axisExModules, axisExGroups)
        compileEx ('org.apache.axis2:axis2-transport-http:1.6.3', axisExModules, axisExGroups)
    
    }
    

    Here is my original post in the Gradle forums.

提交回复
热议问题