Skip to content
This repository has been archived by the owner on Jul 5, 2021. It is now read-only.

Commit

Permalink
Replace prerequisites with maven-enforcer-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
MoriTanosuke committed Oct 11, 2019
1 parent b34ca91 commit 291f5b1
Showing 1 changed file with 46 additions and 4 deletions.
50 changes: 46 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
<description>Simple command line tool to upload archives to Amazon Glacier.</description>
<packaging>pom</packaging>

<prerequisites>
<maven>3.3</maven>
</prerequisites>

<organization>
<name>Carsten Ringe</name>
<url>https://github.com/MoriTanosuke/glacieruploader</url>
Expand Down Expand Up @@ -140,6 +136,42 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0-M2</version>
<executions>
<execution>
<id>enforce-maven</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>3.3</version>
</requireMavenVersion>
<requirePluginVersions>
<message>Best Practice is to always define plugin versions!</message>
<banLatest>true</banLatest>
<banRelease>true</banRelease>
<banSnapshots>true</banSnapshots>
<phases>clean,deploy,site</phases>
<additionalPlugins>
<additionalPlugin>org.apache.maven.plugins:maven-eclipse-plugin
</additionalPlugin>
<additionalPlugin>org.apache.maven.plugins:maven-reactor-plugin
</additionalPlugin>
</additionalPlugins>
<unCheckedPluginList>
org.apache.maven.plugins:maven-enforcer-plugin,org.apache.maven.plugins:maven-idea-plugin
</unCheckedPluginList>
</requirePluginVersions>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand Down Expand Up @@ -299,6 +331,16 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-reactor-plugin</artifactId>
<version>1.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.10</version>
</plugin>
</plugins>
</pluginManagement>
</build>
Expand Down

0 comments on commit 291f5b1

Please sign in to comment.