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 to choose either the first or the second executions independently.
I know I can add an id to the execution element, but how do I refer to that id on the command line. I'd like to get to something which does what this imagined command does:
mvn myplugin:myGoal --executionId=1
Is this possible, or am I going about this the wrong way?
<plugin>
<groupId>org.myplugin</groupId>
<artifactId>myplugin-maven-plugin</artifactId>
<version>1.1.1</version>
<executions>
<execution>
<goals>
<goal>myGoal</goal>
</goals>
<configuration>
<myParam>cats</myParam>
</configuration>
</execution>
<execution>
<goals>
<goal>myGoal</goal>
</goals>
<configuration>
<myParam>dogs</myParam>
</configuration>
</execution>
</executions>
</plugin>