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

后端 未结 5 1833
故里飘歌
故里飘歌 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:36

    I would do it this way:

            
                org.apache.maven.plugins
                maven-antrun-plugin
                1.8
                
                    
                        install
                        
                            
                                
                            
                        
                        
                            run
                        
                    
                
            
    

提交回复
热议问题