How can I override a plugin's version in command line without changing pom.xml?
More specifically:
I cannot compile apache shiro commit 8dd6a13. The reason is buildnumber-maven-plugin version 1.0-beta-4 is not available any more. When I modify pom.xml and change the plugin version to 1.0, I can compile the project. I would like keep the project untouched, and just set the version of the plugin when I run mvn from command line. I appreciate any insight and help.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>1.0-beta-4</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>create</goal>
</goals>
</execution>
</executions>
<configuration>
<doCheck>false</doCheck>
<doUpdate>false</doUpdate>
</configuration>
</plugin>