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

后端 未结 5 784
迷失自我
迷失自我 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:10

    If you wan to delete more than one directory recursively:

        
                maven-clean-plugin
                3.0.0
                
                    
                        auto-clean
                        clean
                        
                            clean
                        
                        
                            
                                
                                    ${basedir}
                                    **/dir1/**
                                
                                
                                    ${basedir}
                                    **/dir2/**
                                
                                
                                    ${basedir}
                                    **/dir3/**
                                
                            
                        
                    
                
            
    

提交回复
热议问题