Why You Need To Spend More Time With Your Family Members

Have you lost hope on connecting with your family? Do you just want to live your life till you can “escape” from them? Well, you don’t have to do that. There are ways you can build quality…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Maven in Linux

What is Maven?

Maven is primarily used in Java Projects. It is a build automation tool. It allows the developer to comprehend the complete state of a development effort in the shortest period of time. Other than this the build process of the project become easy. Also, it provides a uniform build system, provide quality project information, provide guidelines for best practices development and it allows transparent migration to new features.

Dependency Management with Maven

Dependency management is a mechanism to centralize the dependency information. It easily manages multi module projects with high degree of control and stability. Transitive Dependency is one of the features that dependency allows to avoid needing to discover and specify libraries that your own dependencies require. This will make easy because we no need to check whether our dependent libraries are depends on any other library and include it. It will happen automatically. To restrict this process it has defined scope.

What is Archetype?

This is a Maven project template creating toolkit. Here we are trying to provide a system that provides a consistent means of generating Maven projects. Archetype will help authors create Maven project templates for users, and provides users with the means to generate parameterized versions of those project templates.

To create a new project based on an Archetype, you need to call mvn archetype:generate

Maven provides several Archetype artifacts as mentioned below.

How to setup Maven on Linux?

Step 1: Update your server.

Step 2 : Download the latest version of the Apache Maven

Download Menu

Step 3 : Extract it in a particular directory.

Step 4 : Go to the path where extracted the folder and open the terminal.

Step 5 : Add class path variable in ~/.bashrc.

Step 6 : Add class path to it and save before exit.

Step 7 : To make sure class path is added use following code lines.

Step 8 : To ensure that Maven installed successfully use following command.

Now once you can create and enjoy your java project.

References:

Add a comment

Related posts:

Why I Started to Learn Coding?

In this new digital world, coding or coding related skills will be essential for most of the jobs. I am not a developer but I work closely with business analysts and software developers during my…

Pasadas las once.

El pavimento estaba húmedo, mis zapatos se hundían en el lodo y la nariz me cosquilleaba. Eran las cinco de la mañana, estaba nublado, pero a pesar de todo no había forma de que en algún momento…

Accident

Ramada Hotel Staff Get-together was in full swing. My Boss was searching for a person who could drop the Banquet Manager who was completely squashed. Of the two teetotalers, he opted for me and I was…