官术网_书友最值得收藏!

Maven build from the Command Prompt

Please make sure that Java and JAVA_HOME is set to Java 11 before executing the following commands.

Observe the following steps:

  1. To build the JAR file, perform the mvn clean package command from the Command Prompt from the parent project root directory (Chapter2). Here, clean and package are Maven goals:
mvn clean package

  1. This creates the JAR files in a respective target directory. We will now execute the JAR files generated in the Chapter2\rest\target directory. A JAR file can be executed using the following command:
java -jar rest\target\rest-1.0-SNAPSHOT-exec.jar
Please make sure you execute the JAR file having a postfix exec, as shown in the preceding command.
主站蜘蛛池模板: 大同市| 易门县| 陕西省| 藁城市| 随州市| 宜宾县| 通渭县| 门头沟区| 抚州市| 民权县| 湘乡市| 金乡县| 东方市| 明光市| 泉州市| 江源县| 晋城| 祥云县| 崇仁县| 星子县| 井陉县| 驻马店市| 天镇县| 凤凰县| 景东| 自治县| 弋阳县| 佛山市| 宜君县| 灵寿县| 淮安市| 台北县| 沈阳市| 濮阳市| 南宫市| 鄂托克前旗| 托克逊县| 宁陵县| 革吉县| 普兰店市| 东至县|