Dec 01, 2009

[Maven] Maven 3.0-alpha-5 で package にチャレンジ

試しに Maven 2.1 系で管理しているプロジェクトを Maven 3.0-alpha-5 で clean package してみた。

Maven 3.0-alpha-5 を Mac OS X Snow Leopard にインストール

$ wget http://ftp.riken.jp/net/apache/maven/binaries/apache-maven-3.0-alpha-5-bin.tar.gz
$ tar zxvf ./apache-maven-3.0-alpha-5-bin.tar.gz 
$ sudo mv ./apache-maven-3.0-alpha-5 /usr/share/java/
$ sudo chown -R root:wheel ./apache-maven-3.0-alpha-5
$ export MAVEN_HOME=/usr/share/java/apache-maven-3.0-alpha-5
$ export PATH=$MAVEN_HOME/bin:$PATH
$ mvn --version
Apache Maven 3.0-alpha-5 (r883378; 2009-11-24 00:53:41+0900)
Java version: 1.6.0_15
Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
Default locale: ja_JP, platform encoding: SJIS
OS name: "mac os x" version: "10.6.2" arch: "x86_64" Family: "mac"
$ 

プロジェクトの clean package

全く何事もなく正常終了。 正直驚いた。 3.0 の売り文句通り、plugin 周りの後方互換性はかなり高そうだ。

$ mvn clean package
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building MyApp 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.4.1/maven-resources-plugin-2.4.1.jar
24 KB downloaded at 13.8 KB/sec
[INFO] 
[INFO] --- maven-clean-plugin:2.3:clean (default-clean) @ myapp ---
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.3/maven-clean-plugin-2.3.pom
5 KB downloaded at 24.6 KB/sec
Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/file-management/1.2.1/file-management-1.2.1.pom
4 KB downloaded at 21.4 KB/sec
Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/file-management/1.2.1/file-management-1.2.1.jar
37 KB downloaded at 14.0 KB/sec
[INFO] Deleting file set: /Users/me/Workspace/MyApp/target (included: [**], excluded: [])
[INFO] 
[INFO] --- maven-resources-plugin:2.4.1:resources (default-resources) @ myapp ---
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.4.1/maven-resources-plugin-2.4.1.pom
6 KB downloaded at 29.3 KB/sec
Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/maven-filtering/1.0-beta-3/maven-filtering-1.0-beta-3.pom
6 KB downloaded at 30.6 KB/sec
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-interpolation/1.12/plexus-interpolation-1.12.pom
889 B downloaded at 5.0 KB/sec
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-components/1.1.14/plexus-components-1.1.14.pom
6 KB downloaded at 32.8 KB/sec
Downloading: http://repo1.maven.org/maven2/org/sonatype/plexus/plexus-build-api/0.0.4/plexus-build-api-0.0.4.pom
3 KB downloaded at 16.1 KB/sec
Downloading: http://repo1.maven.org/maven2/org/sonatype/spice/spice-parent/10/spice-parent-10.pom
3 KB downloaded at 16.9 KB/sec
Downloading: http://repo1.maven.org/maven2/org/sonatype/forge/forge-parent/3/forge-parent-3.pom
5 KB downloaded at 28.2 KB/sec
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.5.8/plexus-utils-1.5.8.pom
8 KB downloaded at 45.3 KB/sec
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-interpolation/1.13/plexus-interpolation-1.13.pom
890 B downloaded at 1.5 KB/sec
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-components/1.1.15/plexus-components-1.1.15.pom
3 KB downloaded at 4.8 KB/sec
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus/2.0.3/plexus-2.0.3.pom
16 KB downloaded at 16.6 KB/sec
Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/maven-filtering/1.0-beta-3/maven-filtering-1.0-beta-3.jar
34 KB downloaded at 22.8 KB/sec
Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-file/1.0-beta-2/wagon-file-1.0-beta-2.jar
10 KB downloaded at 10.3 KB/sec
Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-http-lightweight/1.0-beta-2/wagon-http-lightweight-1.0-beta-2.jar
13 KB downloaded at 11.4 KB/sec
Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.jar
10 KB downloaded at 12.5 KB/sec
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-interpolation/1.13/plexus-interpolation-1.13.jar
60 KB downloaded at 9.7 KB/sec
Downloading: http://repo1.maven.org/maven2/org/sonatype/plexus/plexus-build-api/0.0.4/plexus-build-api-0.0.4.jar
7 KB downloaded at 10.4 KB/sec
[WARNING] Using platform encoding (SJIS actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 4 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ myapp ---
[INFO] Compiling 151 source files to /Users/me/Workspace/MyApp/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:2.4.1:testResources (default-testResources) @ myapp ---
[WARNING] Using platform encoding (SJIS actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /Users/me/Workspace/MyApp/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @ myapp ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.4.3:test (default-test) @ myapp ---
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.4.3/maven-surefire-plugin-2.4.3.pom
7 KB downloaded at 20.1 KB/sec
Downloading: http://repo1.maven.org/maven2/org/apache/maven/surefire/surefire/2.4.3/surefire-2.4.3.pom
8 KB downloaded at 41.4 KB/sec
Downloading: http://repo1.maven.org/maven2/org/apache/maven/surefire/surefire-booter/2.4.3/surefire-booter-2.4.3.pom
2 KB downloaded at 11.4 KB/sec
Downloading: http://repo1.maven.org/maven2/org/apache/maven/surefire/surefire-api/2.4.3/surefire-api-2.4.3.pom
3 KB downloaded at 2.5 KB/sec
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.5.1/plexus-utils-1.5.1.pom
3 KB downloaded at 5.5 KB/sec
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-toolchain/1.0/maven-toolchain-1.0.pom
4 KB downloaded at 19.3 KB/sec
Downloading: http://repo1.maven.org/maven2/org/apache/maven/surefire/surefire-booter/2.4.3/surefire-booter-2.4.3.jar
262 KB downloaded at 28.0 KB/sec
Downloading: http://repo1.maven.org/maven2/org/apache/maven/surefire/surefire-api/2.4.3/surefire-api-2.4.3.jar
504 KB downloaded at 20.7 KB/sec
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.5.1/plexus-utils-1.5.1.jar
206 KB downloaded at 27.7 KB/sec
[INFO] No tests to run.
[INFO] 
[INFO] --- maven-jar-plugin:2.2:jar (default-jar) @ myapp ---
[INFO] Building jar: /Users/me/Workspace/MyApp/target/MyApp-1.0.0-SNAPSHOT.jar
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:30.739s
[INFO] Finished at: Tue Dec 01 06:37:14 JST 2009
[INFO] Final Memory: 11M/79M
[INFO] ------------------------------------------------------------------------
$ 

Posted in Maven | このエントリーをはてなブックマークに追加 | この記事をクリップ! livedoor クリップ |