Maven项目编译中的错误 [英] Error in Compilation of Maven Project
问题描述
我试图创建一个Maven Endpoint项目,并且在创建时我在Windows命令提示符下得到以下语句:
I am trying to create an Maven Endpoint project and while creating i am getting the following statement in windows command prompt:
为属性"gcloud-version"定义值:$ {gcloud.plugin.version} ::
我应该输入一个特定的版本吗?
当我尝试提供默认值时,创建了该项目,但是后来尝试编译它时,在命令提示符下出现以下错误:
Is there a specific version which i am supposed to enter?
When I tried giving default value, the project was created but later on when I tried compiling it, i got the following error in command prompt:
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
I had the same error. I took version from here https://cloud.google.com/sdk/downloads and put it into pom.xml
<gcloud.plugin.version>117</gcloud.plugin.version>
这篇关于Maven项目编译中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!