Fehler in der Zusammenstellung des Maven-Projekt
Ich versuche zum erstellen einer Maven-Endpoint-Projekt und beim erstellen erhalte ich die folgende Anweisung in der windows-Eingabeaufforderung:
Definieren Wert für die Eigenschaft 'gcloud-version: ${gcloud.plugin.- version}: :
Gibt es eine spezielle version, welche soll ich eingeben?
Wenn ich versuchte, default-Wert, der das Projekt erstellt wurde, aber später, wenn ich versuchte, Sie kompilieren, bekam ich die folgende Fehlermeldung in der Eingabeaufforderung:
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.
:
Danke im Voraus
Du musst angemeldet sein, um einen Kommentar abzugeben.
Ich hatte den gleichen Fehler.
Ich nahm die version von hier https://cloud.google.com/sdk/downloads
und steckte es in pom.xml
<gcloud.plugin.version>117</gcloud.plugin.version>
Die gcloud.plugin.version gibt die version der gcloud-maven-plugin, das Sie verwenden möchten. Die Liste der Versionen finden Sie auf https://mvnrepository.com/artifact/com.google.appengine/gcloud-maven-plugin
Die aktuelle version ist 2.0.9.133.v201611104 so die korrekte xml-element zu verwenden pom.xml ist