That is another great way to do it! Doing it in the verify phase is specifically where maven defines running these types of checks. However I like to run these checks early in the CI and fail fast before waiting for all my tests to run in the phases preceding verify. If you don't have a preference on the order in your CI then I would definitely recommend doing like you suggest. I should have called out the reasons why I chose this way. Thanks for the question!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Why not simply execute those plugins during the verify phase, making
mvn verify
the only command you need.That is another great way to do it! Doing it in the verify phase is specifically where maven defines running these types of checks. However I like to run these checks early in the CI and fail fast before waiting for all my tests to run in the phases preceding verify. If you don't have a preference on the order in your CI then I would definitely recommend doing like you suggest. I should have called out the reasons why I chose this way. Thanks for the question!