Using jaxws-maven-plugin with -clientjar option

前端 未结 2 1579
执笔经年
执笔经年 2021-01-20 12:06

I\'m using jaxws-maven-plugin to execute wsimport for a web service consumer app. I\'m using the -clientjar option on wsimport which was introduced with JAX-WS

2条回答
  •  滥情空心
    2021-01-20 12:24

    The documentation for this plugin is a joke. A workaround is to manually extract the contents from the client jar after it is created like follows:

    
        
            
                
                org.jvnet.jax-ws-commons
                jaxws-maven-plugin
                2.3
                
                    
                        
                            wsimport
                        
                        
                            
                                -clientjar
                                ${project.build.directory}/wsimport-client.jar
                            
                            
                                https://webservice.com/service.wsdl
                            
                        
                    
                
                
                    2.1
                    true
                
            
            
                
                org.apache.maven.plugins
                maven-antrun-plugin
                1.7
                
                    
                        process-resources
                        
                            
                                
                            
                        
                        
                            run
                        
                    
                
            
        
    
    

    taken from here: https://gist.github.com/mpellegrini/5439304

提交回复
热议问题