Maven 2.x Castor Plugin

Castor generates code which doesn't compile