home >  Apache > Maven

Maven2のゴールまとめ(ログ付き)

タグ:
CIサーバなどで設定するゴールをしらべるために、いろいろ動かしてログをとってみる。 mavenのAvailable Pluginsの簡易翻訳。

ゴールの種類

  • resources:resources・・・main/resoursesのコピー
  • compiler:compile・・・mainソースのコンパイル
  • resources:testResources・・・test/resourcesのコピー
  • compiler:testCompile・・・testソースのコンパイル
  • surefire:test・・・テストのレポート
  • jar:jar・・・Jarファイル作成(プロジェクトにとってはearとかwar)
  • install:install・・・ローカルリポジトリに成果物(jarとかwarとか)をインストール
  • deploy:deploy・・・リモートに指定しているリポジトリにインストール
siteは未確認。siteだけじゃコンパイルしてくれないんだなー。

compile

やってくれること。
  • resources:resources
  • compiler:compile
 [INFO] Scanning for projects...
 [INFO] ----------------------------------------------------------------------------
 [INFO] Building Unnamed - maven2sample:maven2sample:jar:0.0.1-SNAPSHOT
 [INFO]    task-segment: [compile]
 [INFO] ----------------------------------------------------------------------------
 [INFO] resources:resources
 [INFO] Using 'UTF-8' encoding to copy filtered resources.
 [INFO] Copying 0 resource
 [INFO] compiler:compile
 [INFO] Compiling 1 source file to D:\Study\workspace\maven2sample\target\classes
 [INFO] ----------------------------------------------------------------------------
 [INFO] BUILD SUCCESSFUL maven2sample:maven2sample:jar:0.0.1-SNAPSHOT (  task-segment: [compile] )
 [INFO] ----------------------------------------------------------------------------
 [INFO] Total time: 5 second
 [INFO] Finished at: Sat Jun 20 22:58:03 JST 2009
 [INFO] Memory 1M/13M
 [INFO] ----------------------------------------------------------------------------

test

やってくれること。
  • resources:resources
  • compiler:compile
  • resources:testResources
  • compiler:testCompile
  • surefire:test
 [INFO] Scanning for projects...
 [INFO] ----------------------------------------------------------------------------
 [INFO] Building Unnamed - maven2sample:maven2sample:jar:0.0.1-SNAPSHOT
 [INFO]    task-segment: [test]
 [INFO] ----------------------------------------------------------------------------
 [INFO] resources:resources
 [INFO] Using 'UTF-8' encoding to copy filtered resources.
 [INFO] Copying 0 resource
 [INFO] compiler:compile
 [INFO] Compiling 1 source file to D:\Study\workspace\maven2sample\target\classes
 [INFO] resources:testResources
 [INFO] Using 'UTF-8' encoding to copy filtered resources.
 [INFO] Copying 0 resource
 [INFO] compiler:testCompile
 [INFO] Compiling 1 source file to D:\Study\workspace\maven2sample\target\test-classes
 [INFO] surefire:test
 [INFO] Surefire report directory: D:\Study\workspace\maven2sample\target\surefire-reports
 
 -------------------------------------------------------
  T E S T S
 -------------------------------------------------------
 Running CalcTest
 Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.098 sec
 
 Results :
 
 Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
 
 [INFO] ----------------------------------------------------------------------------
 [INFO] BUILD SUCCESSFUL maven2sample:maven2sample:jar:0.0.1-SNAPSHOT (  task-segment: [test] )
 [INFO] ----------------------------------------------------------------------------
 [INFO] Total time: 11 second
 [INFO] Finished at: Sat Jun 20 23:34:40 JST 2009
 [INFO] Memory 1M/17M
 [INFO] ----------------------------------------------------------------------------

package

