- Mastering Microservices with Java
- Sourabh Sharma
- 174字
- 2021-07-02 13:03:33
Running the Maven build from IDE
All popular IDEs, such as Eclipse, Netbeans, and IntelliJ IDEA, support Java 11 and Spring. You can use any of the preferred IDEs having Java 11 support.
Here, we use the Maven executable to package the generated JAR file. The steps for this are as follows:
- Right-click on the pom.xml file for Eclipse/NetBeans IDE. For IntelliJ, use the Run menu.
- For NetBeans, select Run Maven | Goals... from the pop-up menu. It will open the dialog. Type spring-boot:run in the Goals field. We have used the released version of Spring Boot in the code. However, if you are using the snapshot release, you can check the Update Snapshots checkbox. To use it in the future, type spring-boot-run in the Remember as field. For Eclipse/IntelliJ IDEA, use the respective fields.
- Next time, you could directly click Run | Maven | Goals | spring-boot-run to execute the project or on the basis of a similar option in the respective IDE:

Run Maven dialog
- Click OK to execute the project.
推薦閱讀
- Java應用與實戰
- Beginning C++ Game Programming
- Vue.js 3.x從入門到精通(視頻教學版)
- 重學Java設計模式
- OpenShift在企業中的實踐:PaaS DevOps微服務(第2版)
- Building RESTful Python Web Services
- C語言開發基礎教程(Dev-C++)(第2版)
- Node Cookbook(Second Edition)
- Hands-On GUI Programming with C++ and Qt5
- 代替VBA!用Python輕松實現Excel編程
- Android應用開發實戰
- Visual C++程序設計與項目實踐
- Implementing Microsoft Dynamics NAV(Third Edition)
- Xamarin Cross-Platform Development Cookbook
- jQuery EasyUI從零開始學