Skip to content

Commit

Permalink
chore: add requireMavenVersion for maven-enforcer-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
oldratlee committed Jan 18, 2022
1 parent 082278b commit f73d4fc
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions cola-components/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,29 @@
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>
<!--
add maven-enforce-plugin to make sure the right jdk is used
https://stackoverflow.com/a/18420462/922688
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0-M3</version>
<executions>
<execution>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>3.3.9</version>
</requireMavenVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<!--
config example: https://github.com/mojohaus/versions-maven-plugin/issues/157#issuecomment-306041074
Expand Down Expand Up @@ -358,10 +381,8 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0-M3</version>
<executions>
<execution>
<id>enforce-jdk-versions</id>
<goals>
<goal>enforce</goal>
</goals>
Expand Down

0 comments on commit f73d4fc

Please sign in to comment.