やってくれること。
  • resources:resources
  • compiler:compile
  • resources:testResources
  • compiler:testCompile
  • surefire:test
  • jar:jar
 [INFO] Scanning for projects...
 [INFO] ----------------------------------------------------------------------------
 [INFO] Building Unnamed - maven2sample:maven2sample:jar:0.0.1-SNAPSHOT
 [INFO]    task-segment: [package]
 [INFO] ----------------------------------------------------------------------------
 [INFO] resources:resources
 [INFO] Using 'UTF-8' encoding to copy filtered resources.
 [INFO] Copying 0 resource
 [INFO] compiler:compile
 [INFO] Compiling 1 source file to D:\Study\workspace\maven2sample\target\classes
 [INFO] resources:testResources
 [INFO] Using 'UTF-8' encoding to copy filtered resources.
 [INFO] Copying 0 resource
 [INFO] compiler:testCompile
 [INFO] Compiling 1 source file to D:\Study\workspace\maven2sample\target\test-classes
 [INFO] surefire:test
 [INFO] Surefire report directory: D:\Study\workspace\maven2sample\target\surefire-reports
 
 -------------------------------------------------------
  T E S T S
 -------------------------------------------------------
 Running CalcTest
 Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.153 sec
 
 Results :

 Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
 
 [INFO] jar:jar
 [INFO] Building jar: D:\Study\workspace\maven2sample\target\maven2sample-0.0.1-SNAPSHOT.jar
 [INFO] ----------------------------------------------------------------------------
 [INFO] BUILD SUCCESSFUL maven2sample:maven2sample:jar:0.0.1-SNAPSHOT (  task-segment: [package] )
 [INFO] ----------------------------------------------------------------------------
 [INFO] Total time: 14 second
 [INFO] Finished at: Sat Jun 20 23:49:15 JST 2009
 [INFO] Memory 7M/26M
 [INFO] ----------------------------------------------------------------------------

install

やってくれること。
  • resources:resources
  • compiler:compile
  • resources:testResources
  • compiler:testCompile
  • surefire:test
  • jar:jar
  • install:install
 [INFO] Scanning for projects...
 [INFO] ----------------------------------------------------------------------------
 [INFO] Building Unnamed - maven2sample:maven2sample:jar:0.0.1-SNAPSHOT
 [INFO]    task-segment: [install]
 [INFO] ----------------------------------------------------------------------------
 [INFO] resources:resources
 [INFO] Using 'UTF-8' encoding to copy filtered resources.
 [INFO] Copying 0 resource
 [INFO] compiler:compile
 [INFO] Compiling 1 source file to D:\Study\workspace\maven2sample\target\classes
 [INFO] resources:testResources
 [INFO] Using 'UTF-8' encoding to copy filtered resources.
 [INFO] Copying 0 resource
 [INFO] compiler:testCompile
 [INFO] Compiling 1 source file to D:\Study\workspace\maven2sample\target\test-classes
 [INFO] surefire:test
 [INFO] Surefire report directory: D:\Study\workspace\maven2sample\target\surefire-reports
 
 -------------------------------------------------------
  T E S T S
 -------------------------------------------------------
 Running CalcTest
 Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.092 sec
 
 Results :
 
 Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
 
 [INFO] jar:jar
 [INFO] Building jar: D:\Study\workspace\maven2sample\target\maven2sample-0.0.1-SNAPSHOT.jar
 [INFO] install:install
 [INFO] Installing D:\Study\workspace\maven2sample\target\maven2sample-0.0.1-SNAPSHOT.jar to C:\Users\藤原さん\.m2\repository\maven2sample\maven2sample\0.0.1-SNAPSHOT\maven2sample-0.0.1-SNAPSHOT.jar
 [INFO] ----------------------------------------------------------------------------
 [INFO] BUILD SUCCESSFUL maven2sample:maven2sample:jar:0.0.1-SNAPSHOT (  task-segment: [install] )
 [INFO] ----------------------------------------------------------------------------
 [INFO] Total time: 18 second
 [INFO] Finished at: Sat Jun 20 22:59:49 JST 2009
 [INFO] Memory 9M/28M
 [INFO] ----------------------------------------------------------------------------

deploy

