Maven is a dependency manager tool which eases programmer in managing dependencies for multi module project.
Let's discuss with an example how we can create maven project.
Requirements:
1. Download Eclipse for Java EE developers from official Eclipse site
Download eclipse depending on system configuration
Download Apache Maven from official maven.
Download below source file for Maven.

Creating local repository and set path in maven settings:
Now create a folder in desktop named repository
Then copy the local path of repository folder
paste the path under local repository in maven settings.xml file
Now open eclipse
Click Windows->Preferences->Maven->User settings->click browse the select the path for maven settings.xml->then click update settings
A pop up message will come then select yes .It would automatically set the local repository path .
Creating Maven project:
1. Open eclipse then go to File->New->Project->Maven->Maven project->Click Next

Now select checkbox (Create a simple project)->Click Next-

Now give a name for groupid(Maven_java_pro) and artifact id(java_pro1) -> click Finish

2. Now create a package under source folder following below screen shot .
Right click on src/main/java ->New->Package->Name a package name (java_learning)->Click Finish




4. Now update project using maven update
Right click on project ->Maven->Update project








0 Comments
Please do not enter any spam link in the comment box