Running JAVA API for language tool

I have been writing some rules for my project similar to grammar.xml in the stand-alone version of LT. Now I want to use that in JAVA API. I also do not know how to use maven. Can anyone guide me as to how to proceed. I looked at the JAVA API documentation but could not get it to work.

I assume you’ve followed the instructions on Development Overview - LanguageTool Wiki? What happens when you call mvn clean package?