Added java api methods for maven plugin