[java-parent-project] branch master updated: JPAR-118 - use Maven enforcer instead of prerequisites element

Ian Young ian at iay.org.uk
Thu Mar 14 08:34:58 EDT 2019


This is an automated email from the git hooks/post-receive script.

iay pushed a commit to branch master
in repository java-parent-project.

View the commit online:
http://git.shibboleth.net/view/?p=java-parent-project.git;a=commit;h=03476dd5deb20b9036bf8d0a8cc5cb070e6037b0

The following commit(s) were added to refs/heads/master by this push:
       new  03476dd   JPAR-118 - use Maven enforcer instead of prerequisites element
03476dd is described below

commit 03476dd5deb20b9036bf8d0a8cc5cb070e6037b0
Author: Ian Young <ian at iay.org.uk>
AuthorDate: Thu Mar 14 12:34:53 2019 +0000

    JPAR-118 - use Maven enforcer instead of prerequisites element
---
 pom.xml | 28 +++++++++++++++++++++++-----
 1 file changed, 23 insertions(+), 5 deletions(-)

diff --git a/pom.xml b/pom.xml
index e38208e..ef4aed7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -107,11 +107,6 @@
 
     </properties>
 
-    <!-- The Maven version prerequisite applies to the maven-versions-plugin:display-plugin-updates goal only. -->
-    <prerequisites>
-        <maven>3.3.1</maven>
-    </prerequisites>
-
     <repositories>
         <repository>
             <id>shib-release</id>
@@ -762,6 +757,29 @@
                     <redirectTestOutputToFile>true</redirectTestOutputToFile>
                 </configuration>
             </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-enforcer-plugin</artifactId>
+                <executions>
+                    <!--
+                        Ensure a consistent version of Maven for all builds.
+                    -->
+                    <execution>
+                        <id>maven-version</id>
+                        <goals>
+                            <goal>enforce</goal>
+                        </goals>
+                        <configuration>
+                            <rules>
+                                <requireMavenVersion>
+                                    <version>3.3.1</version>
+                                </requireMavenVersion>
+                            </rules>
+                            <fail>true</fail>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
         </plugins>
     </build>
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list