if you are using gradle, you can start your plugin with ./gradlew run --debug-jvm, before the java process starts, you need to attach intellij and then you can step debug through the code by triggering executions (be it an HTTP request, or a cluster state listener or a query).
No, those buildtools are for gradle only as far as I know. There is a community supported elasticsearch maven plugin, but I have never used it and cannot comment on it further.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.