Run Java Tests With Maven Silently (Only Log on Failure)

When running our Java tests with Maven they usually produce a lot of noise in the console. While this log output can help understand test failures, it’s typically superfluous when our test suite is passing. Nobody will take a look at the entire output if the tests are green. It’s only making the build logs

Read More

Maven Setup For Testing Java Applications

Starting with a new programming language is always exciting. However, it can be overwhelming as we have to get comfortable with the language, the tools, conventions, and the general development workflow. This holds true for both developing and testing our applications. When testing Java applications with Maven, there are several concepts and conventions to understand:

Read More

Introduction to GitHub Actions for Java And Maven Projects

I was recently wasting time and energy to get the CI pipelines for my two main GitHub repositories working with Travis CI. Even though the documentation provides examples for Maven-based Java projects, it took me still some time to find the correct setup. While working on these pipelines, I remembered that GitHub now also provides

Read More

Joyful Open Liberty Developer Experience with Liberty Maven Plugin

Short feedback cycles during development are essential for your productivity. If you practice TDD you’ll agree on this even more. In the past, I’ve used several IDE plugins to achieve this for developing Jakarta EE applications. All worked but it wasn’t joyful. Adam Bien’s Watch and Deploy was a light at the end of the

Read More

Top 3 Maven Plugins to ensure Quality and Security for your project

Detecting vulnerabilities inside your dependencies is crucial for creating secure applications. Besides that, static code analysis tools and pre-defined rules can help you to ensure quality. Fortunately, there are Maven Plugins available to automate this within your build. With this blog post, I’ll show you my top three Maven plugins to ensure both quality and

Read More

Creating Your Own Maven Archetype in 5 Simple Steps

Manually creating a new Maven project is cumbersome. Most companies have a set of shared libraries (e.g. security) and pre-defined configurations they need for each project. Copy and pasting these files over and over is a tedious task. With Maven we have the option to build project templating toolkits with so-called Maven Archetypes. Learn how

Read More

Bootstrap a JSF 2.3 Maven project in seconds

Bootstrapping a new JSF can be quite cumbersome if you are new to Java EE. Even after weeks of training, I had to look up the anatomy of the or the correct folder structure. As the JSF technology is still a valid and reasoned choice for frontend development in enterprises, I’ve created a simple Maven archetype

Read More

Bootstrap a Java EE 8 and MicroProfile Maven project in seconds

Manually creating a new Java EE Maven project can be quite cumbersome. Creating all required folders and files for a simple JAX-RS endpoint with database access was quite error-prone in the past for me. I constantly mixed up WEB-INF and META-INF with its files and was tired of manually creating the project structure. The bootstrapping of a

Read More