How to get Maven to run war:exploded but not war:war

后端 未结 5 1700
长情又很酷
长情又很酷 2020-12-04 16:30

I have a Maven pom that uses war. But actually, I don\'t want build the war-file, I just want all the dependent jars collect

5条回答
  •  被撕碎了的回忆
    2020-12-04 16:57

    The solution is quite simple. You need to override the default execution of the war plugin to disable it and add your own execution (for exploded):

    
        
                
                    org.apache.maven.plugins
                    maven-war-plugin
                    
                        
                            default-war
                            none
                        
                        
                            war-exploded
                            package
                            
                                exploded
                            
                        
                    
                
        
    
    

提交回复
热议问题