faresd / appengine-maven-plugin

Automatically exported from code.google.com/p/appengine-maven-plugin
Apache License 2.0
0 stars 0 forks source link

pom.xml properties aren't templated into appengine-web.xml #66

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. create a project with pom.xml properties such as:

<app.id>this-is-my-app-id</app.id>
<app.module>cool-module</app.module>

2. in appengine-web.xml, put:

<application>${app.id}</application>
<module>${app.module}</module>

3. attempt to deploy

See the following:

...

WARNING: Error posting to URL: 
https://appengine.google.com/api/appversion/getresourcelimits?app_id=%24%7Bapp.i
d%7D&version=%24%7Bapp.version%7D&
400 Bad Request
Client Error (400)The request is invalid for an unspecified reason.
This is try #1
Jun 23, 2015 10:05:51 PM 
com.google.appengine.tools.admin.AbstractServerConnection send1
WARNING: Error posting to URL: 
https://appengine.google.com/api/appversion/getresourcelimits?app_id=%24%7Bapp.i
d%7D&version=%24%7Bapp.version%7D&
400 Bad Request
Client Error (400)The request is invalid for an unspecified reason.
This is try #2
Jun 23, 2015 10:05:51 PM 
com.google.appengine.tools.admin.AbstractServerConnection send1
WARNING: Error posting to URL: 
https://appengine.google.com/api/appversion/getresourcelimits?app_id=%24%7Bapp.i
d%7D&version=%24%7Bapp.version%7D&
400 Bad Request
Client Error (400)The request is invalid for an unspecified reason.
This is try #3

com.google.appengine.tools.admin.HttpIoException: Error posting to URL: 
https://appengine.google.com/api/appversion/getresourcelimits?app_id=%24%7Bapp.i
d%7D&version=%24%7Bapp.version%7D&
400 Bad Request
Client Error (400)The request is invalid for an unspecified reason.

Unable to update app: Error posting to URL: 
https://appengine.google.com/api/appversion/getresourcelimits?app_id=%24%7Bapp.i
d%7D&version=%24%7Bapp.version%7D&
400 Bad Request
Client Error (400)The request is invalid for an unspecified reason.

Please see the logs [/tmp/appcfg2699480404566582873.log] for further 
information.

Original issue reported on code.google.com by pay...@google.com on 23 Jun 2015 at 10:13

GoogleCodeExporter commented 8 years ago
FYI, I couldn't find it documented anywhere, but inside the 
appengine-maven-plugin jar I found a plugin.xml describing the different 
configuration parameters, and found that you can fix this error by simply 
adding "<appId>" and "<version>" to the plugin configuration, like this:
<plugin>
    <groupId>com.google.appengine</groupId>
    <artifactId>appengine-maven-plugin</artifactId>
    <version>${appengine.version}</version>
    <configuration>
        <!-- ... -->
        <appId>${app.id}</appId>
        <version>${app.version}</version>
    </configuration>
    <!-- ... -->
</plugin>

I think the maven archetypes need to be updated to include this configuration. 
I believe the archetype I used was "hello-endpoints-archetype".

Original comment by elizabet...@gmail.com on 2 Jul 2015 at 5:40