Skip to content

Commit a56a17e

Browse files
committed
Prequirisits are deprecated since maven-3, use maven-enforces-plugin to specify required maven version
1 parent eec930d commit a56a17e

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

pom.xml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
<description>Java API to access the InfluxDB REST API</description>
1010
<url>http://www.influxdb.org</url>
1111

12-
<prerequisites>
13-
<maven>3.3.9</maven>
14-
</prerequisites>
15-
1612
<licenses>
1713
<license>
1814
<name>The MIT License (MIT)</name>
@@ -133,6 +129,26 @@
133129
</plugins>
134130
</pluginManagement>
135131
<plugins>
132+
<plugin>
133+
<groupId>org.apache.maven.plugins</groupId>
134+
<artifactId>maven-enforcer-plugin</artifactId>
135+
<version>3.0.0-M3</version>
136+
<executions>
137+
<execution>
138+
<id>enforce-maven</id>
139+
<goals>
140+
<goal>enforce</goal>
141+
</goals>
142+
<configuration>
143+
<rules>
144+
<requireMavenVersion>
145+
<version>3.3.9</version>
146+
</requireMavenVersion>
147+
</rules>
148+
</configuration>
149+
</execution>
150+
</executions>
151+
</plugin>
136152
<plugin>
137153
<groupId>org.sonatype.plugins</groupId>
138154
<artifactId>nexus-staging-maven-plugin</artifactId>

0 commit comments

Comments
 (0)