google-app-engine - 在当前项目和插件组 [org.apache.maven.plugins, org.codehaus.mojo] 中找不到前缀为 'gcloud' 的插件

标签 google-app-engine gcloud google-cloud-pubsub

我正在尝试通过 this 在 Google 应用引擎中部署和运行 Google-pubsub 示例代码读我的文件。运行部署命令时遇到以下构建错误。

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

最佳答案

这意味着您还没有在 pom.xml 中包含 gcloud maven 插件。但是你不应该再使用 gcloud,而应该使用 appengine。查看documentation here .

关于google-app-engine - 在当前项目和插件组 [org.apache.maven.plugins, org.codehaus.mojo] 中找不到前缀为 'gcloud' 的插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39066886/

相关文章:

java - GCP 发布订阅 :Creating a Configuration Class to publish message

python - 延迟任务创建无法访问某些 python 模块的新实例

java - GAE 中的不兼容类更改错误

google-app-engine - Google App Engine 重定向所有裸域请求,导致 letsencrypt 无法工作

java - 无法在 32 位 Windows 机器中创建 grpc 连接

python - 使用 Google App Engine 发布订阅

java - Google App Engine 不支持 java.util.logging.Logger : com/ibm/icu/impl/ICULogger 的子类

jenkins - 在 Jenkins 中使用Gradle构建Gcloud测试用例失败

parameters - 在 google dataproc 上执行 Pig 作业时,如何使用 params 标志来表示多个以逗号分隔的值?

bash - 无需打开浏览器即可进行 gcloud 身份验证?