Detected Maven version: 3.0.5 is not in the valid range of 3.2

I work with Maven and I get errors when compiling and creating my project. This is a jpmml project to evaluate some pmml file. Now I got this error:

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

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

Please, help! I don't have much experience with Java and Maven.

+8
java maven pmml
Aug 12 '15 at 14:45
source share
7 answers

Your pom.xml contains a plugin called enforcer , which can determine the required version of maven . You need to install the specified version of maven (3.2. *) And use it to compile the project.

+9
Aug 12 '15 at 14:50
source share

In intelliJ 2016.1.2 on Ubuntu 16.04:

I installed the latest version: sudo apt-get install maven

Then just dig to where IntelliJ is hiding which maven it will use:

 File > Settings > Build, Execution, Deployment > Build Tools > Maven > Maven_home directory (I didn't have this env variable set, so you can choose): 

-Cruled (Maven 2)
-Cruled (Maven 3) (was 3.0.5 and it was selected)
- / usr / share / maven <--- where recently downloaded maven lives (3.3.9)

Perhaps I could save some time and made the file /etc/profile.d/maven.sh and determined:

export MAVEN_HOME = / usr / share / maven after installing the latter using apt ...

+5
Jun 06 '16 at 2:14
source share

The error means your maven version is too old, you need to upgrade your maven version to a higher version than 3.2

Download link maven

http://maven.apache.org/download.cgi

then clean and compile

+3
Aug 12 '15 at 14:53
source share

Go to window> Settings> Maven> Preferences

In the Installation section, you will notice that the built-in version 3.0.5

Add a new installation for 3.2

  • Click Add
  • Go to install maven 3.2
+2
Jan 07 '16 at 1:02
source share
  • Install the latest version of Maven from http://maven.apache.org
  • If you are using the Netbean IDE , go to Tools -> Options -> Java -> Maven and just configure the installation path below:

    enter image description here

  • Open your maven project in Netbeans and create it with dependencies.

0
Mar 09 '17 at 20:18
source share

If you cannot or do not want to update Maven for some reason, but you urgently need build results, there is also a way to get around this check using the command line parameter:

 -Denforcer.skip=true 

This worked for me for Maven 3.0.4 and maven -forcer-plugin 3.0.0-M1. Since you did not indicate in your question whether you just need to complete the assembly or complete it by setting the enforcement phase, I suggest this workaround as an answer.

0
Jun 09 '19 at 12:41
source share

Anyone who supports this project should consider using this rule. You usually say that you need at least Maven 3.1.1 or higher, but never get attached to the fixed version. In addition, Maven version 3.2 does not exist ... 3.2.1 is the first version 3.2.X.

-one
Aug 12 '15 at 15:58
source share



All Articles