#106 works in maven 3.0.x and 3.1

Finally it works.
I found a plugin that has this solved. Anonymous class is used to assign field of the class in initializer, it's not nice but takes less space than inner class.