Use the Latest Version of a Dependency in Maven 1. Overview Upgrading Maven dependencies manually has always been a tedious work, especially in projects with a lot of libraries releasing frequently. In this tutorial, we’ll learn how to exploit the Versions Maven Plugin to keep our dependencies up-to-date. Above all,… Continue Reading maven-dependency-latest-version

Injecting Git Information Into Spring 1. Overview In this tutorial, we’re going to show how to inject Git repository information into a Maven-built Spring Boot-based application. In order to do this we will use maven-git-commit-id-plugin – a handy tool created solely for this purpose. 2. Maven Dependencies Let’s add a… Continue Reading spring-git-information

Minification of JS and CSS Assets with Maven 1. Overview This article shows how to minify Javascript and CSS assets as a build step and serve the resulting files with Spring MVC. We will use YUI Compressor as the underlying minification library and YUI Compressor Maven plugin to integrate it… Continue Reading maven-minification-of-js-and-css-assets

Apache Maven Standard Directory Layout 1. Introduction Apache Maven is one of the most popular build tools for Java projects. Apart from just decentralizing dependencies and repositories, promoting a uniform directory structure across projects is also one of its important aspects. In this quick article, we’ll explore the standard directory… Continue Reading maven-directory-structure

Spring Boot Dependency Management with a Custom Parent 1. Overview Spring Boot provides the parent POM for an easier creation of Spring Boot applications. However, using the parent POM may not always be desirable, if we already have a parent to inherit from. In this quick tutorial, we’re going to… Continue Reading spring-boot-dependency-management-custom-parent