How to build jars from IntelliJ properly?

前端 未结 20 2849
盖世英雄少女心
盖世英雄少女心 2020-11-22 01:14

I have a project that contains a single module, and some dependencies. I\'d like to create a jar, in a separate directory, that contains the compiled module. In addition, I\

20条回答
  •  忘掉有多难
    2020-11-22 01:48

    With Maven you can use this plugin:

     
        
    
            
                maven-assembly-plugin
                
                    
                        
                            [path you class main]
                        
                    
                    
                        jar-with-dependencies
                    
                
                
                    
                        make-assembly
                        package 
                        
                            single
                        
                    
                
            
        
    
    

提交回复
热议问题