Blog Archives

How to increase maven heapspace in hudson builds

If your maven-built project fails in hudson (especially when you’re using the assembly plugin) and it isn’t a compile or test failure, check the console output. If it says “java.lang.OutOfMemoryError: Java heap space”, you need to configure your hudson job

Posted in Technical HOWTOs Tagged with: , , ,

How to add a version number to your maven webapp

I couldn’t find a simple recipe to add a version number to a maven-built webapp. The maven-war-plugin talks about how to filter, but no simple example is given.

Posted in Technical HOWTOs Tagged with: , ,

How to set up your Maven2 POM to support Java5

Seeing this?

You need to tell the maven-compiler-plugin to use java 1.5. Add this to your pom.xml:

Posted in Technical HOWTOs Tagged with: ,