やってくれること。
  • resources:resources
  • compiler:compile
  • resources:testResources
  • compiler:testCompile
  • surefire:test
  • jar:jar
  • install:install
  • deploy:deploy
 [INFO] Scanning for projects...
 [INFO] ----------------------------------------------------------------------------
 [INFO] Building Unnamed - maven2sample:maven2sample:jar:0.0.1-SNAPSHOT
 [INFO]    task-segment: [deploy]
 [INFO] ----------------------------------------------------------------------------
 [INFO] resources:resources
 [INFO] Using 'UTF-8' encoding to copy filtered resources.
 [INFO] Copying 0 resource
 [INFO] compiler:compile
 [INFO] Compiling 1 source file to D:\Study\workspace\maven2sample\target\classes
 [INFO] resources:testResources
 [INFO] Using 'UTF-8' encoding to copy filtered resources.
 [INFO] Copying 0 resource
 [INFO] compiler:testCompile
 [INFO] Compiling 1 source file to D:\Study\workspace\maven2sample\target\test-classes
 [INFO] surefire:test
 [INFO] Surefire report directory: D:\Study\workspace\maven2sample\target\surefire-reports
 
 -------------------------------------------------------
  T E S T S
 -------------------------------------------------------
 Running CalcTest
 Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.097 sec
 
 Results :
 
 Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
 
 [INFO] jar:jar
 [INFO] Building jar: D:\Study\workspace\maven2sample\target\maven2sample-0.0.1-SNAPSHOT.jar
 [INFO] install:install
 [INFO] Installing D:\Study\workspace\maven2sample\target\maven2sample-0.0.1-SNAPSHOT.jar to C:\Users\藤原さん\.m2\repository\maven2sample\maven2sample\0.0.1-SNAPSHOT\maven2sample-0.0.1-SNAPSHOT.jar
 [INFO] deploy:deploy
 [INFO] Retrieving previous build number from localhost.maven2
 WAGON_VERSION: 1.0-beta-2
 Downloading [localhost.maven2] -> http://localhost:50000/maven2/snapshot/maven2sample/maven2sample/0.0.1-SNAPSHOT/maven2sample-0.0.1-20090620.145230-1.jar
 .
 [INFO] Retrieving previous metadata from localhost.maven2
 [INFO] Uploading repository metadata for: 'snapshot maven2sample:maven2sample:0.0.1-SNAPSHOT'
 [INFO] Retrieving previous metadata from localhost.maven2
 [INFO] Uploading repository metadata for: 'artifact maven2sample:maven2sample'
 [INFO] Retrieving previous metadata from localhost.maven2
 [INFO] Uploading project information for maven2sample 0.0.1-20090620.145230-1
 [INFO] ----------------------------------------------------------------------------
 [INFO] BUILD SUCCESSFUL maven2sample:maven2sample:jar:0.0.1-SNAPSHOT (  task-segment: [deploy] )
 [INFO] ----------------------------------------------------------------------------
 [INFO] Total time: 22 second
 [INFO] Finished at: Sat Jun 20 23:52:34 JST 2009
 [INFO] Memory 3M/25M
 [INFO] ----------------------------------------------------------------------------

site

