Category: Build Tools
Spring Boot – Create Executable using Maven with Parent Pom
Maven users can inherit from the spring-boot-starter-parent project to obtain sensible defaults. You should only need to specify the Spring Boot version number on this dependency. If you import additional starters, you can safely...
Findbugs Maven Plugin Fail Build If Problems Are Found
By executing a static code analysis every time your project is compiled/build, you can drastically reduce the amount of bugs that slip into your codebase. Well, if you try hard enough you still can...
Generate a Bug Report Maven FindBugs Plugin
When we don’t want to run static code analysis every time our project is compiled, we can generate a bug report during the site phase of the project. This way we can manually generate...
Add Maven Build Information to Properties File
This example shows you how to add your Maven Build Information like version number, build time, etc.. to a properties file. We use the resource filtering from the maven-resources-plugin. We get the information like...
Minify Javascript Css using maven minify plugin
In this tutorial we will show how to minify and compress javascript and css files using maven-minify-plugin. The maven-minify-plugin minifies and compresses javascript and css files at built time which means that you first...
How to Generate JavaDoc Jar file with Maven
This example explains how you can Generate JavaDoc Jar file in your build using Maven. When developing internal libraries for your company it is recommended to automatically generate javadoc jar files. That way other...
How to Generate HTML JavaDoc Reporting with Maven
This example explains how you can Generate HTML JavaDoc in your build using maven. HTML JavaDocs can be automatically created by the maven-javadoc plugin which uses the javadoc executable located in $JDK_HOME/bin/ directory. Generating...
How to Configure Maven Character Encoding
In this example we will explain how you can configure Maven Character Encoding. There are various ways you can specify encoding for Maven. Each with there benefits and drawbacks. The problem Whenever you see...
Skip Unit Tests in Maven
To skip unit tests you can configure maven with surefire plugin to completely skip your unit tests or selectively skip your unit tests, based on criteria. We also explain the two options when disabling...