Warnings/errors on duplicate lifecycle phases #14
marcphilipp
started this conversation in
Ideas for Milestones
Replies: 2 comments
-
We should fail that build and give hints what should be done in a better way. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When invoking Maven with redundant lifecycle phases, e.g.
mvn clean package verify install
, goals are executed multiple times even though that's rarely what was intended. In the example, it was probablymvn clean install
so one option would be to issue a warning and execute that instead. Another option would be to fail such invocations to educate developers that they're wasting time and resources and tell them what to do instead.Beta Was this translation helpful? Give feedback.
All reactions