Skip to content

Commit

Permalink
Enforce the Maven version to build Project Wonder
Browse files Browse the repository at this point in the history
After the last few changes, Maven 3.1 or greater is required to build Project Wonder. This configuration enforces the correct version while building the project with Maven. The build will fail with a clear message if the Maven version doesn't meet the requirement.
  • Loading branch information
hprange committed Aug 6, 2015
1 parent b5d30e2 commit 0a6cc80
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.5</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.4</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
Expand Down Expand Up @@ -103,6 +108,25 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-maven</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>[3.1,)</version>
</requireMavenVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit 0a6cc80

Please sign in to comment.