fix compile error when run using maven