Non zero exit: 1 ERROR when deploying project ./helloworld-springboot
pokemon0121 opened this issue · 1 comments
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building helloworld-springboot 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> appengine-maven-plugin:1.3.2:deploy (default-cli) > package @ helloworld-springboot >>>
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default) @ helloworld-springboot ---
[INFO] argLine set to -javaagent:/Users/Gardevoir/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/Users/Gardevoir/Downloads/getting-started-java-master/helloworld-springboot/target/jacoco.exec
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ helloworld-springboot ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.6.2:compile (default-compile) @ helloworld-springboot ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- versions-maven-plugin:2.5:display-dependency-updates (default) @ helloworld-springboot ---
[INFO] No dependencies in Dependency Management have newer versions.
[INFO]
[INFO] No dependencies in Dependencies have newer versions.
[INFO]
[INFO] The following dependencies in Plugin Dependencies have newer versions:
[INFO] com.google.cloud.samples:checkstyle-configuration .... 1.0.5 -> 1.0.10
[INFO] com.google.errorprone:error_prone_core ............... 2.0.21 -> 2.3.1
[INFO] com.puppycrawl.tools:checkstyle .......................... 8.1 -> 8.10
[INFO] org.codehaus.plexus:plexus-compiler-javac-errorprone ...
[INFO] 2.8.2 -> 2.8.4
[INFO]
[INFO]
[INFO] --- versions-maven-plugin:2.5:display-plugin-updates (default) @ helloworld-springboot ---
[INFO]
[INFO] The following plugin updates are available:
[INFO] org.springframework.boot:spring-boot-maven-plugin 1.5.7.RELEASE -> 1.5.13.RELEASE
[INFO]
[WARNING] The following plugins do not have their version specified:
[WARNING] maven-jar-plugin ............................ (from super-pom) 2.1
[INFO]
[WARNING] Project does not define minimum Maven version, default is: 2.0
[INFO] Plugins require minimum Maven version of: 3.0
[INFO] Note: the super-pom from Maven 3.3.9 defines some of the plugin
[INFO] versions and may be influencing the plugins required minimum Maven
[INFO] version.
[INFO]
[ERROR] Project does not define required minimum version of Maven.
[ERROR] Update the pom.xml to contain maven-enforcer-plugin to
[ERROR] force the maven version which is needed to build this project.
[ERROR] See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
[ERROR] Using the minimum version of Maven: 3.0
[INFO]
[INFO] Require Maven 2.0.6 to use the following plugin updates:
[INFO] maven-jar-plugin ................................................ 2.4
[INFO]
[INFO] Require Maven 2.2.1 to use the following plugin updates:
[INFO] maven-jar-plugin ................................................ 2.6
[INFO]
[INFO] Require Maven 3.0 to use the following plugin updates:
[INFO] maven-jar-plugin .............................................. 3.1.0
[INFO]
[INFO] Require Maven 3.5 to use the following plugin updates:
[INFO] org.springframework.boot:spring-boot-maven-plugin ..... 2.0.2.RELEASE
[INFO]
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ helloworld-springboot ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/Gardevoir/Downloads/getting-started-java-master/helloworld-springboot/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.2:testCompile (default-testCompile) @ helloworld-springboot ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.20.1:test (default-test) @ helloworld-springboot ---
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.9:report (report) @ helloworld-springboot ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ helloworld-springboot ---
[INFO]
[INFO] --- spring-boot-maven-plugin:1.5.7.RELEASE:repackage (default) @ helloworld-springboot ---
[INFO]
[INFO] <<< appengine-maven-plugin:1.3.2:deploy (default-cli) < package @ helloworld-springboot <<<
[INFO]
[INFO] --- appengine-maven-plugin:1.3.2:deploy (default-cli) @ helloworld-springboot ---
[INFO] Deleting the staging directory: /Users/Gardevoir/Downloads/getting-started-java-master/helloworld-springboot/target/appengine-staging
[INFO] Staging the application to: /Users/Gardevoir/Downloads/getting-started-java-master/helloworld-springboot/target/appengine-staging
[INFO] Detected App Engine flexible environment application.
May 11, 2018 10:31:18 PM com.google.cloud.tools.appengine.cloudsdk.CloudSdk logCommand
INFO: submitting command: /Users/Gardevoir/Downloads/google-cloud-sdk/bin/gcloud app deploy
[INFO] GCLOUD: ERROR: (gcloud.app.deploy) The current Google Cloud project [named-signal-203903] does not contain an App Engine application. Use gcloud app create
to initialize an App Engine application within the project.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.016 s
[INFO] Finished at: 2018-05-11T22:31:22-07:00
[INFO] Final Memory: 35M/447M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.google.cloud.tools:appengine-maven-plugin:1.3.2:deploy (default-cli) on project helloworld-springboot: Execution default-cli of goal com.google.cloud.tools:appengine-maven-plugin:1.3.2:deploy failed: Non zero exit: 1 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
Any ideas? Not about the import statement, that's another project.
Sorry, it's about I did not initialize the app using 'gcloud app create'.
And btw you also need enable billing for this project.
Now everything is fine.