カテゴリー:
アプリ ソースコード
閲覧数:1221 配信日:2014-02-17 09:11
Mavenビルド
Mavenのアーキタイプにより作られたプロジェクトでは、ビルド(パッケージング)することによって成果物(jarファイル等)が作られる
mvn clean package
・ファイル生成する際には、cleanも一緒に指定
・targetをクリアしてから実行(targetにゴミが残っている可能性があるから、クリア)
ビルド失敗
C:\Users\Administrator\.android>mvn clean package
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.273s
[INFO] Finished at: Mon Feb 17 07:52:31 JST 2014
[INFO] Final Memory: 4M/60M
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (C:\Users\Administrator\.andro
id). Please verify you invoked Maven from the correct directory. -> [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/MissingProjectException