maven-jaxb2-plugin: java.lang.NoSuchFieldError: encoding

This is the TLDR; version of this bug, so if the following solution doesn't work for you, you might want to read it all. When upgrading to a new version of Maven you might be faced with the following exception   The problem is caused by a more recent version of com.sun.xml.bind:jabx-xjc being used when … Continue reading maven-jaxb2-plugin: java.lang.NoSuchFieldError: encoding

Maven/Hudson: java.lang.AssertionError: reporters.get(be.pw999.someproject:SomeModule)==null

I got the following error while building a maven 2 project on a Jenkins server using the following arguments: clean source:jar javadoc:jar install -P DEPLOYMENT,!hudson This turns out the be an old Hudson bug (2008'ish) which you should not expect to be fixed soon. The error is related to the configuration of your modules using … Continue reading Maven/Hudson: java.lang.AssertionError: reporters.get(be.pw999.someproject:SomeModule)==null

Maven: A required class is missing: hidden/org/codehaus/plexus/interpolation/ValueSource

I had the following issue when building one of our projects on a freshly installed Linux Mint: Turns out that the maven 2 version that comes from the Ubuntu repository is a bit fubar. Download the latest maven 2 release from maven.apache.org and replace the /usr/share/maven2/lib/maven-debian-uber.jar library with the on from the downloaded archive. Now … Continue reading Maven: A required class is missing: hidden/org/codehaus/plexus/interpolation/ValueSource

Mass convert a project to UTF-8 using Notepad++

Lately, I had to convert the encoding of a multimodule maven project from our default Cp-1252 encoding to UTF-8. Changing the project settings is rather easy and there are multiple guides availble on the internet, so I won't re-invent the hot water. The most dificult task however was converting all our source files from Cp-1252 … Continue reading Mass convert a project to UTF-8 using Notepad++