GoogleCloudPlatform / gcloud-maven-plugin

Cloud SDK Maven Plugin for Google App Engine (Managed VMs and non Managed VMs)
Apache License 2.0
29 stars 24 forks source link

create-property task does not work on deployment #19

Open chrisbianca opened 9 years ago

chrisbianca commented 9 years ago

I stumbled across the create-property task in the gcloud-maven-plugin this morning and have been trying to get it to work.

However, whilst the property is available when filtering resources, i.e. it populates the appengine-web.xml properly, it does not seem to be available when running a deployment. I have the following set up:

<plugin>
    <groupId>com.google.appengine</groupId>
    <artifactId>gcloud-maven-plugin</artifactId>
    <version>0.9.58.v20150505</version>
    <executions>
        <execution>
            <id>create-property</id>
            <goals>
                <goal>create-property</goal>
            </goals>
            <phase>validate</phase>
        </execution>
    </executions>
    <configuration>
        <version>${AppEngineFriendlyVersion}</version>
    </configuration>
</plugin>

If I hard code a version in the property it works fine, but for whatever reason the property generated by the create-property task isn't being seen when it gets to the deployment, and the deployment is just generating the version based off the timestamp.

ludoch commented 8 years ago

I think it is now fixed, in the staging phase provided by the GAE Java SDK.

ludoch commented 8 years ago

Wrong issue, sorry.