Just implement two mojo classes one mojo class per goal in particular if they have different functionallity.
Multiple goals in maven mojo
Question
I am developing a mojo that I envision will have 2 goals.
e.g.
/**
* @goal validate-user-config
* @goal build-user-project
*/
So far I've only ever defined a single goal with the syntax above. My question is how can I create two goals and conditionally vary the behavior of the execute()
function?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow