How to place the output jar into another folder with maven?

后端 未结 5 1840
故里飘歌
故里飘歌 2020-12-01 02:04

I\'d like to place my output jar and jar-with-dependencies into another folder (not in target/ but in ../libs/).

How can I do that?

5条回答
  •  生来不讨喜
    2020-12-01 02:43

    Another way would be maven-resources-plugin:

    
        maven-resources-plugin
        3.0.2
        
            
                copy-files-on-build
                validate
                
                    copy-resources
                
                
                    ${basedir}/[TO-DIR]
                    
                        
                            [FROM-DIR]
                            
                            false
                        
                    
                
            
        
    
    

提交回复
热议问题