Only create executable jar-with-dependencies in Maven

前端 未结 6 1216
悲&欢浪女
悲&欢浪女 2020-12-05 13:21

In my pom.xml I use the maven-assembly-plugin to create an executable jar-with-dependencies when running \"mvn clean install\". Now it first creates the non-exe

6条回答
  •  庸人自扰
    2020-12-05 13:41

    Maybe im missing something about your question but the following code makes me a single executable jar: Is this what you are looking for?

                  
                  org.apache.maven.plugins
                  maven-jar-plugin
                  2.3.1
                  
                        
                              
                                  true
                                    some.main.class
                              
                        
                        Proj-${project.version}
                        target
                  
            
    

提交回复
热议问题