mvn spring-boot:run vs java -jar

前端 未结 2 713
离开以前
离开以前 2020-12-28 15:48

I know it may sound silly question but I am unable to understand the difference between mvn spring-boot:run and java -jar (.jar file generated with

2条回答
  •  心在旅途
    2020-12-28 16:36

    Have you tried creating a jar file using mvn package instead of mvn install when you are running jar file using java -jar? package will create a jar/war as per your POM file whereas install will install generated jar file to the local repository for other dependencies if present.

提交回复
热议问题