0
votes

I updated my pom.xml to use the new mvn appengine plugin

       <plugin>
            <groupId>com.google.cloud.tools</groupId>
            <artifactId>appengine-maven-plugin</artifactId>
            <version>1.2.0</version>
            <configuration>
                <project>{project_id}</project>
                <devserver.host>0.0.0.0</devserver.host>
                <devserver.port>1984</devserver.port>
            </configuration>
        </plugin>

Now when I run mvn appengine:deploy it converts my queue.xml to queue.yaml in the staging directory. However this queue configuration is not deployed.

I have tried so many ways to deploy it to google cloud but nothing worked. This setup is for my cloud endpoints project setup. The documentations do not cover this.

This is the maven plugin code i added after trying your suggestion out .

<plugin>
        <groupId>com.google.cloud.tools</groupId>
        <artifactId>appengine-maven-plugin</artifactId>
        <version>1.2.0</version>
        <configuration>
            <project>{project_id}</project>
            <devserver.host>0.0.0.0</devserver.host>
            <devserver.port>1984</devserver.port>
        </configuration>
    </plugin>
1
It seems that 1.2.0 is throwing the Directories are not supported error. Can you try using version 1.0.0? - Deviling Master
Give me a minute let me give it a shot - I.Tyger
It worked with 1.0.0 , wow im surprised how that happened , Thanks @DevilingMaster why is it now working for 1.2.0? Are they planning to scrap it moving forward ?. - I.Tyger
It seems that the This is the maven plugin code i added after trying your suggestion out is the same as the previous. Maybe a copy-paste error? - Deviling Master
I open an issue related to the plugin version: github.com/GoogleCloudPlatform/app-maven-plugin/issues/144 - Deviling Master

1 Answers

0
votes

I opened a similar issue on the project board

By default, only the app.yaml file is deployed (which represents the application). If you want (in addition, or only) the queue.yaml, or even the cron or index, you need to specify those files inside the plugin configuration.

<plugin>
    <groupId>com.google.cloud.tools</groupId>
    <artifactId>appengine-maven-plugin</artifactId>
    <version>${appengine.maven.plugin.version}</version>
    <configuration>
        <deployables>
            <param>target/appengine-staging/app.yaml</param>
            <param>target/appengine-staging/cron.yaml</param>
            <param>target/appengine-staging/queue.yaml</param>
            <param>target/appengine-staging/index.yaml</param>
        </deployables>
    </configuration>
</plugin>

Please remember that if you specificy certain files, the app.yaml files should be added as well. It is deployed by default only if the deployabels parameter is missing.

Playing with this parameter you can choose which files to deploy