| 1 |
------ |
| 2 |
Introduction |
| 3 |
------ |
| 4 |
Pete Marvin King |
| 5 |
------ |
| 6 |
2008-08-13 |
| 7 |
------ |
| 8 |
|
| 9 |
~~ Licensed to the Apache Software Foundation (ASF) under one |
| 10 |
~~ or more contributor license agreements. See the NOTICE file |
| 11 |
~~ distributed with this work for additional information |
| 12 |
~~ regarding copyright ownership. The ASF licenses this file |
| 13 |
~~ to you under the Apache License, Version 2.0 (the |
| 14 |
~~ "License"); you may not use this file except in compliance |
| 15 |
~~ with the License. You may obtain a copy of the License at |
| 16 |
~~ |
| 17 |
~~ http://www.apache.org/licenses/LICENSE-2.0 |
| 18 |
~~ |
| 19 |
~~ Unless required by applicable law or agreed to in writing, |
| 20 |
~~ software distributed under the License is distributed on an |
| 21 |
~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 22 |
~~ KIND, either express or implied. See the License for the |
| 23 |
~~ specific language governing permissions and limitations |
| 24 |
~~ under the License. |
| 25 |
|
| 26 |
~~ NOTE: For help with the syntax of this file, see: |
| 27 |
~~ http://maven.apache.org/doxia/references/apt-format.html |
| 28 |
|
| 29 |
Maven SCM Plugin |
| 30 |
|
| 31 |
The SCM Plugin offers vendor independent access to common scm commands by offering a set |
| 32 |
of command mappings for the configured scm. Each command is implemented as a goal. |
| 33 |
|
| 34 |
* Goals Overview |
| 35 |
|
| 36 |
The SCM Plugin has the following goals: |
| 37 |
|
| 38 |
* {{{./add-mojo.html}scm:add}} - command to add file |
| 39 |
|
| 40 |
* {{{./bootstrap-mojo.html}scm:bootstrap}} - command to checkout and build a project |
| 41 |
|
| 42 |
* {{{./branch-mojo.html}scm:branch}} - branch the project |
| 43 |
|
| 44 |
* {{{./changelog-mojo.html}scm:changelog}} - command to show the source code revisions |
| 45 |
|
| 46 |
* {{{./check-local-modification-mojo.html}scm:check-local-modification}} - fail the build if there is any local modifications |
| 47 |
|
| 48 |
* {{{./checkin-mojo.html}scm:checkin}} - command for commiting changes |
| 49 |
|
| 50 |
* {{{./checkout-mojo.html}scm:checkout}} - command for getting the source code |
| 51 |
|
| 52 |
* {{{./diff-mojo.html}scm:diff}} - command for showing the difference of the working copy with the remote one |
| 53 |
|
| 54 |
* {{{./edit-mojo.html}scm:edit}} - command for starting edit on the working copy |
| 55 |
|
| 56 |
* {{{./export-mojo.html}scm:export}} - command to get a fresh exported copy |
| 57 |
|
| 58 |
* {{{./list-mojo.html}scm:list}} - command for get the list of project files |
| 59 |
|
| 60 |
* {{{./remove-mojo.html}scm:remove}} - command to mark a set of files for deletion |
| 61 |
|
| 62 |
* {{{./status-mojo.html}scm:status}} - command for showing the scm status of the working copy |
| 63 |
|
| 64 |
* {{{./tag-mojo.html}scm:tag}} - command for tagging a certain revision |
| 65 |
|
| 66 |
* {{{./unedit-mojo.html}scm:unedit}} - command to stop editing the working copy |
| 67 |
|
| 68 |
* {{{./update-mojo.html}scm:update}} - command for updating the working copy with the latest changes |
| 69 |
|
| 70 |
* {{{./update-subprojects-mojo.html}scm:update-subprojects}} - command for updating all projects in a multi project build |
| 71 |
|
| 72 |
* {{{./validate-mojo.html}scm:validate}} - validate the scm information in the pom |
| 73 |
|
| 74 |
[] |
| 75 |
|
| 76 |
* Usage |
| 77 |
|
| 78 |
General instructions on how to use the SCM Plugin can be found on the {{{./usage.html}usage page}}. Some more |
| 79 |
specific use cases are described in the examples given below. |
| 80 |
|
| 81 |
In case you still have questions regarding the plugin's usage, please feel |
| 82 |
free to contact the {{{./mailing-lists.html}user mailing list}}. The posts to the mailing list are archived and could |
| 83 |
already contain the answer to your question as part of an older thread. Hence, it is also worth browsing/searching |
| 84 |
the {{{./mailing-lists.html}mail archive}}. |
| 85 |
|
| 86 |
If you feel like the plugin is missing a feature or has a defect, you can fill a feature request or bug report in our |
| 87 |
{{{./issue-management.html}issue tracker}}. When creating a new issue, please provide a comprehensive description of your |
| 88 |
concern. Especially for fixing bugs it is crucial that the developers can reproduce your problem. For this reason, |
| 89 |
entire debug logs, POMs or most preferably little demo projects attached to the issue are very much appreciated. |
| 90 |
Of course, patches are welcome, too. Contributors can check out the project from our |
| 91 |
{{{./scm.html}source repository}} and will find supplementary information in the |
| 92 |
{{{http://maven.apache.org/guides/development/guide-helping.html}guide to helping with Maven}}. |
| 93 |
|
| 94 |
* Examples |
| 95 |
|
| 96 |
To provide you with better understanding on some usages of the Maven SCM Plugin, |
| 97 |
you can take a look into the following examples: |
| 98 |
|
| 99 |
* {{{./examples/bootstrapping-with-pom.html}Bootstrapping using a POM file}} |
| 100 |
|
| 101 |
* {{{./examples/scm-advance-features.html}Other advanced scm commands}} |
| 102 |
|
| 103 |
[] |