Author: olamy
Date: Fri Sep 16 21:07:16 2011
New Revision: 1171783

URL: http://svn.apache.org/viewvc?rev=1171783&view=rev
Log:
[MCHANGELOG-123] Patch with support for SCM provider implementations (similar 
to release plugin)
add it test

Added:
    maven/plugins/trunk/maven-changelog-plugin/src/it/with-svnjava/
    
maven/plugins/trunk/maven-changelog-plugin/src/it/with-svnjava/invoker.properties
    maven/plugins/trunk/maven-changelog-plugin/src/it/with-svnjava/pom.xml
    maven/plugins/trunk/maven-changelog-plugin/src/it/with-svnjava/verify.groovy
Modified:
    maven/plugins/trunk/maven-changelog-plugin/pom.xml

Modified: maven/plugins/trunk/maven-changelog-plugin/pom.xml
URL: 
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-changelog-plugin/pom.xml?rev=1171783&r1=1171782&r2=1171783&view=diff
==============================================================================
--- maven/plugins/trunk/maven-changelog-plugin/pom.xml (original)
+++ maven/plugins/trunk/maven-changelog-plugin/pom.xml Fri Sep 16 21:07:16 2011
@@ -132,7 +132,7 @@ under the License.
     <maven-scm.version>1.4</maven-scm.version>
     <doxiaVersion>1.0</doxiaVersion>
     <mavenVersion>2.0.6</mavenVersion>
-    <sitePluginVersion>2.0.1</sitePluginVersion>
+    <sitePluginVersion>3.0</sitePluginVersion>
   </properties>
 
   <dependencies>
@@ -346,19 +346,6 @@ under the License.
     </profile>
 
     <profile>
-      <id>maven-3</id>
-      <activation>
-        <file>
-          <!-- This employs that the basedir expression is only recognized by 
Maven 3.x (see MNG-2363) -->
-          <exists>${basedir}</exists>
-        </file>
-      </activation>
-      <properties>
-        <sitePluginVersion>3.0-beta-2</sitePluginVersion>
-      </properties>
-    </profile>
-
-    <profile>
       <id>reporting</id>
       <reporting>
         <plugins>

Added: 
maven/plugins/trunk/maven-changelog-plugin/src/it/with-svnjava/invoker.properties
URL: 
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-changelog-plugin/src/it/with-svnjava/invoker.properties?rev=1171783&view=auto
==============================================================================
--- 
maven/plugins/trunk/maven-changelog-plugin/src/it/with-svnjava/invoker.properties
 (added)
+++ 
maven/plugins/trunk/maven-changelog-plugin/src/it/with-svnjava/invoker.properties
 Fri Sep 16 21:07:16 2011
@@ -0,0 +1 @@
+invoker.maven.version = 3.0+

Added: maven/plugins/trunk/maven-changelog-plugin/src/it/with-svnjava/pom.xml
URL: 
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-changelog-plugin/src/it/with-svnjava/pom.xml?rev=1171783&view=auto
==============================================================================
--- maven/plugins/trunk/maven-changelog-plugin/src/it/with-svnjava/pom.xml 
(added)
+++ maven/plugins/trunk/maven-changelog-plugin/src/it/with-svnjava/pom.xml Fri 
Sep 16 21:07:16 2011
@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ 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.
+  -->
+
+<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>org.apache.maven.plugins.changelog</groupId>
+  <artifactId>minimal-pom</artifactId>
+  <version>1.0-SNAPSHOT</version>
+  <packaging>jar</packaging>
+
+  <url>http://maven.apache.org/</url>
+
+  <scm>
+    
<connection>scm:svn:http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-changelog-plugin/</connection>
+    
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-changelog-plugin/</developerConnection>
+    
<url>http://svn.apache.org/viewvc/maven/plugins/trunk/maven-changelog-plugin/</url>
+  </scm>
+
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+
+  <build>
+
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-changelog-plugin</artifactId>
+        <version>@pom.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>
+                <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>

Added: 
maven/plugins/trunk/maven-changelog-plugin/src/it/with-svnjava/verify.groovy
URL: 
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-changelog-plugin/src/it/with-svnjava/verify.groovy?rev=1171783&view=auto
==============================================================================
--- 
maven/plugins/trunk/maven-changelog-plugin/src/it/with-svnjava/verify.groovy 
(added)
+++ 
maven/plugins/trunk/maven-changelog-plugin/src/it/with-svnjava/verify.groovy 
Fri Sep 16 21:07:16 2011
@@ -0,0 +1,34 @@
+
+/*
+ * 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.
+ */
+assert new File( basedir, 'target/site' ).exists();
+assert new File( basedir, 'target/site' ).isDirectory();
+
+assert new File( basedir, 'target/site/changelog.html' ).exists();
+assert new File( basedir, 'target/site/changelog.html' ).isFile();
+assert new File( basedir, 'target/site/dev-activity.html' ).exists();
+assert new File( basedir, 'target/site/dev-activity.html' ).isFile();
+assert new File( basedir, 'target/site/file-activity.html' ).exists();
+assert new File( basedir, 'target/site/file-activity.html' ).isFile();
+
+content = new File( basedir, 'build.log' ).text;
+
+assert content.contains( 'Change the default \'svn\' provider implementation 
to \'javasvn\'.' );
+
+return true;
\ No newline at end of file


Reply via email to