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)
我尝试使用各种方式提供 projectId,但它不起作用。我尝试使用 pom.xml 文件中的属性提供 projectId
<properties>
<deploy.projectId>APPENGINE_CONFIG</deploy.projectId>
</properties>
但这并没有解决问题。然后我尝试做, mvn appengine:deploy -DprojectId=APPENGINE_CONFIG
还尝试了-Ddeploy.projectId=APPENGINE_CONFIG。我不确定我应该在哪里拥有这个属性。
这开始发生,尤其是在尝试了最新的 2.0.0-rc1 appengine-maven-plugin 之后。