Is it possible to rename a maven jar-with-dependencies?

后端 未结 6 666
一整个雨季
一整个雨季 2021-01-29 19:47

I\'m currently using the jar-with-dependencies assembly to create such a jar. However, the name of my jar is a bit long.

Since this jar is being used by RPG programs

6条回答
  •  一向
    一向 (楼主)
    2021-01-29 20:25

    It is also possible to overwrite the original jar file by using ${project.build.finalName} as final name:

    
      maven-assembly-plugin
       
          
              package
              
                 single
              
          
       
       
         
           jar-with-dependencies
         
         ${project.build.finalName}
         false
       
     
    

提交回复
热议问题