Maven - how to delete contents of a folder during a clean phase?

后端 未结 5 742
迷失自我
迷失自我 2021-01-01 08:32

in my project I have a folder called war. It is initially empty and it\'s under version control. The folder gets populated by Maven during its package

5条回答
  •  囚心锁ツ
    2021-01-01 09:31

    Add this includes section to your fileset definition

    
        
            
                org.apache.maven.plugins
                maven-clean-plugin
                2.4.1
                
                    
                        
                            war
                            
                                **/*
                            
                            false
                        
                    
                
            
        
    
    

提交回复
热议问题