Skip to content

Commit d3e70e0

Browse files
committed
Specify minimum Maven version to silence a warning
Specify a minimum version of Maven in pom.xml to silence a following warning: [ERROR] Project does not define required minimum version of Maven. [ERROR] Update the pom.xml to contain maven-enforcer-plugin to [ERROR] force the Maven version which is needed to build this project. [ERROR] See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html [ERROR] Using the minimum version of Maven: 3.2.5
1 parent 9fe925e commit d3e70e0

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

pom.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -925,6 +925,27 @@
925925
<artifactId>clirr-maven-plugin</artifactId>
926926
</plugin>
927927

928+
<plugin>
929+
<groupId>org.apache.maven.plugins</groupId>
930+
<artifactId>maven-enforcer-plugin</artifactId>
931+
932+
<executions>
933+
<execution>
934+
<id>enforce-maven</id>
935+
<goals>
936+
<goal>enforce</goal>
937+
</goals>
938+
<configuration>
939+
<rules>
940+
<requireMavenVersion>
941+
<version>3.2.5</version>
942+
</requireMavenVersion>
943+
</rules>
944+
</configuration>
945+
</execution>
946+
</executions>
947+
</plugin>
948+
928949
</plugins>
929950

930951
</build>

0 commit comments

Comments
 (0)