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

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.
主站蜘蛛池模板: 寿阳县| 铜陵市| 永新县| 黄石市| 郸城县| 襄垣县| 甘洛县| 普陀区| 崇州市| 文昌市| 日喀则市| 玉环县| 增城市| 丰台区| 汉寿县| 平潭县| 屏山县| 叶城县| 赤峰市| 大理市| 达州市| 南阳市| 新安县| 金湖县| 石嘴山市| 中西区| 施甸县| 黑水县| 武安市| 偃师市| 郧西县| 敦煌市| 武邑县| 宁明县| 思茅市| 喀什市| 会泽县| 象州县| 定南县| 安陆市| 封开县|