optimize java compile and run plugin.