I have fought with this problem a couple of times, but now I found a way out. Let's say you have a Maven POM and, depending on the active profiles, you want to set a property, like: You should know by now that using mvn package -Pdev,ci is not going to produce the outcome you … Continue reading Combine Maven profile properties
I'm sure this is not the first time I prepare a post like this, but I might have decided to last minute drop it: this time it's not going to happen. Sadly I have to use Windows at work and when I have some spare time I do contribute to Open Source Software and I … Continue reading The “Maven and Github on Windows” hell!
I encountered this problem while trying to use the Maven Cargo Plugin to deploy a WAR onto a JBoss server having it's access restricted to HTTPS, but with a self signed certificate. This configuration creates a set of issues you need to solve in order for this configuration to work, but I believe this same … Continue reading Java and self signed HTTPS certificates
Today I needed to publish an Artifactory repository I've set up for my company to a first level URL, something like http://artifactory.mycompany.com: it revealed to be not as straightforward as I supposed to. Once haveing installed Tomcat, deployed the Artifactory WAR and checked that everything was running fine I needed to map the http://artifactory.mycompany.com URL to … Continue reading Artifactory and NamedVirtualHost
Once upon a time there was the release plugin and it was the only tool we had to manage POM versions: release:prepare and a text editor were all we had in our toolbox. A new hero has come to save us from the evil of POM version management and its name is versions plugin. I … Continue reading Managing POM versions
I don't know if it happens to me only due to my complex source control configuration (which uses SSH keys like Github), but it happens quite often to me that the release process gets stuck right when it's time to push changes. When this happens you are left with almost no choice but to perform … Continue reading Git and Maven release:prepare
A friend and colleague pointed me to a great Maven plugin I wasn't aware of and that is probably going to save me some headaches: the Codehaus hosted versions-maven-plugin brings to Maven users some very nice functionality!I'm not going to copy here the full documentation, but just to make you wishing more, here is the goals list:versions:compare-dependencies compares the … Continue reading Maven POM version management