- Mastering Microservices with Java
- Sourabh Sharma
- 112字
- 2021-07-02 13:03:33
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:
- 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
- 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.
推薦閱讀
- Spring 5.0 Microservices(Second Edition)
- Java Web開發(fā)學習手冊
- WSO2 Developer’s Guide
- 羅克韋爾ControlLogix系統(tǒng)應用技術
- Reactive Programming With Java 9
- Unity&VR游戲美術設計實戰(zhàn)
- 3ds Max印象 電視欄目包裝動畫與特效制作
- Kotlin Programming By Example
- Mastering HTML5 Forms
- Python Programming for Arduino
- 算法秘籍
- Deep Learning for Natural Language Processing
- Python第三方庫開發(fā)應用實戰(zhàn)
- Web前端測試與集成:Jasmine/Selenium/Protractor/Jenkins的最佳實踐
- C語言從入門到精通(視頻實戰(zhàn)版)