How to execute maven plugin execution directly from command line? -
i have plugin (antrun) execution configured has id , not bound phase. can execute execution directly command line?
<plugin> <artifactid>maven-antrun-plugin</artifactid> <executions> <execution> <id>my-execution</id> ... </execution> </executions> </plugin>
an run like:
mvn my-execution
or @ least
mvn magicplugin:execute -dexecutionid=my-execution
this functionality has been implemented mng-5768, , available in maven 3.3.1.
the change will:
extend direct plugin invocation syntax allow optional @execution-id parameter, e.g., org.apache.maven.plugins:maven-remote-resources-plugin:1.0:process@executionid.
so, in case:
mvn antrun:run
uses default-cli
execution id, and:
mvn antrun:run@my-execution
uses execution configured in pom.
Comments
Post a Comment