Copying files from my project in Maven

后端 未结 3 1802
走了就别回头了
走了就别回头了 2020-12-09 16:31

Is it possible to copy folders from my project to a certain location during some Maven phase? Does anybody know how?

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-09 17:11

    Take a look at the maven-antrun plugin. You can copy a file in any maven phase like this:

        
          maven-antrun-plugin
          1.4
          
            
              copy
              compile
              
                
                  
                
              
              
                run
              
             
          
        
    

提交回复
热议问题