Maven项目编译报错

Error in Compilation of Maven Project

我正在尝试创建一个 Maven 端点项目,并且在创建时我在 windows 命令提示符中收到以下语句:

定义 属性 'gcloud-version' 的值:${gcloud.plugin.version}: :

是否有我应该输入的特定版本?
当我尝试提供默认值时,项目已创建,但后来当我尝试编译它时,我在命令提示符中收到以下错误:

C:\projects\syncDb>mvn clean install        
 [INFO] Scanning for projects...    
 [ERROR] 
 [ERROR] Some problems were encountered while processing the POMs:    
 [ERROR] Resolving expression: '${gcloud.plugin.version}':  
 Detected the following recursive expression cycle in  'gcloud.plugin.version': [gcloud.plugin.version]    
 @[ERROR] Resolving expression: '${gcloud.plugin.version}': 
 Detected the followingrecursive expression cycle in 'gcloud.plugin.version': [gcloud.plugin.version]    
 @[ERROR] 'build.plugins.plugin.version' for com.google.appengine:gcloud-maven-plugin must be a valid version but is '${gcloud.plugin.version}'. @ line 150, column 24    
 @[ERROR] The build could not read 1 project -> [Help 1]    
 [ERROR]
 [ERROR]   The project com.focusanything.syncDb:synchDb:1.0-SNAPSHOT(C:\projects\syncDb\pom.xml) has 3 errors    
 [ERROR]     Resolving expression: '${gcloud.plugin.version}': Detected the following recursive expression cycle in 'gcloud.plugin.version': [gcloud.plugin.version] -> [Help 2]    
 [ERROR]     Resolving expression: '${gcloud.plugin.version}': Detected the following recursive expression cycle in 'gcloud.plugin.version': [gcloud.plugin.version] -> [Help 2]    
 [ERROR]     'build.plugins.plugin.version' for com.google.appengine:gcloud-maven-plugin must be a valid version but is '${gcloud.plugin.version}'. @ line 150, column 24        
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the-eswitch.    
[ERROR] Re-run Maven using the -X switch to enable full debug logging.

:

提前致谢

我有同样的错误。 我从这里获取版本 https://cloud.google.com/sdk/downloads 并将其放入 pom.xml

<gcloud.plugin.version>117</gcloud.plugin.version>

gcloud.plugin.version 表示您要使用的 gcloud-maven-plugin 的版本。版本列表可以在 https://mvnrepository.com/artifact/com.google.appengine/gcloud-maven-plugin

找到

当前版本是 2.0.9.133.v201611104,所以在 pom.xml 中使用的正确 xml 元素是

<gcloud.plugin.version>2.0.9.133.v201611104</gcloud.plugin.version>