Java, Maven, Spring

Use SLF4J logging with Spring

Long story short, Spring using Commons logging as a logging API, but chances are that you are using SLF4J in your project, so here what you'll need to do to make Spring use SLF4J instead of commons logging. 1) Remove all commons-logging dependencies In maven, you'll have to exclude the commons-logging dependency from each Spring… Continue reading Use SLF4J logging with Spring

Maven

Install a single pom.xml in your local repository

Sometimes you have a pom.xml that you want to install in your repository without wanting to install your whole build. Huh? When? For instance you have a multi-modules project, and you make a change to the parent pom. You want to install it but not having to install all the children modules. There's an option… Continue reading Install a single pom.xml in your local repository