This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-changes-plugin.git

commit 8753347e70166a3b1e1f856ecb690b18ebb0c6de
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Thu Nov 26 09:11:37 2026 +0000

    Restore report-changes-system-noissuemanagement IT
---
 .../pom.xml                                        | 97 ++++++++++++++++++++++
 .../src/changes/changes.xml                        | 53 ++++++++++++
 .../verify.groovy                                  | 33 ++++++++
 3 files changed, 183 insertions(+)

diff --git a/src/it/report-changes-system-noissuemanagement/pom.xml 
b/src/it/report-changes-system-noissuemanagement/pom.xml
new file mode 100644
index 0000000..14644dc
--- /dev/null
+++ b/src/it/report-changes-system-noissuemanagement/pom.xml
@@ -0,0 +1,97 @@
+<?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</groupId>
+  <artifactId>maven-changes-plugin-test</artifactId>
+  <version>99.0</version>
+  <name>Maven</name>
+  <packaging>jar</packaging>
+  <description>Test report without issueManagement entry.</description>
+  <dependencies>
+  </dependencies>
+  <properties>
+    <changesPluginVersion>@project.version@</changesPluginVersion>
+  </properties>
+  <build>
+    <pluginManagement>
+      <plugins>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-changes-plugin</artifactId>
+          <version>${changesPluginVersion}</version>          
+        </plugin>
+      </plugins>
+    </pluginManagement>    
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-changes-plugin</artifactId>
+        <version>${changesPluginVersion}</version>    
+        <executions>
+          <execution>
+            <id>validate-changes</id>
+            <phase>pre-site</phase>
+            <goals>
+              <goal>changes-validate</goal>
+            </goals>
+            <configuration>
+              <failOnError>true</failOnError>
+            </configuration>
+          </execution>
+        </executions>              
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-site-plugin</artifactId>
+        <version>@version.maven-site-plugin@</version>
+      </plugin>      
+    </plugins>
+  </build>  
+  <reporting>
+    <excludeDefaults>true</excludeDefaults>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-changes-plugin</artifactId>
+        <version>@project.version@</version>
+        <configuration>
+          <issueLinkTemplatePerSystem>
+            <default>http://myjira/browse/%ISSUE%</default>
+            <qc>http://localhost/%ISSUE%</qc>
+            <redmine>http://www.redmine.org/show/issue/%ISSUE%</redmine>
+          </issueLinkTemplatePerSystem>
+          <addActionDate>true</addActionDate>
+        </configuration>
+        <reportSets>
+          <reportSet>
+            <reports>
+              <report>changes</report>
+            </reports>
+          </reportSet>
+        </reportSets>
+      </plugin>
+    </plugins>
+  </reporting>
+  
+</project>
diff --git 
a/src/it/report-changes-system-noissuemanagement/src/changes/changes.xml 
b/src/it/report-changes-system-noissuemanagement/src/changes/changes.xml
new file mode 100644
index 0000000..32e2eff
--- /dev/null
+++ b/src/it/report-changes-system-noissuemanagement/src/changes/changes.xml
@@ -0,0 +1,53 @@
+<!--
+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.
+-->
+
+<document xmlns="http://maven.apache.org/changes/2.0.0";
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+  xsi:schemaLocation="http://maven.apache.org/changes/2.0.0 
http://maven.apache.org/xsd/changes-2.0.0.xsd";>
+  <properties>
+    <title>Changes report Project</title>
+    <author email="[email protected]">Mr Zloug</author>
+  </properties>
+  <body>
+    <release version="1.1" date="2005-03-01" description="Subsequent release">
+      <action dev="me" type="add">
+        Added additional documentation on how to configure the plugin.
+      </action>
+      <action dev="me" type="fix" issue="MCHANGES-88">
+        Enable retrieving component-specific issues.
+      </action>
+      <action dev="me" type="fix" issue="1212" system="qc">
+        Enable retrieving component-specific issues.
+      </action>      
+      <action dev="TheOneAndOnly" type="update" issue="88" system="redmine">
+        Updated library dependency.
+      </action>
+      <action dev="jruiz" type="remove" due-to="others" 
due-to-email="[email protected]">
+        The element type " link " must be terminated by the matching end-tag.
+        Deleted the erroneous code.
+      </action>
+    </release>
+
+    <release version="1.0" date="2005-01-01" description="First release">
+      <action dev="me" type="update" date="2008-01-01">
+        Uploaded documentation on how to use the plugin.
+      </action>
+    </release>
+  </body>
+</document>
diff --git a/src/it/report-changes-system-noissuemanagement/verify.groovy 
b/src/it/report-changes-system-noissuemanagement/verify.groovy
new file mode 100644
index 0000000..9788784
--- /dev/null
+++ b/src/it/report-changes-system-noissuemanagement/verify.groovy
@@ -0,0 +1,33 @@
+
+/*
+ * 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.
+ */
+
+import java.nio.file.*
+
+File report = new File(basedir, "target/site/changes.html")
+assert report.exists() : "report file is missing."
+assert !report.isDirectory() : "report file is a directory."
+String reportContent = new String(Files.readAllBytes( report.toPath() ), 
"UTF-8")
+
+assert reportContent.contains( "Changes" ) : "changes.html doesn't contain 
Changes title"
+
+assert reportContent.contains( "href=\"http://myjira/browse/MCHANGES-88\""; ) : 
"changes.html doesn't contain jira issue link"
+assert reportContent.contains( "href=\"http://localhost/1212\""; ) : 
"changes.html doesn't contain qc issue link"
+assert reportContent.contains( "href=\"http://www.redmine.org/show/issue/88\""; 
) : "changes.html doesn't contain redmine issue link"
+assert reportContent.contains( "2008-01-01" ) : "changes.html doesn't contain 
date 2008-01-01"

Reply via email to