Caused by: java.lang.IllegalArgumentException: Deployment projectId must be defined or configured to read from system state
1. Set <deploy.projectId>my-project-id</deploy.projectId>
2. Set <deploy.projectId>APPENGINE_CONFIG</deploy.projectId> to use <application> from appengine-web.xml
3. Set <deploy.projectId>GCLOUD_CONFIG</deploy.projectId> to use project from gcloud config.
at com.google.cloud.tools.maven.AppEngineStandardDeployer.setDeploymentProjectAndVersion (AppEngineStandardDeployer.java:152)
I tried to provide the projectId using various ways, it is not working. I tried to provide the projectId using properties in the pom.xml file
<properties>
<deploy.projectId>APPENGINE_CONFIG</deploy.projectId>
</properties>
But that didn't solve the issue. Then I tried to do, mvn appengine:deploy -DprojectId=APPENGINE_CONFIG
also tried -Ddeploy.projectId=APPENGINE_CONFIG. I am not sure where I should have this property.
This started happening especially after trying the latest 2.0.0-rc1 appengine-maven-plugin.