Maven usage

Maven to software development

First go to start->run->cmd prompt

go to the path where you want the maven project to be placed.

Run the mvn archetype:generate command as shown below.

maven_arechetype

Now select the number which indicates the type of the project,
in below image, i have selected 6 for simple core java project and also enter group id,artifact id,version and package

maven_arechetype_running
maven_arechetype_running

now check the workspace selected , maven produced a nice project structure

maven_arechetype_op

Now develop all source code in that workspace.
lets assume we have done coding, so we need to compile and build our application
so issue mvn clean install command as below

mav_clean_install1

mav_clean_install2

Now check the project folder, there will be a target folder which is having all .class files compiled using maven command.
and also there will be a jar file for the application as its a core java application.

About the Author

Founder of javainsimpleway.com
I love Java and open source technologies and very much passionate about software development.
I like to share my knowledge with others especially on technology 🙂
I have given all the examples as simple as possible to understand for the beginners.
All the code posted on my blog is developed,compiled and tested in my development environment.
If you find any mistakes or bugs, Please drop an email to kb.knowledge.sharing@gmail.com

Connect with me on Facebook for more updates

Share this article on