fix maven build compatibility issue