Is it possible to rename a maven jar-with-dependencies?

后端 未结 6 681
一整个雨季
一整个雨季 2021-01-29 19:47

I\'m currently using the jar-with-dependencies assembly to create such a jar. However, the name of my jar is a bit long.

Since this jar is being used by RPG programs

6条回答
  •  一个人的身影
    2021-01-29 20:44

    This worked for me

    
        anynameyoulike
                   
            
                maven-assembly-plugin
                2.6
                
                    
                        jar-with-dependencies
                                       
                    false
                    
                        
                            com.mycompany.MyMainClass
                        
                    
                
                
                    
                        make-assembly 
                        package 
                        
                            single
                        
                    
                
            
        
    
    

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题