Expand Authors Top

If you have a few years of experience in the Java ecosystem and you’d like to share that with the community, have a look at our Contribution Guidelines.

Expanded Audience – Frontegg – Security (partner)
announcement - icon User management is very complex, when implemented properly. No surprise here.

Not having to roll all of that out manually, but instead integrating a mature, fully-fledged solution - yeah, that makes a lot of sense.
That's basically what Frontegg is - User Management for your application. It's focused on making your app scalable, secure and enjoyable for your users.
From signup to authentication, it supports simple scenarios all the way to complex and custom application logic.

Have a look:

>> Elegant User Management, Tailor-made for B2B SaaS

Generic Top

Get started with Spring 5 and Spring Boot 2, through the Learn Spring course:


1. Overview

This quick tutorial describes the clean plugin, one of the core plugins of the Maven build tool.

For an overview of the other core plugins, refer to this article.

2. Plugin Goal

The clean lifecycle has only one phase named clean that is automatically bound to the only goal of the plugin with the same name. This goal can, therefore, be executed with the command mvn clean.

The clean plugin is already included in the super POM, thus we can use it without specifying anything in the project's POM.

This plugin, as its name implies, cleans the files and directories generated during the previous build. By default, the plugin removes the target directory.

3. Configuration

We can add directories to be cleaned using the filesets parameter:


The latest version of this plugin is listed here.

If the output-resources directory contains some generated resources, it cannot be removed with the default settings. The change we've just made instructs the clean plugin to delete that directory in addition to the default one.

4. Conclusion 

In this article, we went over the clean plugin and instructed how to customize it.

The complete source code for this tutorial can be found over on GitHub.

Next »
The Maven Verifier Plugin
« Previous
The Maven Deploy Plugin
Generic bottom

Get started with Spring 5 and Spring Boot 2, through the Learn Spring course:

Maven footer banner
Comments are closed on this article!