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
The following commit(s) were added to refs/heads/master by this push:
new 23b7686 Add integration tests for the check, validate and announce
goals
23b7686 is described below
commit 23b7686d8e35d68a196a0ef62f996d50db2534d8
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Sat Nov 14 15:22:28 2026 +0100
Add integration tests for the check, validate and announce goals
---
src/it/announce-generate-jira/invoker.properties | 18 ++++
src/it/announce-generate-jira/pom.xml | 53 +++++++++
src/it/announce-generate-jira/setup.groovy | 118 +++++++++++++++++++++
src/it/announce-generate-jira/verify.groovy | 28 +++++
.../invoker.properties | 18 ++++
src/it/announce-generate-project-values/pom.xml | 50 +++++++++
.../src/changes/changes.xml | 61 +++++++++++
.../templates/values.vm | 29 +++++
.../announce-generate-project-values/verify.groovy | 33 ++++++
.../invoker.properties | 18 ++++
src/it/announce-mail-sender-parameter/pom.xml | 66 ++++++++++++
src/it/announce-mail-sender-parameter/setup.groovy | 72 +++++++++++++
.../src/changes/changes.xml | 61 +++++++++++
.../announce-mail-sender-parameter/verify.groovy | 31 ++++++
src/it/announce-mail/invoker.properties | 18 ++++
src/it/announce-mail/pom.xml | 65 ++++++++++++
src/it/announce-mail/setup.groovy | 72 +++++++++++++
src/it/announce-mail/src/changes/changes.xml | 61 +++++++++++
src/it/announce-mail/verify.groovy | 38 +++++++
.../changes-check-invalid-date/invoker.properties | 19 ++++
src/it/changes-check-invalid-date/pom.xml | 37 +++++++
.../src/changes/changes.xml | 29 +++++
src/it/changes-check-invalid-date/verify.groovy | 22 ++++
.../custom/my-changes.xml | 29 +++++
.../invoker.properties | 19 ++++
.../changes-check-relative-xmlpath-invalid/pom.xml | 39 +++++++
.../verify.groovy | 21 ++++
.../custom/my-changes.xml | 29 +++++
.../invoker.properties | 18 ++++
src/it/changes-check-relative-xmlpath/pom.xml | 39 +++++++
.../changes-check-relative-xmlpath/verify.groovy | 22 ++++
.../invoker.properties | 18 ++++
src/it/changes-check-skip-snapshots/pom.xml | 39 +++++++
.../src/changes/changes.xml | 29 +++++
src/it/changes-check-skip-snapshots/verify.groovy | 20 ++++
src/it/changes-check-valid/invoker.properties | 18 ++++
src/it/changes-check-valid/pom.xml | 39 +++++++
src/it/changes-check-valid/src/changes/changes.xml | 29 +++++
src/it/changes-check-valid/verify.groovy | 22 ++++
.../invoker.properties | 19 ++++
src/it/changes-validate-invalid-fails/pom.xml | 39 +++++++
.../src/changes/changes.xml | 27 +++++
.../changes-validate-invalid-fails/verify.groovy | 21 ++++
.../invoker.properties | 18 ++++
src/it/changes-validate-invalid-warns/pom.xml | 37 +++++++
.../src/changes/changes.xml | 27 +++++
.../changes-validate-invalid-warns/verify.groovy | 22 ++++
47 files changed, 1657 insertions(+)
diff --git a/src/it/announce-generate-jira/invoker.properties
b/src/it/announce-generate-jira/invoker.properties
new file mode 100644
index 0000000..77488c8
--- /dev/null
+++ b/src/it/announce-generate-jira/invoker.properties
@@ -0,0 +1,18 @@
+# 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.
+
+invoker.goals = changes:announcement-generate
diff --git a/src/it/announce-generate-jira/pom.xml
b/src/it/announce-generate-jira/pom.xml
new file mode 100644
index 0000000..5693185
--- /dev/null
+++ b/src/it/announce-generate-jira/pom.xml
@@ -0,0 +1,53 @@
+<?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.changes.it</groupId>
+ <artifactId>announce-generate-jira</artifactId>
+ <version>99.0</version>
+ <name>Maven</name>
+ <description>Announcement from JIRA.</description>
+ <url>http://www.foo.com</url>
+
+ <issueManagement>
+ <system>jira</system>
+ <url>${mockServerUrl}/browse/TEST_PROJECT</url>
+ </issueManagement>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>@project.groupId@</groupId>
+ <artifactId>@project.artifactId@</artifactId>
+ <version>@project.version@</version>
+ <configuration>
+ <issueManagementSystems>
+ <issueManagementSystem>JIRA</issueManagementSystem>
+ </issueManagementSystems>
+ <jiraServerId>jira</jiraServerId>
+ <templateEncoding>UTF-8</templateEncoding>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/src/it/announce-generate-jira/setup.groovy
b/src/it/announce-generate-jira/setup.groovy
new file mode 100644
index 0000000..762c3ad
--- /dev/null
+++ b/src/it/announce-generate-jira/setup.groovy
@@ -0,0 +1,118 @@
+/*
+ * 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 com.github.tomakehurst.wiremock.WireMockServer
+import com.github.tomakehurst.wiremock.common.ConsoleNotifier
+import com.github.tomakehurst.wiremock.core.WireMockConfiguration
+
+import static com.github.tomakehurst.wiremock.client.WireMock.aResponse
+import static com.github.tomakehurst.wiremock.client.WireMock.configureFor
+import static com.github.tomakehurst.wiremock.client.WireMock.equalTo
+import static com.github.tomakehurst.wiremock.client.WireMock.equalToJson
+import static com.github.tomakehurst.wiremock.client.WireMock.get
+import static com.github.tomakehurst.wiremock.client.WireMock.post
+import static com.github.tomakehurst.wiremock.client.WireMock.stubFor
+
+WireMockServer wireMockServer = new
WireMockServer(WireMockConfiguration.options()
+ .dynamicPort()
+ .notifier(new ConsoleNotifier(false)))
+wireMockServer.start()
+
+def userProperties = context.get('userProperties')
+userProperties.put('mockServerUrl', wireMockServer.baseUrl())
+
+configureFor(wireMockServer.port())
+
+stubFor(get('/rest/api/2/serverInfo')
+ .withHeader('accept', equalTo('application/json'))
+ .willReturn(aResponse().withStatus(200)))
+
+stubFor(post('/rest/auth/1/session')
+ .withHeader('accept', equalTo('application/json'))
+ .withHeader('content-type', equalTo('application/json'))
+ .withRequestBody(equalToJson('{"username" : "jira-test", "password" :
"jira-password"}'))
+ .willReturn(aResponse()
+ .withStatus(200)
+ .withHeader('Set-Cookie',
'JSESSIONID=D6961281D4A029FFA4E6BC8A526CF5CC; Path=/; HttpOnly')))
+
+stubFor(get('/rest/api/2/status')
+ .withHeader('accept', equalTo('application/json'))
+ .withCookie('JSESSIONID', equalTo('D6961281D4A029FFA4E6BC8A526CF5CC'))
+ .willReturn(aResponse().withStatus(200)
+ .withBody('[{"name": "Closed","id": "6"}]')))
+
+stubFor(get('/rest/api/2/resolution')
+ .withHeader('accept', equalTo('application/json'))
+ .withCookie('JSESSIONID', equalTo('D6961281D4A029FFA4E6BC8A526CF5CC'))
+ .willReturn(aResponse().withStatus(200)
+ .withBody('[{"name": "Fixed","id": "1"}]')))
+
+stubFor(post('/rest/api/2/search')
+ .withHeader('accept', equalTo('application/json'))
+ .withHeader('content-type', equalTo('application/json'))
+ .withCookie('JSESSIONID', equalTo('D6961281D4A029FFA4E6BC8A526CF5CC'))
+ .withRequestBody(equalToJson('''
+ {"jql":"project = TEST_PROJECT AND status in (6) AND resolution in
(1)",
+ "maxResults":25, "fields":["*all"]}
+'''))
+ .willReturn(aResponse().withStatus(200)
+ .withBody('''
+{
+ "issues": [
+ {
+ "id": "13036790",
+ "key": "TEST_PROJECT-1",
+ "fields": {
+ "assignee": {
+ "name": "assigned-user",
+ "displayName": "Assigned User"
+ },
+ "created": "2024-11-21T12:10:35.000+0000",
+ "updated": "2024-11-22T20:05:52.000+0000",
+ "components": [
+ { "name": "jira" }
+ ],
+ "fixVersions": [
+ { "name": "99.0" }
+ ],
+ "issuetype": {
+ "name": "Bug"
+ },
+ "priority": {
+ "name": null
+ },
+ "reporter": null,
+ "resolution": {
+ "name": "Fixed"
+ },
+ "status": {
+ "name": "Closed"
+ },
+ "summary": "Authentication does not work after Upgrade",
+ "versions": [
+ { "name": "2.12.1" }
+ ]
+ }
+ }]
+}
+''')))
+
+context.put("wireMockServer", wireMockServer)
+true
+
diff --git a/src/it/announce-generate-jira/verify.groovy
b/src/it/announce-generate-jira/verify.groovy
new file mode 100644
index 0000000..bb4892d
--- /dev/null
+++ b/src/it/announce-generate-jira/verify.groovy
@@ -0,0 +1,28 @@
+/*
+ * 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 com.github.tomakehurst.wiremock.WireMockServer
+
+WireMockServer wireMockServer = context.get("wireMockServer")
+wireMockServer.stop()
+
+String text = new File(basedir, 'target/announcement/announcement.vm').text
+
+assert text.contains('Fixed Bugs:')
+assert text.contains('o Authentication does not work after Upgrade Issue:
TEST_PROJECT-1.')
diff --git a/src/it/announce-generate-project-values/invoker.properties
b/src/it/announce-generate-project-values/invoker.properties
new file mode 100644
index 0000000..77488c8
--- /dev/null
+++ b/src/it/announce-generate-project-values/invoker.properties
@@ -0,0 +1,18 @@
+# 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.
+
+invoker.goals = changes:announcement-generate
diff --git a/src/it/announce-generate-project-values/pom.xml
b/src/it/announce-generate-project-values/pom.xml
new file mode 100644
index 0000000..e6aca30
--- /dev/null
+++ b/src/it/announce-generate-project-values/pom.xml
@@ -0,0 +1,50 @@
+<?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/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.apache.maven.plugins.changes.it</groupId>
+ <artifactId>announce-generate-project-values</artifactId>
+ <version>1.1</version>
+
+ <name>Values Project</name>
+ <description>Project description.</description>
+ <url>https://example.org/values</url>
+ <packaging>pom</packaging>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>@project.groupId@</groupId>
+ <artifactId>@project.artifactId@</artifactId>
+ <version>@project.version@</version>
+ <configuration>
+ <template>values.vm</template>
+ <templateDirectory>templates</templateDirectory>
+ <urlDownload>https://example.org/download</urlDownload>
+ <announceParameters>
+ <greeting>hello</greeting>
+ </announceParameters>
+ <templateEncoding>UTF-8</templateEncoding>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/src/it/announce-generate-project-values/src/changes/changes.xml
b/src/it/announce-generate-project-values/src/changes/changes.xml
new file mode 100644
index 0000000..12b15e4
--- /dev/null
+++ b/src/it/announce-generate-project-values/src/changes/changes.xml
@@ -0,0 +1,61 @@
+<!--
+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="jruiz" type="remove" issue="MCHANGES-899"
+ fixed-issues="MCHANGES-1,JIRA-12"
+ due-to="John Doe,John Doe" due-to-email="[email protected]">
+ The element type " link " must be terminated by the matching end-tag.
+ Deleted the erroneous code.
+ </action>
+ <action dev="you" type="update" issue="MCHANGES-999"
+ fixed-issues="bug-12345"
+ system="bugzilla"
+ due-to="External Submitter,John Doe"
due-to-email=",[email protected]">
+ Handle different issue systems.
+ </action>
+ <action dev="him" type="update"
+ due-to="John Doe,John Doe" due-to-email="[email protected]">
+ Updated dependencies.
+ </action>
+ </release>
+
+ <release version="1.0" date="2005-01-01" description="First release">
+ <action dev="me" type="update" issue="MCHANGES-47"
+ fixed-issues="MCHANGES-88,JIRA-YYY"
+ due-to="others,John Doe,John Doe"
due-to-email="[email protected],[email protected]">
+ Uploaded documentation on how to use the plugin.
+ </action>
+ </release>
+ </body>
+</document>
\ No newline at end of file
diff --git a/src/it/announce-generate-project-values/templates/values.vm
b/src/it/announce-generate-project-values/templates/values.vm
new file mode 100644
index 0000000..02df1c2
--- /dev/null
+++ b/src/it/announce-generate-project-values/templates/values.vm
@@ -0,0 +1,29 @@
+## 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.
+groupId=${groupId}
+artifactId=${artifactId}
+version=${version}
+packaging=${packaging}
+url=${url}
+introduction=${introduction}
+team=${developmentTeam}
+finalName=${finalName}
+download=${urlDownload}
+projectName=${project.name}
+projectArtifactId=${project.artifactId}
+param=${announceParameters.greeting}
+release=${release.version}
diff --git a/src/it/announce-generate-project-values/verify.groovy
b/src/it/announce-generate-project-values/verify.groovy
new file mode 100644
index 0000000..beb6491
--- /dev/null
+++ b/src/it/announce-generate-project-values/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.
+ */
+String text = new File( basedir, "target/announcement/values.vm" ).text
+assert text.contains( "groupId=org.apache.maven.plugins.changes.it" )
+assert text.contains( "artifactId=announce-generate-project-values" )
+assert text.contains( "version=1.1" )
+assert text.contains( "packaging=pom" )
+assert text.contains( "url=https://example.org/values" )
+assert text.contains( "introduction=Project description." )
+assert text.contains( "team=Values Project team" )
+assert text.contains( "finalName=announce-generate-project-values-1.1" )
+assert text.contains( "download=https://example.org/download" )
+assert text.contains( "projectName=Values Project" )
+assert text.contains( "projectArtifactId=announce-generate-project-values" )
+assert text.contains( "param=hello" )
+assert text.contains( "release=1.1" )
diff --git a/src/it/announce-mail-sender-parameter/invoker.properties
b/src/it/announce-mail-sender-parameter/invoker.properties
new file mode 100644
index 0000000..41af088
--- /dev/null
+++ b/src/it/announce-mail-sender-parameter/invoker.properties
@@ -0,0 +1,18 @@
+# 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.
+
+invoker.goals = changes:announcement-mail
diff --git a/src/it/announce-mail-sender-parameter/pom.xml
b/src/it/announce-mail-sender-parameter/pom.xml
new file mode 100644
index 0000000..a82a108
--- /dev/null
+++ b/src/it/announce-mail-sender-parameter/pom.xml
@@ -0,0 +1,66 @@
+<?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/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.apache.maven.plugins.changes.it</groupId>
+ <artifactId>announce-mail-sender-parameter</artifactId>
+ <version>1.1</version>
+ <name>Mail Project</name>
+ <description>Mail test.</description>
+ <url>http://www.foo.com</url>
+
+ <developers>
+ <developer>
+ <id>first</id>
+ <name>First Developer</name>
+ <email>[email protected]</email>
+ </developer>
+ <developer>
+ <id>second</id>
+ <name>Second Developer</name>
+ <email>[email protected]</email>
+ </developer>
+ </developers>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>@project.groupId@</groupId>
+ <artifactId>@project.artifactId@</artifactId>
+ <version>@project.version@</version>
+ <configuration>
+ <smtpHost>127.0.0.1</smtpHost>
+ <smtpPort>${smtpPort}</smtpPort>
+ <templateEncoding>UTF-8</templateEncoding>
+ <toAddresses>
+ <toAddress>[email protected]</toAddress>
+ <toAddress>[email protected]</toAddress>
+ </toAddresses>
+ <mailSender>
+ <name>Release Manager</name>
+ <email>[email protected]</email>
+ </mailSender>
+ <subject>Custom subject for ${project.version}</subject>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/src/it/announce-mail-sender-parameter/setup.groovy
b/src/it/announce-mail-sender-parameter/setup.groovy
new file mode 100644
index 0000000..e100098
--- /dev/null
+++ b/src/it/announce-mail-sender-parameter/setup.groovy
@@ -0,0 +1,72 @@
+
+/*
+ * 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.net.ServerSocket
+import java.net.Socket
+
+// A minimal SMTP server that accepts one message and keeps its raw text for
verify.groovy.
+ServerSocket server = new ServerSocket(0, 1,
InetAddress.getByName('127.0.0.1'))
+List messages = Collections.synchronizedList([])
+
+Thread thread = new Thread({
+ while (!server.isClosed()) {
+ try {
+ Socket socket = server.accept()
+ socket.withCloseable {
+ def reader = new BufferedReader(new
InputStreamReader(socket.inputStream, 'ISO-8859-1'))
+ def writer = new PrintWriter(new
OutputStreamWriter(socket.outputStream, 'ISO-8859-1'), true)
+ def send = { String line -> writer.print(line + '\r\n');
writer.flush() }
+ StringBuilder envelope = new StringBuilder()
+ send('220 localhost fake SMTP')
+ String line
+ while ((line = reader.readLine()) != null) {
+ String cmd = line.toUpperCase()
+ if (cmd.startsWith('EHLO') || cmd.startsWith('HELO')) {
+ send('250 localhost')
+ } else if (cmd.startsWith('MAIL FROM') ||
cmd.startsWith('RCPT TO')) {
+ envelope.append(line).append('\n')
+ send('250 OK')
+ } else if (cmd.startsWith('DATA')) {
+ send('354 go ahead')
+ StringBuilder data = new StringBuilder()
+ while ((line = reader.readLine()) != null && line !=
'.') {
+ data.append(line).append('\n')
+ }
+ messages.add(envelope.toString() + '\n' +
data.toString())
+ send('250 queued')
+ } else if (cmd.startsWith('QUIT')) {
+ send('221 bye')
+ break
+ } else {
+ send('250 OK')
+ }
+ }
+ }
+ } catch (IOException ignored) {
+ // server closed
+ }
+ }
+} as Runnable)
+thread.daemon = true
+thread.start()
+
+context.get('userProperties').put('smtpPort', String.valueOf(server.localPort))
+context.put('smtpServer', server)
+context.put('smtpMessages', messages)
+true
diff --git a/src/it/announce-mail-sender-parameter/src/changes/changes.xml
b/src/it/announce-mail-sender-parameter/src/changes/changes.xml
new file mode 100644
index 0000000..12b15e4
--- /dev/null
+++ b/src/it/announce-mail-sender-parameter/src/changes/changes.xml
@@ -0,0 +1,61 @@
+<!--
+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="jruiz" type="remove" issue="MCHANGES-899"
+ fixed-issues="MCHANGES-1,JIRA-12"
+ due-to="John Doe,John Doe" due-to-email="[email protected]">
+ The element type " link " must be terminated by the matching end-tag.
+ Deleted the erroneous code.
+ </action>
+ <action dev="you" type="update" issue="MCHANGES-999"
+ fixed-issues="bug-12345"
+ system="bugzilla"
+ due-to="External Submitter,John Doe"
due-to-email=",[email protected]">
+ Handle different issue systems.
+ </action>
+ <action dev="him" type="update"
+ due-to="John Doe,John Doe" due-to-email="[email protected]">
+ Updated dependencies.
+ </action>
+ </release>
+
+ <release version="1.0" date="2005-01-01" description="First release">
+ <action dev="me" type="update" issue="MCHANGES-47"
+ fixed-issues="MCHANGES-88,JIRA-YYY"
+ due-to="others,John Doe,John Doe"
due-to-email="[email protected],[email protected]">
+ Uploaded documentation on how to use the plugin.
+ </action>
+ </release>
+ </body>
+</document>
\ No newline at end of file
diff --git a/src/it/announce-mail-sender-parameter/verify.groovy
b/src/it/announce-mail-sender-parameter/verify.groovy
new file mode 100644
index 0000000..0115a5e
--- /dev/null
+++ b/src/it/announce-mail-sender-parameter/verify.groovy
@@ -0,0 +1,31 @@
+
+/*
+ * 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.net.ServerSocket
+
+ServerSocket server = context.get("smtpServer")
+List messages = context.get("smtpMessages")
+server.close()
+
+assert messages.size() == 2
+String mail = messages.join( "\n" )
+assert mail.contains( "MAIL FROM: <[email protected]>" )
+assert mail.contains( "Release Manager" )
+assert !mail.contains( "[email protected]" )
+assert mail.contains( "Subject: Custom subject for 1.1" )
diff --git a/src/it/announce-mail/invoker.properties
b/src/it/announce-mail/invoker.properties
new file mode 100644
index 0000000..41af088
--- /dev/null
+++ b/src/it/announce-mail/invoker.properties
@@ -0,0 +1,18 @@
+# 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.
+
+invoker.goals = changes:announcement-mail
diff --git a/src/it/announce-mail/pom.xml b/src/it/announce-mail/pom.xml
new file mode 100644
index 0000000..b6c7cf7
--- /dev/null
+++ b/src/it/announce-mail/pom.xml
@@ -0,0 +1,65 @@
+<?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/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.apache.maven.plugins.changes.it</groupId>
+ <artifactId>announce-mail</artifactId>
+ <version>1.1</version>
+ <name>Mail Project</name>
+ <description>Mail test.</description>
+ <url>http://www.foo.com</url>
+
+ <developers>
+ <developer>
+ <id>first</id>
+ <name>First Developer</name>
+ <email>[email protected]</email>
+ </developer>
+ <developer>
+ <id>second</id>
+ <name>Second Developer</name>
+ <email>[email protected]</email>
+ </developer>
+ </developers>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>@project.groupId@</groupId>
+ <artifactId>@project.artifactId@</artifactId>
+ <version>@project.version@</version>
+ <configuration>
+ <smtpHost>127.0.0.1</smtpHost>
+ <smtpPort>${smtpPort}</smtpPort>
+ <templateEncoding>UTF-8</templateEncoding>
+ <toAddresses>
+ <toAddress>[email protected]</toAddress>
+ <toAddress>[email protected]</toAddress>
+ </toAddresses>
+ <fromDeveloperId>second</fromDeveloperId>
+ <ccAddresses>
+ <ccAddress>[email protected]</ccAddress>
+ </ccAddresses>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/src/it/announce-mail/setup.groovy
b/src/it/announce-mail/setup.groovy
new file mode 100644
index 0000000..e100098
--- /dev/null
+++ b/src/it/announce-mail/setup.groovy
@@ -0,0 +1,72 @@
+
+/*
+ * 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.net.ServerSocket
+import java.net.Socket
+
+// A minimal SMTP server that accepts one message and keeps its raw text for
verify.groovy.
+ServerSocket server = new ServerSocket(0, 1,
InetAddress.getByName('127.0.0.1'))
+List messages = Collections.synchronizedList([])
+
+Thread thread = new Thread({
+ while (!server.isClosed()) {
+ try {
+ Socket socket = server.accept()
+ socket.withCloseable {
+ def reader = new BufferedReader(new
InputStreamReader(socket.inputStream, 'ISO-8859-1'))
+ def writer = new PrintWriter(new
OutputStreamWriter(socket.outputStream, 'ISO-8859-1'), true)
+ def send = { String line -> writer.print(line + '\r\n');
writer.flush() }
+ StringBuilder envelope = new StringBuilder()
+ send('220 localhost fake SMTP')
+ String line
+ while ((line = reader.readLine()) != null) {
+ String cmd = line.toUpperCase()
+ if (cmd.startsWith('EHLO') || cmd.startsWith('HELO')) {
+ send('250 localhost')
+ } else if (cmd.startsWith('MAIL FROM') ||
cmd.startsWith('RCPT TO')) {
+ envelope.append(line).append('\n')
+ send('250 OK')
+ } else if (cmd.startsWith('DATA')) {
+ send('354 go ahead')
+ StringBuilder data = new StringBuilder()
+ while ((line = reader.readLine()) != null && line !=
'.') {
+ data.append(line).append('\n')
+ }
+ messages.add(envelope.toString() + '\n' +
data.toString())
+ send('250 queued')
+ } else if (cmd.startsWith('QUIT')) {
+ send('221 bye')
+ break
+ } else {
+ send('250 OK')
+ }
+ }
+ }
+ } catch (IOException ignored) {
+ // server closed
+ }
+ }
+} as Runnable)
+thread.daemon = true
+thread.start()
+
+context.get('userProperties').put('smtpPort', String.valueOf(server.localPort))
+context.put('smtpServer', server)
+context.put('smtpMessages', messages)
+true
diff --git a/src/it/announce-mail/src/changes/changes.xml
b/src/it/announce-mail/src/changes/changes.xml
new file mode 100644
index 0000000..12b15e4
--- /dev/null
+++ b/src/it/announce-mail/src/changes/changes.xml
@@ -0,0 +1,61 @@
+<!--
+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="jruiz" type="remove" issue="MCHANGES-899"
+ fixed-issues="MCHANGES-1,JIRA-12"
+ due-to="John Doe,John Doe" due-to-email="[email protected]">
+ The element type " link " must be terminated by the matching end-tag.
+ Deleted the erroneous code.
+ </action>
+ <action dev="you" type="update" issue="MCHANGES-999"
+ fixed-issues="bug-12345"
+ system="bugzilla"
+ due-to="External Submitter,John Doe"
due-to-email=",[email protected]">
+ Handle different issue systems.
+ </action>
+ <action dev="him" type="update"
+ due-to="John Doe,John Doe" due-to-email="[email protected]">
+ Updated dependencies.
+ </action>
+ </release>
+
+ <release version="1.0" date="2005-01-01" description="First release">
+ <action dev="me" type="update" issue="MCHANGES-47"
+ fixed-issues="MCHANGES-88,JIRA-YYY"
+ due-to="others,John Doe,John Doe"
due-to-email="[email protected],[email protected]">
+ Uploaded documentation on how to use the plugin.
+ </action>
+ </release>
+ </body>
+</document>
\ No newline at end of file
diff --git a/src/it/announce-mail/verify.groovy
b/src/it/announce-mail/verify.groovy
new file mode 100644
index 0000000..62875fb
--- /dev/null
+++ b/src/it/announce-mail/verify.groovy
@@ -0,0 +1,38 @@
+
+/*
+ * 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.net.ServerSocket
+
+ServerSocket server = context.get("smtpServer")
+List messages = context.get("smtpMessages")
+server.close()
+
+// the SMTP transport sends one message per recipient
+assert messages.size() == 3
+String mail = messages.join( "\n" )
+assert mail.contains( "MAIL FROM: <[email protected]>" )
+assert mail.contains( "RCPT TO: <[email protected]>" )
+assert mail.contains( "RCPT TO: <[email protected]>" )
+assert mail.contains( "RCPT TO: <[email protected]>" )
+assert mail.contains( "Subject: [ANNOUNCEMENT] - Mail Project 1.1 released" )
+assert mail.contains( "Second Developer" )
+// the forked announcement-generate goal produced the body
+assert mail.contains( "Changes in this version include:" )
+assert mail.contains( "o Added additional documentation on how to configure
the plugin." )
+assert new File( basedir, "target/announcement/announcement.vm" ).exists()
diff --git a/src/it/changes-check-invalid-date/invoker.properties
b/src/it/changes-check-invalid-date/invoker.properties
new file mode 100644
index 0000000..82cbd5a
--- /dev/null
+++ b/src/it/changes-check-invalid-date/invoker.properties
@@ -0,0 +1,19 @@
+# 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.
+
+invoker.buildResult = failure
+invoker.goals = changes:changes-check
diff --git a/src/it/changes-check-invalid-date/pom.xml
b/src/it/changes-check-invalid-date/pom.xml
new file mode 100644
index 0000000..aa9e169
--- /dev/null
+++ b/src/it/changes-check-invalid-date/pom.xml
@@ -0,0 +1,37 @@
+<?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/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.apache.maven.plugins.changes.it</groupId>
+ <artifactId>changes-check-invalid-date</artifactId>
+ <version>1.0</version>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>@project.groupId@</groupId>
+ <artifactId>@project.artifactId@</artifactId>
+ <version>@project.version@</version>
+
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/src/it/changes-check-invalid-date/src/changes/changes.xml
b/src/it/changes-check-invalid-date/src/changes/changes.xml
new file mode 100644
index 0000000..2cde7cc
--- /dev/null
+++ b/src/it/changes-check-invalid-date/src/changes/changes.xml
@@ -0,0 +1,29 @@
+<?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.
+-->
+
+<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">
+ <body>
+ <release version="1.0" date="pending" description="Release">
+ <action dev="me" type="add">Something new.</action>
+ </release>
+ </body>
+</document>
diff --git a/src/it/changes-check-invalid-date/verify.groovy
b/src/it/changes-check-invalid-date/verify.groovy
new file mode 100644
index 0000000..ebed8f7
--- /dev/null
+++ b/src/it/changes-check-invalid-date/verify.groovy
@@ -0,0 +1,22 @@
+
+/*
+ * 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.
+ */
+String log = new File( basedir, "build.log" ).text
+assert log.contains( "has an invalid release date." )
+assert log =~ /changes.xml has an invalid release date/
diff --git
a/src/it/changes-check-relative-xmlpath-invalid/custom/my-changes.xml
b/src/it/changes-check-relative-xmlpath-invalid/custom/my-changes.xml
new file mode 100644
index 0000000..2cde7cc
--- /dev/null
+++ b/src/it/changes-check-relative-xmlpath-invalid/custom/my-changes.xml
@@ -0,0 +1,29 @@
+<?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.
+-->
+
+<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">
+ <body>
+ <release version="1.0" date="pending" description="Release">
+ <action dev="me" type="add">Something new.</action>
+ </release>
+ </body>
+</document>
diff --git a/src/it/changes-check-relative-xmlpath-invalid/invoker.properties
b/src/it/changes-check-relative-xmlpath-invalid/invoker.properties
new file mode 100644
index 0000000..82cbd5a
--- /dev/null
+++ b/src/it/changes-check-relative-xmlpath-invalid/invoker.properties
@@ -0,0 +1,19 @@
+# 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.
+
+invoker.buildResult = failure
+invoker.goals = changes:changes-check
diff --git a/src/it/changes-check-relative-xmlpath-invalid/pom.xml
b/src/it/changes-check-relative-xmlpath-invalid/pom.xml
new file mode 100644
index 0000000..040540a
--- /dev/null
+++ b/src/it/changes-check-relative-xmlpath-invalid/pom.xml
@@ -0,0 +1,39 @@
+<?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/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.apache.maven.plugins.changes.it</groupId>
+ <artifactId>changes-check-relative-xmlpath-invalid</artifactId>
+ <version>1.0</version>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>@project.groupId@</groupId>
+ <artifactId>@project.artifactId@</artifactId>
+ <version>@project.version@</version>
+ <configuration>
+ <xmlPath>custom/my-changes.xml</xmlPath>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/src/it/changes-check-relative-xmlpath-invalid/verify.groovy
b/src/it/changes-check-relative-xmlpath-invalid/verify.groovy
new file mode 100644
index 0000000..abd19f8
--- /dev/null
+++ b/src/it/changes-check-relative-xmlpath-invalid/verify.groovy
@@ -0,0 +1,21 @@
+
+/*
+ * 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.
+ */
+String log = new File( basedir, "build.log" ).text
+assert log.contains( "my-changes.xml has an invalid release date." )
diff --git a/src/it/changes-check-relative-xmlpath/custom/my-changes.xml
b/src/it/changes-check-relative-xmlpath/custom/my-changes.xml
new file mode 100644
index 0000000..e138850
--- /dev/null
+++ b/src/it/changes-check-relative-xmlpath/custom/my-changes.xml
@@ -0,0 +1,29 @@
+<?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.
+-->
+
+<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">
+ <body>
+ <release version="1.0" date="2025-01-31" description="Release">
+ <action dev="me" type="add">Something new.</action>
+ </release>
+ </body>
+</document>
diff --git a/src/it/changes-check-relative-xmlpath/invoker.properties
b/src/it/changes-check-relative-xmlpath/invoker.properties
new file mode 100644
index 0000000..2ddd809
--- /dev/null
+++ b/src/it/changes-check-relative-xmlpath/invoker.properties
@@ -0,0 +1,18 @@
+# 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.
+
+invoker.goals = changes:changes-check
diff --git a/src/it/changes-check-relative-xmlpath/pom.xml
b/src/it/changes-check-relative-xmlpath/pom.xml
new file mode 100644
index 0000000..6ec0ce6
--- /dev/null
+++ b/src/it/changes-check-relative-xmlpath/pom.xml
@@ -0,0 +1,39 @@
+<?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/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.apache.maven.plugins.changes.it</groupId>
+ <artifactId>changes-check-relative-xmlpath</artifactId>
+ <version>1.0</version>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>@project.groupId@</groupId>
+ <artifactId>@project.artifactId@</artifactId>
+ <version>@project.version@</version>
+ <configuration>
+ <xmlPath>custom/my-changes.xml</xmlPath>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/src/it/changes-check-relative-xmlpath/verify.groovy
b/src/it/changes-check-relative-xmlpath/verify.groovy
new file mode 100644
index 0000000..c3eac16
--- /dev/null
+++ b/src/it/changes-check-relative-xmlpath/verify.groovy
@@ -0,0 +1,22 @@
+
+/*
+ * 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.
+ */
+String log = new File( basedir, "build.log" ).text
+assert !log.contains( "does not exist" )
+assert !log.contains( "invalid release date" )
diff --git a/src/it/changes-check-skip-snapshots/invoker.properties
b/src/it/changes-check-skip-snapshots/invoker.properties
new file mode 100644
index 0000000..2ddd809
--- /dev/null
+++ b/src/it/changes-check-skip-snapshots/invoker.properties
@@ -0,0 +1,18 @@
+# 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.
+
+invoker.goals = changes:changes-check
diff --git a/src/it/changes-check-skip-snapshots/pom.xml
b/src/it/changes-check-skip-snapshots/pom.xml
new file mode 100644
index 0000000..e4b18bb
--- /dev/null
+++ b/src/it/changes-check-skip-snapshots/pom.xml
@@ -0,0 +1,39 @@
+<?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/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.apache.maven.plugins.changes.it</groupId>
+ <artifactId>changes-check-skip-snapshots</artifactId>
+ <version>1.0-SNAPSHOT</version>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>@project.groupId@</groupId>
+ <artifactId>@project.artifactId@</artifactId>
+ <version>@project.version@</version>
+ <configuration>
+ <skipSnapshots>true</skipSnapshots>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/src/it/changes-check-skip-snapshots/src/changes/changes.xml
b/src/it/changes-check-skip-snapshots/src/changes/changes.xml
new file mode 100644
index 0000000..5b570bf
--- /dev/null
+++ b/src/it/changes-check-skip-snapshots/src/changes/changes.xml
@@ -0,0 +1,29 @@
+<?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.
+-->
+
+<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">
+ <body>
+ <release version="1.0-SNAPSHOT" date="pending" description="Release">
+ <action dev="me" type="add">Something new.</action>
+ </release>
+ </body>
+</document>
diff --git a/src/it/changes-check-skip-snapshots/verify.groovy
b/src/it/changes-check-skip-snapshots/verify.groovy
new file mode 100644
index 0000000..67535cc
--- /dev/null
+++ b/src/it/changes-check-skip-snapshots/verify.groovy
@@ -0,0 +1,20 @@
+
+/*
+ * 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, "build.log" ).text.contains( "Skipping snapshot
version '1.0-SNAPSHOT'." )
diff --git a/src/it/changes-check-valid/invoker.properties
b/src/it/changes-check-valid/invoker.properties
new file mode 100644
index 0000000..2ddd809
--- /dev/null
+++ b/src/it/changes-check-valid/invoker.properties
@@ -0,0 +1,18 @@
+# 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.
+
+invoker.goals = changes:changes-check
diff --git a/src/it/changes-check-valid/pom.xml
b/src/it/changes-check-valid/pom.xml
new file mode 100644
index 0000000..9de9174
--- /dev/null
+++ b/src/it/changes-check-valid/pom.xml
@@ -0,0 +1,39 @@
+<?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/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.apache.maven.plugins.changes.it</groupId>
+ <artifactId>changes-check-valid</artifactId>
+ <version>1.0</version>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>@project.groupId@</groupId>
+ <artifactId>@project.artifactId@</artifactId>
+ <version>@project.version@</version>
+ <configuration>
+ <skipSnapshots>false</skipSnapshots>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/src/it/changes-check-valid/src/changes/changes.xml
b/src/it/changes-check-valid/src/changes/changes.xml
new file mode 100644
index 0000000..e138850
--- /dev/null
+++ b/src/it/changes-check-valid/src/changes/changes.xml
@@ -0,0 +1,29 @@
+<?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.
+-->
+
+<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">
+ <body>
+ <release version="1.0" date="2025-01-31" description="Release">
+ <action dev="me" type="add">Something new.</action>
+ </release>
+ </body>
+</document>
diff --git a/src/it/changes-check-valid/verify.groovy
b/src/it/changes-check-valid/verify.groovy
new file mode 100644
index 0000000..cb6e2f3
--- /dev/null
+++ b/src/it/changes-check-valid/verify.groovy
@@ -0,0 +1,22 @@
+
+/*
+ * 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.
+ */
+String log = new File( basedir, "build.log" ).text
+assert !log.contains( "invalid release date" )
+assert !log.contains( "does not exist" )
diff --git a/src/it/changes-validate-invalid-fails/invoker.properties
b/src/it/changes-validate-invalid-fails/invoker.properties
new file mode 100644
index 0000000..fcd1c55
--- /dev/null
+++ b/src/it/changes-validate-invalid-fails/invoker.properties
@@ -0,0 +1,19 @@
+# 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.
+
+invoker.buildResult = failure
+invoker.goals = changes:changes-validate
diff --git a/src/it/changes-validate-invalid-fails/pom.xml
b/src/it/changes-validate-invalid-fails/pom.xml
new file mode 100644
index 0000000..9468b46
--- /dev/null
+++ b/src/it/changes-validate-invalid-fails/pom.xml
@@ -0,0 +1,39 @@
+<?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/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.apache.maven.plugins.changes.it</groupId>
+ <artifactId>changes-validate-invalid-fails</artifactId>
+ <version>1.0</version>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>@project.groupId@</groupId>
+ <artifactId>@project.artifactId@</artifactId>
+ <version>@project.version@</version>
+ <configuration>
+ <failOnError>true</failOnError>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/src/it/changes-validate-invalid-fails/src/changes/changes.xml
b/src/it/changes-validate-invalid-fails/src/changes/changes.xml
new file mode 100644
index 0000000..d9ead51
--- /dev/null
+++ b/src/it/changes-validate-invalid-fails/src/changes/changes.xml
@@ -0,0 +1,27 @@
+<?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.
+-->
+
+<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>
+ <atitle>Changes report Project</atitle>
+ </properties>
+</document>
diff --git a/src/it/changes-validate-invalid-fails/verify.groovy
b/src/it/changes-validate-invalid-fails/verify.groovy
new file mode 100644
index 0000000..2c79c03
--- /dev/null
+++ b/src/it/changes-validate-invalid-fails/verify.groovy
@@ -0,0 +1,21 @@
+
+/*
+ * 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.
+ */
+String log = new File( basedir, "build.log" ).text
+assert log =~ /changes.xml file is not valid: .*changes.xml: SAXException/
diff --git a/src/it/changes-validate-invalid-warns/invoker.properties
b/src/it/changes-validate-invalid-warns/invoker.properties
new file mode 100644
index 0000000..43290a0
--- /dev/null
+++ b/src/it/changes-validate-invalid-warns/invoker.properties
@@ -0,0 +1,18 @@
+# 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.
+
+invoker.goals = changes:changes-validate
diff --git a/src/it/changes-validate-invalid-warns/pom.xml
b/src/it/changes-validate-invalid-warns/pom.xml
new file mode 100644
index 0000000..77f2cfc
--- /dev/null
+++ b/src/it/changes-validate-invalid-warns/pom.xml
@@ -0,0 +1,37 @@
+<?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/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.apache.maven.plugins.changes.it</groupId>
+ <artifactId>changes-validate-invalid-warns</artifactId>
+ <version>1.0</version>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>@project.groupId@</groupId>
+ <artifactId>@project.artifactId@</artifactId>
+ <version>@project.version@</version>
+
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/src/it/changes-validate-invalid-warns/src/changes/changes.xml
b/src/it/changes-validate-invalid-warns/src/changes/changes.xml
new file mode 100644
index 0000000..d9ead51
--- /dev/null
+++ b/src/it/changes-validate-invalid-warns/src/changes/changes.xml
@@ -0,0 +1,27 @@
+<?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.
+-->
+
+<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>
+ <atitle>Changes report Project</atitle>
+ </properties>
+</document>
diff --git a/src/it/changes-validate-invalid-warns/verify.groovy
b/src/it/changes-validate-invalid-warns/verify.groovy
new file mode 100644
index 0000000..c642446
--- /dev/null
+++ b/src/it/changes-validate-invalid-warns/verify.groovy
@@ -0,0 +1,22 @@
+
+/*
+ * 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.
+ */
+String log = new File( basedir, "build.log" ).text
+assert log.contains( "validation errors:" )
+assert log.contains( "skip previous validation errors due to
failOnError=false." )