1

When I package a jar, the jar will include some files from the other directory. I want maven package to automatically to run a shell script to check if the dependency directory is clean and up-to-date. If the script returns non-zero, then maven packet should stop. Is that possible? If yes, how to implement?

TieDad
  • 9,143
  • 5
  • 32
  • 58

1 Answers1

0

See if the exec-maven-plugin can help in your case.

You can associate it to the package phase, as in this instance. It will fail the maven process if the script returns a non-zero status.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250