title: Set plugin’s version on the command line in Maven 2
body: <p>I generate default quickstart Maven example, and type <code>mvn checkstyle:checkstyle</code>, it always try to use the lastest <code>SNAPSHOT</code> version. Probably it is wrong in my Nexus server, but how can I set plugin's version on the command line in Maven 2, like <code>2.5</code> for checkstyle instead of <code>2.6-SNAPSHOT</code>?</p>
  
  <pre><code>C:\HelloWorld&gt;mvn checkstyle:checkstyle
  [INFO] Scanning for projects...
  [INFO] Searching repository for plugin with prefix: 'checkstyle'.
  [INFO] ------------------------------------------------------------------------
  [ERROR] BUILD ERROR
  [INFO] ------------------------------------------------------------------------
  [INFO] Error building POM (may not be this project's POM).
  
  Project ID: org.apache.maven.plugins:maven-checkstyle-plugin
  
  Reason: Error getting POM for 'org.apache.maven.plugins:maven-checkstyle-plugin' from  the repository: Failed to resolve artifact, possibly due to a repository list that is not appropriately equipped for this artifact's metadata.
    org.apache.maven.plugins:maven-checkstyle-plugin:pom:2.6-SNAPSHOT
  
  from the specified remote repositories:
    nexus (http://localhost:9081/nexus/content/groups/public)
  
  for project org.apache.maven.plugins:maven-checkstyle-plugin
  </code></pre>
  
  <p>I guess it could be <code>mvn checkstyle:2.5:checkstyle</code>, unfortunately it is not.</p>
  
  <p>Surely if I set build dependance in <code>pom.xml</code>, it will work, but I want to see how command line can work.</p>