سؤال

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?

هل كانت مفيدة؟

المحلول

Just implement two mojo classes one mojo class per goal in particular if they have different functionallity.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top