1.

No goals have been specified for this build. You must specif

編集
この記事の要点
  • Maven の No goals have been specified for this build
  • 原因: mvn 単体実行でゴール(phase)が指定されていない
  • 対処: mvn package / mvn install / mvn compile 等のゴールを明示する
  • Eclipse 連携時はビルド構成側で Goals フィールドが空になっている可能性

 

エラー内容

[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format : or :[:]:. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]
 

発生条件/原因

mavenビルドを実行した際にゴールの項目が指定されていないため。

 

対処法

ゴールにpackage等を指定しましょう。

 

編集
Post Share
子ページ

子ページはありません

同階層のページ
  1. No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format
  2. Fatal error compiling: 1.Xは無効なターゲット・リリースです