Skip to content

Commit ca503f1

Browse files
authored
Enforce explicit plugin versions (#259)
1 parent 539cf09 commit ca503f1

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

pom.xml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,59 @@
5757
</dependency>
5858
</dependencies>
5959
<build>
60+
<pluginManagement>
61+
<plugins>
62+
<plugin>
63+
<groupId>org.apache.maven.plugins</groupId>
64+
<artifactId>maven-enforcer-plugin</artifactId>
65+
<version>3.3.0</version>
66+
</plugin>
67+
<plugin>
68+
<groupId>org.apache.maven.plugins</groupId>
69+
<artifactId>maven-clean-plugin</artifactId>
70+
<version>2.5</version>
71+
</plugin>
72+
<plugin>
73+
<groupId>org.apache.maven.plugins</groupId>
74+
<artifactId>maven-install-plugin</artifactId>
75+
<version>2.5.1</version>
76+
</plugin>
77+
<plugin>
78+
<groupId>org.apache.maven.plugins</groupId>
79+
<artifactId>maven-site-plugin</artifactId>
80+
<version>3.3</version>
81+
</plugin>
82+
<plugin>
83+
<groupId>org.apache.maven.plugins</groupId>
84+
<artifactId>maven-resources-plugin</artifactId>
85+
<version>2.6</version>
86+
</plugin>
87+
<plugin>
88+
<groupId>org.apache.maven.plugins</groupId>
89+
<artifactId>maven-deploy-plugin</artifactId>
90+
<version>2.8.1</version>
91+
</plugin>
92+
</plugins>
93+
</pluginManagement>
6094
<plugins>
95+
<plugin>
96+
<groupId>org.apache.maven.plugins</groupId>
97+
<artifactId>maven-enforcer-plugin</artifactId>
98+
<executions>
99+
<execution>
100+
<id>require-all-plugin-versions-to-be-set</id>
101+
<phase>validate</phase>
102+
<goals>
103+
<goal>enforce</goal>
104+
</goals>
105+
<configuration>
106+
<rules>
107+
<requirePluginVersions />
108+
</rules>
109+
</configuration>
110+
</execution>
111+
</executions>
112+
</plugin>
61113
<!-- Compile-time configuration -->
62114
<plugin>
63115
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)