IntelliJ IDEA 14.0.0 Web Help

Configuring Triggers for Maven Goals

You can configure triggers that execute Maven goals before or after certain events, for example, compiling, running, or testing. These triggers are called compilation triggers and execution triggers respectively.

To set up a trigger

  1. On the Maven Projects tool window, right-click the desired node (a phase of the lifecycle, or a plugin).
  2. On the context menu, click one of the options:
    • Execute before Make
    • Execute after Make
    • Execute before Run/Debug
    img

See Also

Last modified: 4 December 2014
comments powered by Disqus