2

Can Intellij IDE automatically do a mvn install on pom changes?

I have a multi-module maven project, and currently, when I make changes to the pom file, I have to do mvn install manually.

I know that I can execute Lifecycle commands automatically by setting the following options, but these are not what I wanted.
Lifecycle Hooks

wero026
  • 1,187
  • 2
  • 11
  • 23

1 Answers1

1

There is a tool called 'filewatcher'. Find more info in jetbrains docs: https://www.jetbrains.com/help/idea/using-file-watchers.html?section=Windows%20or%20Linux

  • Thanks that works perfectly fine! Unfortunately only available in the ultimate edition. – wero026 Jul 22 '19 at 11:07
  • You can also look for more 'manual' options, such as: https://stackoverflow.com/questions/494869/file-changed-listener-in-java especially 'André' response. – Sherrmenise Jul 22 '19 at 11:55