mvn install jar-with-dependencies

后端 未结 5 1674
情歌与酒
情歌与酒 2021-02-04 10:28

Is there a way to do an install on a jar-with-dependencies created using maven-assembly-plugin?

5条回答
  •  走了就别回头了
    2021-02-04 11:26

    If you bind the assembly to the packaging phase, it will install in your repository both the "regular" jar and the with-dependencies jar when you do a build:

            
                maven-assembly-plugin
                2.3
                
                    
                        jar-with-dependencies
                    
                
                
                    
                        make-assembly 
                        package 
                        
                            single
                        
                    
                
            
    

提交回复
热议问题