How do I run a specific goal with a particular configuration in a Maven plugin when I have several configurations for that goal

后端 未结 4 810
栀梦
栀梦 2020-12-28 14:15

See plugin config from pom.xml below.

I can do:

mvn myplugin:myGoal

Which runs myGoal (both executions I suppose) but I want to be able

4条回答
  •  心在旅途
    2020-12-28 14:57

    The assumption you made that if you call

      mvn myplugin:myGoal
    

    But the problem is that you will get an error message cause the execution have no unique id's (both in this case have the same).

    You can reach what you like to do via profiles which you can activate via mvn -PXYZ and mvn -PABC

提交回复
热议问题