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

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.
主站蜘蛛池模板: 天镇县| 永济市| 上思县| 庆云县| 金堂县| 特克斯县| 雅江县| 南城县| 梁山县| 牙克石市| 阳原县| 潍坊市| 景德镇市| 长宁县| 建德市| 吉安县| 遂平县| 威海市| 漳平市| 卓尼县| 新竹市| 靖边县| 陵川县| 石门县| 岳阳市| 濉溪县| 郓城县| 凤凰县| 新宾| 米泉市| 六枝特区| 九台市| 长顺县| 大竹县| 正阳县| 沙河市| 郴州市| 西乌| 清水县| 沙河市| 马关县|