2016-08-21 6 views
4

Я пытаюсь развернуть и запустить образец кода Google-pubsub в Google приложение движок this прочитайте меня файл. При запуске команды развертывания я сталкиваюсь с ошибкой сборки.Плагин не найден для префикса 'gcloud' в текущем проекте и в группах плагинов [org.apache.maven.plugins, org.codehaus.mojo]

E:\java\cloud-pubsub-samples-java-master>mvn gcloud:deploy -Dgcloud.version=1 -DskipTests=true 
[INFO] Scanning for projects... 
[INFO] ------------------------------------------------------------------------ 
[INFO] Reactor Build Order: 
[INFO] 
[INFO] pubsub-pull-sample 
[INFO] Example for the Google Cloud Pub/Sub on Google App Engine. 
[INFO] Cloud Dataflow Examples 
[INFO] cloud-pubsub-samples-java 
Downloading: https://repo.maven.apache.org/maven2/org/eclipse/m2e/lifecycle-mapping/1.0.0/lifecycle-mapping-1.0.0.pom 
[WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency information available 
Downloading: https://repo.maven.apache.org/maven2/org/eclipse/m2e/lifecycle-mapping/1.0.0/lifecycle-mapping-1.0.0.jar 
[WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Could not find artifact org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in central (https://repo.maven.apache.org/maven2) 
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml 
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml 
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml (13 KB at 9.8 KB/sec) 
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml (20 KB at 8.9 KB/sec) 
[INFO] ------------------------------------------------------------------------ 
[INFO] Reactor Summary: 
[INFO] 
[INFO] pubsub-pull-sample ................................. SKIPPED 
[INFO] Example for the Google Cloud Pub/Sub on Google App Engine. SKIPPED 
[INFO] Cloud Dataflow Examples ............................ SKIPPED 
[INFO] cloud-pubsub-samples-java .......................... SKIPPED 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 14.167 s 
[INFO] Finished at: 2016-08-21T22:20:45+05:30 
[INFO] Final Memory: 13M/245M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] No plugin found for prefix 'gcloud' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\JAISON.G\.m2\repository), central (https://repo.maven.apache.org/maven2)] -> [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/NoPluginFoundForPrefixException 

ответ

2

Это означает, что вы не включили плагин gcloud maven в pom.xml. Но вы больше не должны использовать gcloud, скорее, используя appengine. См. documentation here.

 Смежные вопросы

  • Нет связанных вопросов^_^