やってくれること。
  • statemgmt:start-fork
  • statemgmt:end-fork
  • site:site
  • statemgmt:clear-fork-context
 [INFO] Scanning for projects...
 [INFO] ----------------------------------------------------------------------------
 [INFO] Building Unnamed - maven2sample:maven2sample:jar:0.0.1-SNAPSHOT
 [INFO]    task-segment: [site]
 [INFO] ----------------------------------------------------------------------------
 [INFO] statemgmt:start-fork
 [INFO] Starting forked execution [fork id: -23017625]
 [INFO] project-info-reports:plugin-management
 [INFO] project-info-reports:mailing-list
 [INFO] project-info-reports:cim
 [INFO] project-info-reports:dependency-management
 [INFO] project-info-reports:license
 [INFO] project-info-reports:project-team
 [INFO] project-info-reports:scm
 [INFO] project-info-reports:index
 [INFO] project-info-reports:issue-tracking
 [INFO] project-info-reports:summary
 [INFO] project-info-reports:plugins
 [INFO] project-info-reports:dependency-convergence
 [INFO] project-info-reports:dependencies
 [INFO] statemgmt:end-fork
 [INFO] Ending forked execution [fork id: -23017625]
 [INFO] site:site
 [WARN] No URL defined for the project - decoration links will not be resolved
 [INFO] Generating "About" report.
 [INFO] Generating "Project Team" report.
 [INFO] Generating "Issue Tracking" report.
 [INFO] Generating "Dependencies" report.
 [INFO] Generating "Continuous Integration" report.
 [INFO] Generating "Source Repository" report.
 [INFO] Generating "Mailing Lists" report.
 [INFO] Generating "Project License" report.
 [INFO] Generating "Project Summary" report.
 [INFO] statemgmt:clear-fork-context
 [INFO] Cleaning up forked execution context [fork id: -23017625]
 [INFO] ----------------------------------------------------------------------------
 [INFO] BUILD SUCCESSFUL maven2sample:maven2sample:jar:0.0.1-SNAPSHOT (  task-segment: [site] )
 [INFO] ----------------------------------------------------------------------------
 [INFO] Total time: 81 second
 [INFO] Finished at: Sun Jun 21 02:06:03 JST 2009
 [INFO] Memory 16M/41M
 [INFO] ----------------------------------------------------------------------------

参考

円 
円 
J J円 
J
円 
P P円 
P
円 
円 
円 
円 
円 
円 
円 
9 9円 
9
円 
2 2円 
2
3 3円 
3
0 0円 
0
h h円 
h
h h円 
h
h h円 
h
h h円 
h
h h円 
h
2 2円 
2
1 1円 
1
0 0円 
0
1 1円 
1
3 3円 
3
0 0円 
0

コメントする


画像の中に見える文字を入力してください。

Mike Cohn (著), マイク コーン (著), 安井 力 (翻訳), 角谷 信太郎 (翻訳)
採用した現在のタイトルは、見積りや計画づくりといったプロセスを、アジャイルに進めなければならないと謳っているのだ。見積りと計画づくりがアジャイルでないのに、プロジェクトがアジャイルであるということはありえない。

メアリー・ポッペンディーク (著), トム・ポッペンディーク (著), 高嶋 優子 (翻訳), 天野 勝 (翻訳), 平鍋 健児 (翻訳) 「トヨタ生産方式」を源流にする「リーン開発」をソフトウエア開発に取り入れるための具体的方法を紹介した本です。製造分野から始まったリーン活動は、その原則を理解しないままプラクティスだけを開発分野に適用しようとしても、行き詰るか失敗に終わってしまいます。本書は、リーンの7大原則を「価値」「ムダ」「スピード」「人」「知識」「品質」「パートナー」に整理し、ソフト開発現場にどうしたら効果的に適用できるかを、多くの実例を交えながら具体的に説明します。

著者:Yugui 税込 2,310 円
本書は、他言語でのプログラミング経験を持つ人を対象に、Rubyの特徴、Rubyならではの方法や慣習について解説します。これはRubyの資料を読んで実践的な学習を進めていくために必要な前提知識です。本書はRubyの基礎的な部分とメタクラスやブロック構文のような独自の概念、それらにまつわる文化を説明し、Ruby特有の考え方を知ってもらうことを目的としています。

本書は、Railsの入門からリファレンスまでをわかりやすく解説した書籍です。第1部と第2部では、Railsの背景にある概念について説明し、あっという間に簡単なオンラインストアを開発してみせます。

著者:James Shore, Shane Warden アジャイル開発は人のなせる技である。アジャイル開発を極めるためには、その時々で無数の可能性を評価して最善の方策を選択することを学ぶ必要がある。本書は、あなたがアジャイル開発の「道」を極める手助けをしたい。

daipresents!! ҂̑蕨

tWn{github tWn{Google Code