Multiple WSDLs Configurations With Maven JAXWS

后端 未结 2 738
别那么骄傲
别那么骄傲 2021-02-20 13:22

I need to include more than one WSDL in my Maven JAXWS configuration and I need to specify different output directories for them since some of the method names in wsdlA conflict

2条回答
  •  不思量自难忘°
    2021-02-20 13:45

    The first thing is not to configure the configuration within the pluginManagement block. In this case it's better to define the version of the plugin only in the pluginManagement block. Furthermore to fulfill your requirement you need to have two executions like this:

        
        org.jvnet.jax-ws-commons 
        jaxws-maven-plugin 
        
             
                wsdla-exec
                 
                wsimport 
                
                
                    com.mycee.project.model 
                    
                        ${basedir}/src/jaxws/wsdl/wsdla.wsdl
                    
                    ${basedir}/src/jaxws/binding
                    true
                
             
             
                wsdlb-exec
                 
                wsimport 
                
                
                    com.mycee.project.model 
                    
                        ${basedir}/src/jaxws/wsdl/wsdlb.wsdl
                    
                    ${basedir}/src/jaxws/binding
                    true
                
             
        
    
    

提交回复
热议问题