005.使用maven插件cxf-codegen-plugin生成WebService代理类代码

1.在pom.xml中配置cxf-codegen-plugin插件


                org.apache.cxf
                cxf-codegen-plugin
                ${cxf.version}
                
                    
                        
                        generate-sources-client1
                        generate-sources
                        
                            
                            src/main/java
                            
                                
                                    
                                    http://localhost:8090/project-name/MyFirstService?wsdl
                                    
                                    
                                        com.airkisser.client.first_client
                                    
                                    
                                    true
                                
                            
                        
                        
                            wsdl2java
                        
                    
                    
                        
                        generate-sources-client2
                        generate-sources
                        
                            
                            src/main/java
                            
                                
                                    
                                    http://localhost:8090/project-name/MySecondService?wsdl
                                    
                                    
                                        com.airkisser.client.second_client
                                    
                                    
                                    true
                                
                            
                        
                        
                            wsdl2java
                        
                    
                
            

2.配置maven任务,然后运行即可生成代理类

005.使用maven插件cxf-codegen-plugin生成WebService代理类代码_第1张图片
image.png

你可能感兴趣的:(005.使用maven插件cxf-codegen-plugin生成WebService代理类代码)