Applied patch for maven build from mr Potoniec.