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] ----------------------------------------------------------------------------