Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detected Maven Version: 3.0.5 is not in the allowed range 3.2

Tags:

java

maven

pmml

I am working with Maven and I am getting errors with compiling and building my project. It is the jpmml-project to evaluate some pmml file. Now I got this error:

Rule 0: org.apache.maven.plugins.enforcer.RequireMavenVersion failed with message: Detected Maven Version: 3.0.5 is not in the allowed range 3.2.

Check the link to see the image: https://www.dropbox.com/s/3r9d8g8l4r1zctp/maven_error.png?dl=0

Please help! I do not have too much experience with Java and Maven.

like image 684
Jaime Irazabal Gonzalez Avatar asked Aug 12 '15 14:08

Jaime Irazabal Gonzalez


People also ask

What is the current version of Maven?

Downloading Apache Maven 3.8.6 Apache Maven 3.8.6 is the latest release and recommended version for all users.

What does Maven enforcer plugin do?

The Enforcer plugin provides goals to control certain environmental constraints such as Maven version, JDK version and OS family along with many more built-in rules and user created rules.


1 Answers

In case you can't or don't want to update Maven due to some reason but urgently need the build results there is also a way to bypass this check using the command line option:

-Denforcer.skip=true

It worked for me for Maven 3.0.4 and maven-enforcer-plugin 3.0.0-M1. Since you did not mention in your question if you need just to complete the build or complete it making the enforcer stage fixed, I propose this workaround as an answer as well.

like image 144
Alexander Samoylov Avatar answered Sep 23 '22 14:09

Alexander Samoylov