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

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

    In my case I needed to delete the "bin" directory, and all it's subdirectory contents. I did this in my parent pom.xml:

    
        ${basedir}
          
            **/bin/**
           
          false
    
    

    This found any bin directory within my project, and deleted any contents of the bin folder.

提交回复
热议问题