File tree 1 file changed +35
-1
lines changed
1 file changed +35
-1
lines changed Original file line number Diff line number Diff line change 14
14
</parent >
15
15
16
16
<prerequisites >
17
- <maven >3.0.4 </maven >
17
+ <maven >${minimum.maven.version} </maven >
18
18
</prerequisites >
19
19
20
20
<properties >
21
21
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
22
22
<project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
23
+ <minimum .maven.version>3.1.1</minimum .maven.version>
23
24
<outputDirectory >${project.build.directory}</outputDirectory >
24
25
<gherkin .version>2.12.2</gherkin .version>
25
26
<groovy .version>2.1.7</groovy .version>
783
784
</plugins >
784
785
</pluginManagement >
785
786
787
+ <plugins >
788
+ <plugin >
789
+ <groupId >org.apache.maven.plugins</groupId >
790
+ <artifactId >maven-enforcer-plugin</artifactId >
791
+ <executions >
792
+ <execution >
793
+ <id >enforce</id >
794
+ <configuration >
795
+ <rules >
796
+ <requireJavaVersion >
797
+ <version >1.7.0-9</version >
798
+ </requireJavaVersion >
799
+ <requireMavenVersion >
800
+ <version >[${minimum.maven.version} ,)</version >
801
+ </requireMavenVersion >
802
+ <requirePluginVersions >
803
+ <message >Best Practice is to always define plugin versions!</message >
804
+ <banLatest >true</banLatest >
805
+ <banRelease >true</banRelease >
806
+ <banSnapshots >true</banSnapshots >
807
+ <phases >clean,deploy,site</phases >
808
+ <unCheckedPluginList >org.codehaus.mojo:cobertura-maven-plugin</unCheckedPluginList >
809
+ </requirePluginVersions >
810
+ </rules >
811
+ </configuration >
812
+ <goals >
813
+ <goal >enforce</goal >
814
+ </goals >
815
+ </execution >
816
+ </executions >
817
+ </plugin >
818
+ </plugins >
819
+
786
820
<extensions >
787
821
<extension >
788
822
<groupId >org.apache.maven.wagon</groupId >
You can’t perform that action at this time.
0 commit comments