Calling IntelliJ from Ant/Maven

I want to use some IntelliJ functionality from Ant/Maven - in particular I want to:

a) Generate inspection reports that can be viewed via the web.
b) Run a Tools->Reformat Code, Tools->Optimise Imports across the entire code-base.

Is there currently a means to do this without writing any code?

Is there currently a means to do this via the Open API?

Regards,
Nick

Please sign in to leave a comment.