Cloud 9 and Google App Engine with Maven 3

I created a new Cloud 9 project and am trying to start a Google App Engine (Java) project. I defined the project as a custom template. I enter the following command into the terminal to create my project.

marcmouallem@my-project :~/workspace (master) $ mvn appengine:devserver [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error resolving version for 'com.google.appengine:appengine-maven-plugin': Plugin requires Maven version 3.0 [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 second [INFO] Finished at: Thu Jan 15 22:08:53 UTC 2015 [INFO] Final Memory: 10M/907M [INFO] ------------------------------------------------------------------------ 

This is mainly about the part that says ...

  Plugin requires Maven version 3.0 

Looking at the version, I get ...

 marcmouallem@my-project :~/workspace (master) $ mvn --version Apache Maven 2.2.1 (rdebian-14) Java version: 1.7.0_65 Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre Default locale: en, platform encoding: UTF-8 OS name: "linux" version: "3.14.13-c9" arch: "amd64" Family: "unix" marcmouallem@my-project :~/workspace (master) $ 

Is there a way to get Cloud 9 to use Maven 3?

+5
source share
1 answer

Cloud9 realms are Ubuntu Docker containers, so you can install Maven 3 in a standard way (make sure you uninstall Maven 2 as well).

Check manual installation if your current ubuntu cannot install maven through the usual 'apt-get install maven'.

 sudo apt-get update sudo apt-get install maven 

Be sure to remove maven 2 if your ubuntu is not fresh or if you have used maven 2 before:

 sudo apt-get remove maven2 

Update . Cloud9 now provides Google Cloud Platform workspaces that come with Maven tools, gcloud, and the built-in Google Cloud. This may not be ideal for you, but it may offer you an environment in which Maven is already set up for you.

Source: Google Cloud Platform on Cloud9

+5
source

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


All Articles