[英]How to tell 'appengine-maven-plugin' not to use oauth2 for deploys to appengine?
We're switching from the unofficial 'kidleit' maven plugin to use the official "appengine-maven-plugin" http://code.google.com/p/appengine-maven-plugin/ 我们将从非官方的“ kidleit” Maven插件切换为使用官方的“ appengine-maven-plugin” http://code.google.com/p/appengine-maven-plugin/
Our application is not new, but when deploying now, we get the error: 我们的应用程序不是新的,但是现在进行部署时,会出现以下错误:
404 Not Found This application does not exist (app_id=u'appname')
Running on the command line and in eclipse, turns out the same message pops up when telling appcfg.sh
to use --oauth2
for authentication, which turns out to be the default for the 'appengine-maven-plugin'. 在命令行上运行并在Eclipse中运行,当告诉
appcfg.sh
使用--oauth2
进行身份验证时,会弹出相同的消息,这是'appengine-maven-plugin'的默认设置。
Is there a way to tell the official maven plugin to not use Oauth2 authentication? 有没有办法告诉官方Maven插件不要使用Oauth2身份验证?
Figured it out by reading the source. 通过阅读源代码找出答案。 I can specify the
oauth2
property to be false
in the pom configuration for the plugin: 我可以在插件的pom配置中将
oauth2
属性指定为false
:
<plugin>
<groupId>com.google.appengine</groupId>
<artifactId>appengine-maven-plugin</artifactId>
<version>${appengine.target.version}</version>
<!-- below specify oauth2 to be false, as it's true by default -->
<configuration>
<oauth2>false</oauth2>
</configuration>
</plugin>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.