axis2 maven example

后端 未结 4 1404
忘掉有多难
忘掉有多难 2020-12-29 05:55

I try to use axis2 (1.5.1) version to generate java codes from wsdl files, but I can\'t figure out what is the correct pom.xml


    

        
4条回答
  •  抹茶落季
    2020-12-29 06:52

    It's maybe not optimal but the following pom.xml seems to allow the generated code to be compiled:

    
      4.0.0
      com.stackoverflow
      Q2888422
      1.0-SNAPSHOT
      ...
      
        
          org.apache.axis2
          axis2
          1.5.1
        
        
          org.apache.ws.commons.axiom
          axiom-api
          1.2.6
        
        
          org.apache.ws.commons.axiom
          axiom-impl
          1.2.6
        
        
          axis
          axis-wsdl4j
          1.5.1
        
        
          org.apache.xmlbeans
          xmlbeans
          2.3.0
        
        ...
      
      
        
          
            org.apache.axis2
            axis2-wsdl2code-maven-plugin
            1.5.1
            
              
                
                  wsdl2code
                
                
                  src/main/resources/wsdl/stockquote.wsdl
                  xmlbeans
                  a.bc
                
              
            
          
        
      
    
    

    This pom.xml is the result or try and error plus some googling, I couldn't find a single official or unofficial resource with a working setup. Seriously, why the hell is it so hard to setup an Axis2 project? One more reason I don't like Axis.

提交回复
热议问题