2017-03-29 7 views
1

springbootを実行する際に以下のエラーが発生します。SpringツールスイートでSpringブートアプリケーションを実行します。MavenがSpringブートアプリケーションのためのSpringツールスイートで実行する

[INFO] BUILD FAILURE 

[INFO] ------------------------------------------------------------------------ 

[INFO] Total time: 9.020 s 
[INFO] Final Memory: 27M/262M 

[INFO] ------------------------------------------------------------------------ 

[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.4.2.RELEASE:run (default-cli) on project documentupload-svc: Could not exec java: Application finished with exit code: 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/MojoExecutionException 

Springツールスイートの問題を解決する方法をご提案ください。 Windowsマシンにしていると仮定すると、

+0

pom.xmlを投稿できますか? – Karthik

答えて

0

1)あなたのJavaがあるフォルダにJAVA_HOME環境変数を設定します。

2)mavenがあるフォルダにM2_HOME環境変数を設定します。

3)%JAVA_HOME%/ bin:%M2_HOME%/ binをPATH環境変数の先頭に追加します。

4)STSにJDKが設定されていることを確認してください。

関連する問題