I am using Maven 3.0.3, the Maven / SCM plugin (1.5) and Git 1.7.4.1. I want to run the maven command to check the git revision, but the plugin treats my "scmVersion" parameter as the branch name and not the revision number. So for example, if I configure
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-scm-plugin</artifactId> <version>1.5</version> <configuration> <goals>install</goals> <username>username</username> <password>password</password> <scmVersion>ccaa6881dd1a9312ad44e39eea719f33ec3e8124</scmVersion> <scmVersionType>revision</scmVersionType> </configuration> </plugin>
(where I checked that the above is a valid version), I get the error below. However, if I change "scmVersion" to the branch name, then everything will be perfectly checked. How to configure a plugin for verification from a revision? Thanks - Dave
davea-mbp2:socialmediaproxy davea$ mvn scm:checkout [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building socialmediaproxy 0.1 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-scm-plugin:1.5:checkout (default-cli) @ socialmediaproxy --- [INFO] Removing /Users/davea/Documents/workspace-sts-2.6.0.SR1/socialmediaproxy/target/checkout [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ … [INFO] --- maven-scm-plugin:1.5:checkout (default-cli) @ socialmediaproxy --- [INFO] Removing /Users/davea/Documents/workspace-sts-2.6.0.SR1/socialmediaproxy/target/checkout [INFO] Executing: /bin/sh -c cd /Users/davea/Documents/workspace-sts-2.6.0.SR1/socialmediaproxy/target && git clone http:
source share