How to create simple java project using maven in eclipse

In this post, we will see how to create a simple java project using maven in eclipse. We have already seen before how to create dynamic web project using maven in eclipse.

I am using following tools for this post.

  • eclipse-jee-mars-R-macosx-cocoa-x86_64
  • Apache tomcat 8
  • m2eclipse plugin
  • jdk 1.7

Steps for creating dynamic web project using maven in eclipse.

1) Install m2eclipse for maven plugin in eclipse. Please follow this link for installing m2eclipse plugin in eclipse.

2) goto new -> project-> Maven Project and click on next

3) You will see below screen , again click on next


4) We need to put group id and artifact id here.

Let me tell you more about group id and artifact id.

Group id : It uniquely identifies your project among all. So it may be something like com.companyname

Artifact id : It is name of jar or war without version. it may be something like project, so here we have put artifact id as SimpleJavaProjectUsingMaven

Version : Version is used for version control for artifact id. If you distribute this project, you may incrementally create different version of it.

If we have any dependency on any parent project, we can declare it in Parent project.

New Maven Java Project

5) Click on finish , you will see  project structure as below

Bingo !! we are done with simple java project using maven in eclipse.

Please comment if you are facing any issue with this.

Related Posts

  • 19 May

    Read CSV Line by Line in Python

    Table of ContentsRead CSV Line by Line Using the readline() Method in PythonRead CSV Line by Line Using the readlines() Method in PythonRead CSV Line by Line Using CSV Module in PythonRead CSV Line by Line Using the reader() MethodRead CSV Line by Line Using the DictReader() MethodConclusion CSV files or comma-separated files are used […]

  • 19 May

    Delete File if It Exists in Python

    Table of ContentsDelete File if Exists Using the os.remove() MethodDelete File if Exists Using the os.unlink() Method  Conclusion Python provides us with various tools to perform file handling operations. In this article, we will discuss different ways to delete file if it exists in the file system using python. Delete File if Exists Using the os.remove() […]

  • 19 May

    Convert Bytes to Int in Python

    Table of ContentsHow to Convert Bytes to Int in Python?How to Convert Bytes to Signed Int in Python?How to Convert Bytes to Unsigned Int in Python?Conclusion In this post, we will see how to convert Bytes to Int in Python. Normally, the data is stored in the storage in bytes format. In this article, we […]

  • 19 May

    Remove Extension From Filename in Python

    Table of ContentsHow to Remove Extension From Filename in Python?Remove Extension From Filename in Python Using the os ModuleRemove Extension From Filename in Python using the pathlib moduleRemove Multiple File Extensions Using pathlib Module in PythonConclusion While programming in python, we often have to deal with file names. In this article, we will discuss how […]

  • 19 May

    Get Type of Object in C++

    Table of ContentsWhy Should We Determine the Type of Object in C++: Dynamic DispatchingGet Type of Object in C++Conclusion C++ is an object-oriented language where we often interact with objects of different types. The object interaction becomes more interesting when we add runtime polymorphism to it. The runtime polymorphism, also known as, dynamic dispatch of […]

  • 19 May

    Remove First and Last Character of String in Python

    Table of ContentsHow to Remove First and Last Character of string in python?Remove First and Last Character of string Using For LoopRemove First and Last Character of string Using SlicingRemove First and Last word of string in PythonConclusion We use strings in python to handle text data. For processing the data, we sometimes need to […]

Comments

Leave a Reply

Your email address will not be published.

Subscribe to our newletter

Get quality tutorials to your inbox. Subscribe now.