Maven project could not build

I am new to Maven projects. I imported an existing Maven project to eclipse, and then created a new configuration. I tried to run the application, but the console shows

[ERROR] Failed to execute goal com.google.appengine:appengine-maven-plugin:1.9.4:devserver (default-cli) on project helloworld: The plugin com.google.appengine:appengine-maven-plugin:1.9.4 requires Maven version 3.1.0 -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginIncompatibleException 

I checked the link provided. He suggested updating the build environment to the required version of Maven. I searched for it, but found that certain changes were made to pom.xml. But nothing happened. Can someone tell me how to solve the problem. My installed version of Maven is 3.0.5 .

+3
source share
4 answers

To run this plugin, you need at least maven version 3.1.0. Install it here ( http://maven.apache.org/download.cgi ) and after that check if it is installed correctly by running the following command on the command line:

mvn -version

+1
source

There was the same problem. The decision was easy. Eclipse expected the root of maven to have the subtexts bin , boot , conf and lib . This root folder was not (in my case) /usr/local/Cellar/maven32/3.2.5 , but rather /usr/local/Cellar/maven32/3.2.5/libexec . Note that the correct one is one folder deeper.

+5
source

for the poor soul who finds this thread due to this error in intellj ...

I had an M2_HOME and maven environment configured on modern versions of maven and still got this error. Find the preferences for "maven" in your settings, and you will see that the default version of IntelliJ is 3.0.5 - you will see that the version is installed in "bundled" - install it in your maven download manager, and the application engine plug-in will build.

+2
source

You need to have at least version 3.1, and you have 3.0.5. All you have to do is download the new version of maven by pointing it to the environment variable, and you should be fine. The current version of maven is 3.2.5

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

0
source

Source: https://habr.com/ru/post/1237771/


All Articles