Building JAR that includes all its dependencies

前端 未结 5 2122
盖世英雄少女心
盖世英雄少女心 2020-12-06 12:14

This is probably a really fundamental question, but I\'m afraid I don\'t know much about Java and I couldn\'t find the answer anywhere.

I\'m attempting to build an A

5条回答
  •  清歌不尽
    2020-12-06 12:51

    Just in case if you're doing with maven. You need to include following plugin.

    
        org.apache.maven.plugins
        maven-assembly-plugin
        2.4
        
            
            jar-with-dependencies
            
            
                
                    listener
                    com.example.TestProgressListener
                
            
        
        
            
                make-assembly 
                package 
                
                    single
                
            
        
    
    

    Read more @ how do I build JAR file with dependencies?

提交回复
热议问题