------ Other SCM Commands ------ Pete Marvin King ------ 2008-08-13 ------ ~~ Licensed to the Apache Software Foundation (ASF) under one ~~ or more contributor license agreements. See the NOTICE file ~~ distributed with this work for additional information ~~ regarding copyright ownership. The ASF licenses this file ~~ to you under the Apache License, Version 2.0 (the ~~ "License"); you may not use this file except in compliance ~~ with the License. You may obtain a copy of the License at ~~ ~~ http://www.apache.org/licenses/LICENSE-2.0 ~~ ~~ Unless required by applicable law or agreed to in writing, ~~ software distributed under the License is distributed on an ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~~ KIND, either express or implied. See the License for the ~~ specific language governing permissions and limitations ~~ under the License. ~~ NOTE: For help with the syntax of this file, see: ~~ http://maven.apache.org/doxia/references/apt-format.html Other SCM Commands The scm plugin requires the scm to be configured in the <<>>. +---------+ ... jar 1.0-SNAPSHOT SCM Sample Project http://somecompany.com scm:svn:http://somerepository.com/svn_repo/trunk scm:svn:https://somerepository.com/svn_repo/trunk http://somerepository.com/view.cvs ... +---------+ If you want to change the default scm provider implementation, for exemple you want to use the native cvs instead of the pure java implementation, you must configure your plugin like that: +-----------+ ... ... org.apache.maven.plugins maven-scm-plugin ${project.version} cvs_native ... ... +-----------+ Once the scm has been configured, scm operations can be performed. * changelog - displays the project commit changes for each revisions <<>> configuration : +-----------+ ... ... org.apache.maven.plugins maven-scm-plugin ${project.version} YYYY-MM-DD YYYY-MM-DD ... ... +-----------+ Command : +---------+ mvn scm:changelog +---------+ or you can specify the startDate and endDate on the commandline +---------+ mvn -DstartDate=YYYY-MM-DD -DendDate=YYYY-MM-DD scm:changelog +---------+ * diff <<>> configuration : +-----------+ ... ... org.apache.maven.plugins maven-scm-plugin ${project.version} connection connection ... ... +-----------+ Command : +---------+ mvn scm:diff +---------+ or you can specify the startRevision and endRevision in the command line +---------+ mvn -DstartRevision= -DendRevision= scm:diff +---------+ * edit - set the edit status of the file, locking the project sources if supported. Command : +---------+ mvn scm:edit +---------+ * status - displays the modified files in the project. Command : +---------+ mvn scm:status +---------+ * tag <<>> configuration : +-----------+ ... ... org.apache.maven.plugins maven-scm-plugin ${project.version} tag name ... ... +-----------+ Command : +---------+ mvn scm:tag +---------+ or you can specify the tag name in the command line +---------+ mvn -Dtag="" scm:tag +---------+ * unedit - unset the edit status of the project sources and unlocking it if supported. Command : +---------+ mvn scm:unedit +---------+ * validate - check if the scm urls configured in the <<>> is valid. Command : +---------+ mvn scm:validate +---------+ or passing the scmConnection or/and the developerConnection in the command line +---------+ mvn -DscmConnection="" -DscmDeveloperConnection="" scm:validate +---------+