Home » Maven » Page 2

Tag Archives: Maven

Migrating Spock 1.3 tests to Spock 2.0

Get know what you can expect from Spock 2.0 M1 (based on JUnit 5), how to migrate to it in Gradle and Maven, and why it is important to report spotted problems :). Important note. I definitely do not encourage you to migrate your real-life project to Spock 2.0 M1 for good! This is the first (pre-)release of 2.x with ...

Read More »

How to Build a Maven Plugin

Easily deploy your app with Okta’s identity management platform Use Okta’s API to authenticate, manage, and secure users in any app within minutes. Try Okta today. Apache Maven is still the most popular build tool in the Java space, thanks to the popularity of its ecosystem of plugins. It’s easy to find an existing plugin to do almost anything your ...

Read More »

Testing Spring Boot conditionals the sane way


If you are more or less experienced Spring Boot user, it is very luckily that at some point you may need to run into the situation when the particular beans or configurations have to be injected conditionally. The mechanics of it is well understood but sometimes the testing such conditions (and their combinations) could get messy. In this post we ...

Read More »

Creating Custom Maven Archetype

Maven archetypes are the project templates which can help us quickly create a maven starter project based on its type. It’s a great tool to bootstrap a maven project with least effort. There are wide options of archetypes available to us. Some of the popular archetypes include – maven-archetype-quickstart, maven-archetype-webapp, maven-archetype-archetype. To create a maven project with a specific archetype, ...

Read More »

Maven Dependency Scopes

Introduction: Managing dependencies is a core feature of Maven. When defining a maven dependency, the scope attribute defines the visibility of that dependency on different maven lifecycle phases such as build, test and run. The dependency scopes limit the transitivity of dependencies in any project, thereby affecting the classpath. Also, there are six different available dependency scopes in Maven. In ...

Read More »

How to Docker-ise your Java application with Maven plugin

There are two maven plugins that you can use, in order to add your Java Applicatoin into Docker in an easy way. First plugin that you can use is docker-maven-plugin from Fabric8 https://dmp.fabric8.io/ Second is docker-maven-plugin from Spotify https://github.com/spotify/docker-maven-plugin Let me show you how to do it by using Fabric8 plugin. Update pom.xml Just add configuration like this into your ...

Read More »

Reliable releasing to Maven Central from Travis using Gradle – 2019 edition

Make your (automatic) releasing to Maven Central from Travis (and not only) more reliable thanks to the explicit staging repository creation feature set implemented at the edge of 2018 and 2019. Background If you are only interested in getting information how to make your artifacts releasing more reliable from Travis, move forward to the another section. Automatic artifacts releasing (using ...

Read More »

How to Deploy Maven Artifacts to CloudRepo via Rultor

In my previous article, I described how to set up a private Maven repository in Amazon S3 and deploy there via Rultor. This is a great solution if you’re familiar with managing Amazon Web Services (AWS), S3, and AWS Identity and Access Management (IAM). However, if you’re not comfortable administering an AWS account and all the related permissions, you may ...

Read More »