سؤال

Is it possible to activate a maven profile only when building a specific plugin/goal?

If so how do you go about configuring this in ~/.m2/settings.xml?

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

المحلول

You can't. You can (de-)activate plugins through profiles, not the other way around. For all options activating profiles, see:

http://maven.apache.org/guides/introduction/introduction-to-profiles.html

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