- 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.
推薦閱讀
- PWA入門(mén)與實(shí)踐
- Learning RxJava
- 新手學(xué)Visual C# 2008程序設(shè)計(jì)
- Linux網(wǎng)絡(luò)程序設(shè)計(jì):基于龍芯平臺(tái)
- 單片機(jī)應(yīng)用技術(shù)
- HTML5+CSS3+JavaScript Web開(kāi)發(fā)案例教程(在線實(shí)訓(xùn)版)
- 用Flutter極速構(gòu)建原生應(yīng)用
- Hands-On RESTful Web Services with Go
- Eclipse Plug-in Development:Beginner's Guide(Second Edition)
- OpenStack Orchestration
- Python 3.7從入門(mén)到精通(視頻教學(xué)版)
- Qt5 C++ GUI Programming Cookbook
- Python編程:從入門(mén)到實(shí)踐(第3版)
- Spring Data JPA從入門(mén)到精通
- Python應(yīng)用與實(shí)戰(zhàn)