How can I tell jaxb / Maven to generate multiple schema packages?

前端 未结 9 1834
旧时难觅i
旧时难觅i 2020-11-28 03:16

Example:

       
       
           org.jvnet.jaxb2.maven2         


        
9条回答
  •  迷失自我
    2020-11-28 03:46

    The following works for me, after much trial

    
             org.codehaus.mojo
             jaxb2-maven-plugin
             2.1
             
                
                  xjc1
                  
                      xjc
                  
                 
                    com.mycompany.clientSummary
                   wsdl
                    
                    src/main/resources/wsdl/GetClientSummary.wsdl
                    
                    target/generated-sources/xjb
                     false
                
              
    
              
                 xjc2
                 
                     xjc
                 
                 
                    com.mycompany.wsclient.employerProfile
                    wsdl
                    
                    src/main/resources/wsdl/GetEmployerProfile.wsdl
                    
                    target/generated-sources/xjb
                    false
             
             
    
             
                xjc3
                
                    xjc
                
                
                    com.mycompany.wsclient.producersLicenseData
                    wsdl
                    
                    src/main/resources/wsdl/GetProducersLicenseData.wsdl
                    
                    target/generated-sources/xjb
                    false
                
            
    
    
         
      
    

提交回复
热议问题