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?
Asked
Active
Viewed 42 times
1

TieDad
- 9,143
- 5
- 32
- 58
-
Just add the other files into `src/main/resources` and they will be packaged automatically... – khmarbaise Nov 06 '17 at 09:56
1 Answers
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