Create a Simple Maven Java Project in Eclipse using m2eclispe

This is a brief tutorial on how to create a simple java project using m2eclipse.

Note – This post is for beginners and has been created on demand 🙂

Assumptions.

1. Maven downloaded and installed on machine.

2. m2eclipse  installed in eclipse

Follow following steps to create your maven java project

1. Go to File ->New-> Project

1

2. A New Project wizard will pop up. Drill down to Maven->Maven Project and click on next

2

3. On next screen check the keep the default values and Click on next.

three

4. On next screen you have to choose the artefact that will suit your need, since we need a simple project we will choose “Nexus Indexer” in catalog and “maven-archetype-quickstart” in filter. In the box below appropriate archetype will appear. Choose that and click on next.

four

5. On the next scree provide groupId, arctifactId, name, description and version. Please visit following link for more info on these http://maven.apache.org/guides/mini/guide-naming-conventions.html

five

5. Click on finish and your simple java project is done. On exploding the project in explorer it should look like this

six

6. Open and verify the contents of your pom.xml.

7. Try adding few other dependencies and add your code in src/main/java/your package. The dependencies should be added automatically.

Guys this post may have mistakes as done in hurry. If you find anything please holla and I will get it corrected. Have fun and bye for now.

Warm Regards

Niraj

 

 

 

Print Friendly

About Niraj Singh

I am CEO and CoFounder of a startup "Aranin Software Private Limited, Bangalore. I completed my graduation in 2002 as an Aerospace Engineer from IIT Kharagpur. I love working on new ideas and projects and recently released my first open source project JaiomServer "http://jaiomserver.org". I have 9 years of experience in IT industries most of which I have spent in developing community applications for various clients using java. Some of the sites in which I have actively involved with are hgtv.com, food.com, foodnetwork.com, pickle.com, diynetwork.com etc.
This entry was posted in Begineers Java, Uncategorized and tagged , , . Bookmark the permalink.

Comments are closed.