Maven error on app-engine 1.9.22

196 views
Skip to first unread message

TimN

unread,
Jun 9, 2015, 4:05:48 PM6/9/15
to google-a...@googlegroups.com
Hi,

I'm new to google appengine, so I have a basic question. I have successfully completed the Java tutorial on the google appengine site using maven. I have been able to succesfully run:
 - mvn clean install
and then
 - mvn appengine:devserver

It all looks good and works on localhost, but when I come to deploy it to my real google site with:
 - mvn appengine:update
I get the following error:
400 Bad Request
Error when loading application configuration:Unable to assign value '1.9.21' to attribute 'version':Value '1.9.21' for version does not match expression '^(?:^(?!-)[a-z\d\-]{0,62}[a-z\d]$)$'

I checked the my google appengine dashboard and it is running 1.9.22
Ah ha! Ok, so I edit the POM.xml file from 1.9.21 to 1.9.22 in the dependency and plugin:
        <dependency>
            <groupId>com.google.appengine</groupId>
            <artifactId>appengine-api-1.0-sdk</artifactId>
            <version>1.9.22</version>
        </dependency>

Now maven can't find
[WARNING] The POM for com.google.appengine:appengine-api-1.0-sdk:jar:1.9.22 is missing, no dependency information available
What am I missing here.... :-(

Thanks
Tim
P.s.Whole POM attached.
pom.xml

Patrice (Cloud Platform Support)

unread,
Jun 9, 2015, 4:56:16 PM6/9/15
to google-a...@googlegroups.com, timn...@googlemail.com
hey Tim!

So, this error is actually pretty simple to resolve, even if it wasn't easy to find.

In your pom, change the three places where you have "appengine.version", and change it for "appengine.sdk.version". Also keep it to 1.9.21, this is the proper one for now.

Lemme know if that fixes your issue.

Cheers!

TimN

unread,
Jun 9, 2015, 5:17:19 PM6/9/15
to google-a...@googlegroups.com, timn...@googlemail.com
YES!!!!

Thank you!! I've been bashing my head all evening - at least I learnt something about POM files :-)

Thanks again!!
Tim

Patrice (Cloud Platform Support)

unread,
Jun 9, 2015, 5:43:06 PM6/9/15
to google-a...@googlegroups.com, timn...@googlemail.com
Very welcome Tim.

I can't take that much credit for finding it though, this was reported to our Issue Tracker recently and that's where I found the fix :)

Happy coding!
Cheers

sahil nagpal

unread,
Apr 25, 2017, 11:01:19 AM4/25/17
to Google App Engine

It is not resolved for my side , Tim - please help

Nick (Cloud Platform Support)

unread,
Apr 28, 2017, 4:17:04 PM4/28/17
to Google App Engine
Hey Sahil,

You should open a Q&A on Stack Overflow explaining what you're doing, without reference to any other person's post, and people will be able to help you from that point. We monitor our tags on Stack Overflow and I'll be happy to assist if you post the link to your Stack Overflow Q&A here once it's made.

Cheers,

Nick
Cloud Platform Community Support
Reply all
Reply to author
Forward
0 new messages