Home » Tag Archives: Maven

Tag Archives: Maven

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 »

Upload and Download files to S3 using maven

Throughout the years I’ve seen many teams using maven in many different ways. Maven can be used for many ci/cd tasks instead of using extra pipeline code or it can be used to prepare the development environment before running some tests.Generally it is convenient tool, widely used among java teams and will continue so since there is a huge ecosystem ...

Read More »