简体   繁体   English

如何告诉“ appengine-maven-plugin”不要将oauth2用于部署到appengine?

[英]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.

相关问题 appengine-maven-plugin配置选项,如jvm标志 - appengine-maven-plugin configuration options like jvm flags appengine-maven-plugin:1.3.1运行失败,非零退出 - appengine-maven-plugin:1.3.1 run failed non zero exit 使用appengine-maven-plugin在Eclipse中的本地DevAppServer上进行GAE HTTPS - GAE HTTPS on local DevAppServer in Eclipse using appengine-maven-plugin Maven GAE无法执行目标com.google.appengine:appengine-maven-plugin:1.9.12:devserver [...] NoSuchElementException - Maven GAE Failed to execute goal com.google.appengine:appengine-maven-plugin:1.9.12:devserver […] NoSuchElementException 在插件com.google.appengine:appengine-maven-plugin中找不到目标“运行” - Could not find goal 'run' in plugin com.google.appengine:appengine-maven-plugin 执行com.google.appengine时,缺少必需的类:appengine-maven-plugin:1.9.4 - A required class was missing while executing com.google.appengine:appengine-maven-plugin:1.9.4 com.google.appengine:appengine-maven-plugin:1.9.18:更新失败。 NoSuchElementException-&gt; - com.google.appengine:appengine-maven-plugin:1.9.18:update failed. NoSuchElementException -> 干净安装插件上的GAE / Maven错误“com.google.appengine:appengine-maven-plugin:1.9.18或其某个依赖项无法解析” - GAE/Maven error on clean install Plugin “com.google.appengine:appengine-maven-plugin:1.9.18 or one of its dependencies could not be resolved” 如何在Google AppEngine中使用OAuth2来调用Java中的API - How to use OAuth2 in Google AppEngine to call an API in java 在带有appengine-maven-plugin的appengine上的多模块maven java项目中部署期间跳过某些模块 - skip certain modules during deploy in multi-module maven java project on appengine w/ appengine-maven-plugin
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM