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

后端 未结 4 802
栀梦
栀梦 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 15:14

    Execution of multiple goals from the CLI is now supported in Maven 3.3.1+

    mvn exec:java@first-cli
    mvn exec:java@second-cli
    

    Where first-cli/second-cli are the execution ids.

    https://blog.soebes.de/blog/2015/03/17/apache-maven-3-dot-3-1-features/

提交回复
热议问题