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

Jaime Irazabal Gonzalez picture Jaime Irazabal Gonzalez · Aug 12, 2015 · Viewed 27k times · Source

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.

Answer

nfechner picture nfechner · Aug 12, 2015

Your pom.xml contains a plugin called enforcer, that can define a required maven version. You need to install the mentioned maven version (3.2.*) and use it to compile the project.