Create runnable jar with maven 3.1 using maven-dependency-plugin doesn't create runnable jar

后端 未结 7 1363
予麋鹿
予麋鹿 2021-01-15 16:43

Using Maven 3.1
Eclipse Helios

Aspekt:

Try to create a runable jar file using maven-jar/dependency-plugins.

Problem:

7条回答
  •  -上瘾入骨i
    2021-01-15 16:54

    The simplest solution is to use maven-assembly-plugin like this:

    
      [...]
      
        [...]
        
          
            
            maven-assembly-plugin
            2.4
            
              
                jar-with-dependencies
              
            
            [...]
    
    

提交回复
热议问题