Maven - Add jar-with-dependencies as a dependency

后端 未结 2 690
夕颜
夕颜 2021-02-13 03:40

Question..
I\'d like to add a dependency on a Maven jar packaged with it\'s dependencies.

Details..
I have a multi-mod

2条回答
  •  攒了一身酷
    2021-02-13 04:11

    Just a side note to @msczalbach's answer

    Actually, even with standarad maven-jar-plugin you can give any suffix to generated jar. Just use the configuration.

    E.g:

    
        org.apache.maven.plugins
        maven-jar-plugin
    
    
        maven-assembly-plugin
        
            
                package
                
                    single
                
            
        
        
            
                self-contained
            
        
    
    

提交回复
热议问题