fix build error due to configuration error when use java annotations for plugin