Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.2
-
Fix Version/s: 2.3
-
Labels:None
-
Patch Submitted:Yes
-
Number of attachments :
Description
Hi,
The attached patch includes support for SCM 'provider implementations', similar to what is included in the Maven Release Plugin. I made this change because I wanted to use the Changelog plugin with the maven-scm-provider-svnjava project (an SVN provider that uses SVNkit):
http://code.google.com/a/apache-extras.org/p/maven-scm-provider-svnjava/
I can confirm the patch works, and appears to generate a valid changelog report in the Maven site, when used with Maven 3.0.3 and a Maven project that follows this example POM structure:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>uk.co.example</groupId>
<artifactId>example-project</artifactId>
<packaging>pom</packaging>
<version>1.0.0-SNAPSHOT</version>
<name>Example Project</name>
<scm>
<url>http://example.co.uk/example-project</url>
<connection>scm:svn:http://svn.example.co.uk/example-project/trunk</connection>
<developerConnection>scm:svn:http://svn.example.co.uk/example-project/trunk</developerConnection>
</scm>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-changelog-plugin</artifactId>
<version>2.3-SNAPSHOT</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>3.0-beta-3</version>
<configuration>
<reportPlugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-changelog-plugin</artifactId>
<configuration>
<issueIDRegexPattern>[A-Z]{2,}-\d+</issueIDRegexPattern>
<issueLinkUrl>http://jira.example.co.uk</issueLinkUrl>
<providerImplementations>
<svn>javasvn</svn>
</providerImplementations>
</configuration>
</plugin>
</reportPlugins>
</configuration>
</plugin>
</plugins>
</build>
</project>