| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!-- |
| 3 |
* Licensed to the Apache Software Foundation (ASF) under one |
| 4 |
* or more contributor license agreements. See the NOTICE file |
| 5 |
* distributed with this work for additional information |
| 6 |
* regarding copyright ownership. The ASF licenses this file |
| 7 |
* to you under the Apache License, Version 2.0 (the |
| 8 |
* "License"); you may not use this file except in compliance |
| 9 |
* with the License. You may obtain a copy of the License at |
| 10 |
* |
| 11 |
* http://www.apache.org/licenses/LICENSE-2.0 |
| 12 |
* |
| 13 |
* Unless required by applicable law or agreed to in writing, |
| 14 |
* software distributed under the License is distributed on an |
| 15 |
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 16 |
* KIND, either express or implied. See the License for the |
| 17 |
* specific language governing permissions and limitations |
| 18 |
* under the License. |
| 19 |
* |
| 20 |
--> |
| 21 |
<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"> |
| 22 |
<modelVersion>4.0.0</modelVersion> |
| 23 |
<groupId>org.apache.maven.enforcer.its</groupId> |
| 24 |
<artifactId>requireSameVersion</artifactId> |
| 25 |
<version>1.0-SNAPSHOT</version> |
| 26 |
|
| 27 |
<build> |
| 28 |
<plugins> |
| 29 |
<plugin> |
| 30 |
<groupId>org.apache.maven.plugins</groupId> |
| 31 |
<artifactId>maven-enforcer-plugin</artifactId> |
| 32 |
<version>@project.version@</version> |
| 33 |
<executions> |
| 34 |
<execution> |
| 35 |
<id>enforce</id> |
| 36 |
<goals> |
| 37 |
<goal>enforce</goal> |
| 38 |
</goals> |
| 39 |
<configuration> |
| 40 |
<rules> |
| 41 |
<requireSameVersions> |
| 42 |
<buildPlugins> |
| 43 |
<buildPlugin>org.apache.maven.plugins:maven-surefire-plugin</buildPlugin> |
| 44 |
<buildPlugin>org.apache.maven.plugins:maven-failsafe-plugin</buildPlugin> |
| 45 |
</buildPlugins> |
| 46 |
<reportPlugins> |
| 47 |
<reportPlugin>org.apache.maven.plugins:maven-surefire-report-plugin</reportPlugin> |
| 48 |
</reportPlugins> |
| 49 |
</requireSameVersions> |
| 50 |
<!-- almost the rule configuration --> |
| 51 |
<requireSameVersions> |
| 52 |
<plugins> |
| 53 |
<plugin>org.apache.maven.plugins:maven-surefire-plugin</plugin> |
| 54 |
<plugin>org.apache.maven.plugins:maven-failsafe-plugin</plugin> |
| 55 |
<plugin>org.apache.maven.plugins:maven-surefire-report-plugin</plugin> |
| 56 |
</plugins> |
| 57 |
</requireSameVersions> |
| 58 |
</rules> |
| 59 |
</configuration> |
| 60 |
</execution> |
| 61 |
</executions> |
| 62 |
</plugin> |
| 63 |
<plugin> |
| 64 |
<groupId>org.apache.maven.plugins</groupId> |
| 65 |
<artifactId>maven-surefire-plugin</artifactId> |
| 66 |
<version>2.14</version> |
| 67 |
</plugin> |
| 68 |
<plugin> |
| 69 |
<groupId>org.apache.maven.plugins</groupId> |
| 70 |
<artifactId>maven-failsafe-plugin</artifactId> |
| 71 |
<version>2.15</version> |
| 72 |
</plugin> |
| 73 |
</plugins> |
| 74 |
</build> |
| 75 |
|
| 76 |
<reporting> |
| 77 |
<plugins> |
| 78 |
<plugin> |
| 79 |
<groupId>org.apache.maven.plugins</groupId> |
| 80 |
<artifactId>maven-surefire-report-plugin</artifactId> |
| 81 |
<version>2.13</version> |
| 82 |
</plugin> |
| 83 |
</plugins> |
| 84 |
</reporting> |
| 85 |
|
| 86 |
|
| 87 |
</project> |