How to Install Maven latest version on Ubuntu Server Example

In the tutorial, we show you how to install Maven in Ubuntu Server.

Related post:
How to install Java in Ubuntu Remote Server – Vutr Hosting VPS Example

Continue reading “How to Install Maven latest version on Ubuntu Server Example”

How to Install Maven on Windows

In the tutorial, we show how to install Maven on Windows.

Environment:
– Windows 10
– Java 10
– Lastest Maven 3.5.4

Related posts:
Maven Introduction – Part 1
Maven Introduction – Part 2: Maven Repositories and Plugins
Part 3: Maven Dependency Mechanism
Maven Introduction – Part 4: Maven Build LifeCycle
Unit Test – Maven skip test with SpringBoot

Continue reading “How to Install Maven on Windows”

Unit Test – Maven skip test with SpringBoot

In the tutorial, JavaSampleApproach will show you how to work with Maven skip test and SpringBoot.

Related posts:
@DataJPATest with Spring Boot
Spring Boot Unit Test for Spring MVC Controller

Continue reading “Unit Test – Maven skip test with SpringBoot”

Maven Introduction – Part 4: Maven Build LifeCycle

Maven build lifeCycle is the central concept of Maven. The sequence of phases which define the order of building and distributing artifact/project is defined with a build lifeCycle.

There are three standard lifeCycles: default, clean and site.
default handles project deployment.
clean handles project cleaning.
site handles the creation of project’s site documentation.

This tutorial will introduce these Maven build lifeCycles, relation between concepts of phases and plugin goals.

Continue reading “Maven Introduction – Part 4: Maven Build LifeCycle”

Maven Introduction – Part 3: Maven Dependency Mechanism

Dependency Management is a key feature of Maven. Maven Dependencies are identified by individual artifacts such as libraries or modules. It is not too difficult to manage dependencies for just a single project but, with multi-module projects, there are many things unclear.

This tutorial introduces the Maven Dependency Mechanism by which Maven helps us control them.

Continue reading “Maven Introduction – Part 3: Maven Dependency Mechanism”