Skip to content

Instantly share code, notes, and snippets.

@jamiely
Created June 19, 2018 02:42
Show Gist options
  • Save jamiely/b4b281c98801ea818b11eabf39130e7d to your computer and use it in GitHub Desktop.
Save jamiely/b4b281c98801ea818b11eabf39130e7d to your computer and use it in GitHub Desktop.
Run `mvn compile` whenever a Java file changes in a particular directory.

Run mvn compile whenever a Java file changes in a particular directory.

brew install watchman
watchman-make --make mvn -p 'src/main/java/**/*.java' -t compile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment