| ------ |
| Changing Scm Implementation |
| ------ |
| Olivier Lamy |
| ------ |
| 2011-09-17 |
| ------ |
| |
| ~~ 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 |
| |
| Changing Scm Implementation |
| |
| Starting version 2.3, you can change Apache Maven Scm implementation used for your scm (ie javasvn for svn scm). |
| |
| Standard configuration : |
| |
| +-----+ |
| <project> |
| ..... |
| <build> |
| <extensions> |
| <extension> |
| <groupId>com.google.code.maven-scm-provider-svnjava</groupId> |
| <artifactId>maven-scm-provider-svnjava</artifactId> |
| <version>1.13</version> |
| </extension> |
| </extensions> |
| |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-changelog-plugin</artifactId> |
| <version>${project.version}</version> |
| <dependencies> |
| <dependency> |
| <groupId>com.google.code.maven-scm-provider-svnjava</groupId> |
| <artifactId>maven-scm-provider-svnjava</artifactId> |
| <version>1.13</version> |
| </dependency> |
| </dependencies> |
| </plugin> |
| </plugins> |
| |
| </build> |
| <reporting> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-changelog-plugin</artifactId> |
| <version>${project.version}</version> |
| <configuration> |
| <providerImplementations> |
| <svn>javasvn</svn> |
| </providerImplementations> |
| </configuration> |
| </plugin> |
| </plugins> |
| </reporting> |
| ... |
| </project> |
| +-----+ |
| |
| Configuration with Maven 3 only and the new site plugin configuration. |
| |
| +-----+ |
| <project> |
| ... |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-changelog-plugin</artifactId> |
| <version>${project.version}</version> |
| <dependencies> |
| <dependency> |
| <groupId>com.google.code.maven-scm-provider-svnjava</groupId> |
| <artifactId>maven-scm-provider-svnjava</artifactId> |
| <version>1.13</version> |
| </dependency> |
| </dependencies> |
| </plugin> |
| <plugin> |
| <artifactId>maven-site-plugin</artifactId> |
| <version>${sitePluginVersion}</version> |
| <configuration> |
| <reportPlugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-changelog-plugin</artifactId> |
| <configuration> |
| <providerImplementations> |
| <svn>javasvn</svn> |
| </providerImplementations> |
| </configuration> |
| </plugin> |
| </reportPlugins> |
| </configuration> |
| </plugin> |
| </plugins> |
| ... |
| </project> |
| +-----+ |