fix build using maven and ant