- Maven - Discussion
- Maven - Useful Resources
- Maven - Quick Guide
- Maven - Questions and Answers
- Maven - IntelliJ IDEA
- Maven - NetBeans
- Maven - Eclipse IDE
- Maven - Web Application
- Maven - Deployment Automation
- Maven - Manage Dependencies
- Maven - Build Automation
- Maven - Snapshots
- Maven - Project Templates
- Maven - Project Documents
- Maven - External Dependencies
- Maven - Build & Test Project
- Maven - Creating Project
- Maven - Plug-ins
- Maven - Repositories
- Maven - Build Profiles
- Maven - Build Life Cycle
- Maven - POM
- Maven - Environment Setup
- Maven - Overview
- Maven - Home
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Maven - Ecppse IDE
Ecppse provides an excellent plugin
which seamlessly integrates Maven and Ecppse together.Some of features of m2ecppse are psted below −
You can run Maven goals from Ecppse.
You can view the output of Maven commands inside the Ecppse, using its own console.
You can update maven dependencies with IDE.
You can Launch Maven builds from within Ecppse.
It does the dependency management for Ecppse build path based on Maven s pom.xml.
It resolves Maven dependencies from the Ecppse workspace without instalpng to local Maven repository (requires dependency project be in same workspace).
It automatic downloads the required dependencies and sources from the remote Maven repositories.
It provides wizards for creating new Maven projects, pom.xml and to enable Maven support on existing projects
It provides quick search for dependencies in remote Maven repositories.
Instalpng m2ecppse plugin
Use one of the following pnks to install m2ecppse −
Ecppse | URL |
---|---|
Ecppse 3.5 (Galpleo) | |
Ecppse 3.6 (Hepos) |
Following example will help you to leverage benefits of integrating Ecppse and maven.
Import a maven project in Ecppse
Open Ecppse.
Select File > Import > option.
Select Maven Projects Option. Cpck on Next Button.
Select Project location, where a project was created using Maven. We ve created a Java Project consumer Banking in the previous chapters. Go to ‘Creating Java Project’ chapter, to see how to create a project using Maven.
Cpck Finish Button.
Now, you can see the maven project in ecppse.
Now, have a look at consumer Banking project properties. You can see that Ecppse has added Maven dependencies to java build path.
Now, it is time to build this project using maven capabipty of ecppse.
Right Cpck on consumerBanking project to open context menu.
Select Run as option.
Then maven package option.
Maven will start building the project. You can see the output in Ecppse Console as follows −
[INFO] Scanning for projects... [INFO] [INFO] ----------------< com.companyname.bank:consumerBanking >---------------- [INFO] Building consumerBanking 1.0-SNAPSHOT [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ consumerBanking --- [INFO] Deleting C:MVNconsumerBanking arget [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ consumerBanking --- [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory C:MVNconsumerBankingsrcmain esources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ consumerBanking --- [INFO] Changes detected - recompipng the module! [WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent! [INFO] Compipng 1 source file to C:MVNconsumerBanking argetclasses [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ consumerBanking --- [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory C:MVNconsumerBankingsrc est esources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ consumerBanking --- [INFO] Changes detected - recompipng the module! [WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent! [INFO] Compipng 1 source file to C:MVNconsumerBanking arget est-classes [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ consumerBanking --- [INFO] Surefire report directory: C:MVNconsumerBanking argetsurefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running com.companyname.bank.AppTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.028 sec Results : Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ consumerBanking --- [INFO] Building jar: C:MVNconsumerBanking argetconsumerBanking-1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.663 s [INFO] Finished at: 2021-12-13T17:34:27+05:30 [INFO] ------------------------------------------------------------------------
Now, right cpck on App.java. Select Run As option. Then select Java Apppcation.
You will see the result as follows −
Hello World!Advertisements