From 0ba5d64a08128cc679109f464ef896a4564fd7a0 Mon Sep 17 00:00:00 2001 From: Olyutorskii Date: Sat, 26 Nov 2011 20:55:23 +0900 Subject: [PATCH] =?utf8?q?Maven3=E5=AF=BE=E5=BF=9C=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .hgeol | 7 +- .hgignore | 48 ++++++-- CHANGELOG.txt | 3 + README.txt | 17 +-- SCM.txt | 48 ++++++++ build.xml => fixcrlf.xml | 45 ++++--- pom.xml | 250 ++++++++++++++++++++++++++++++--------- src/main/assembly/descriptor.xml | 18 +-- src/main/config/checks.xml | 19 ++- src/main/config/pmdrules.xml | 8 +- src/main/config/suppressions.xml | 2 +- 11 files changed, 337 insertions(+), 128 deletions(-) create mode 100644 SCM.txt rename build.xml => fixcrlf.xml (62%) diff --git a/.hgeol b/.hgeol index c2e4f82..8458257 100644 --- a/.hgeol +++ b/.hgeol @@ -9,6 +9,11 @@ **.xsd = LF **.dtd = LF -**.css = LF **.html = LF +**.htm = LF +**.css = LF + **.png = BIN +**.gif = BIN +**.jpeg = BIN +**.jpg = BIN diff --git a/.hgignore b/.hgignore index 7454a09..3ce27c0 100644 --- a/.hgignore +++ b/.hgignore @@ -1,12 +1,36 @@ -syntax: regexp - -\.orig$ -\.orig\..*$ -\.chg\..*$ -\.rej$ -\.conflict\~$ -^maven-build\.properties$ -^maven-build\.xml$ -^nb-configuration\.xml$ -^nbactions\.xml$ -^target$ +######################### +# for Mercurial hgignore +######################### + + +##################### +syntax: regexp + +^nb-configuration\.xml$ +^nbactions\.xml$ +^\.classpath$ +^\.project$ + +\.orig$ +\.orig\..*$ +\.chg\..*$ +\.rej$ +\.conflict\~$ +^target/ +^build/ +^bin/ +^nbproject/ +^\.settings/ + + +##################### +syntax: glob + +.DS_Store +_MACOSX +[Tt]humbs.db +[Dd]esktop.ini +core + + +### EOF ### diff --git a/CHANGELOG.txt b/CHANGELOG.txt index dc4d0fd..5cb8762 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -4,6 +4,9 @@ TogaGem 変更履歴 +X.XXX.X (20XX-XX-XX) + ・Maven3対応。 + 2.101.2 (2011-08-24) ・VMDファイルの読み込みに対応。 ・パッケージ構成の整理。 diff --git a/README.txt b/README.txt index cb20caa..115e0c1 100644 --- a/README.txt +++ b/README.txt @@ -32,16 +32,6 @@ MikuTogaプロジェクトは、MMDによる3Dアニメーション制作を支 原則として、JRE1.6に準拠した実行系であれば、プラットフォームを選びません。 -=== アーカイブ管理体制 === - - このアーカイブは、UTF-8による開発環境を前提として構成されています。 - このアーカイブの原本となる開発資産は、 - http://hg.sourceforge.jp/view/mikutoga/TogaGem - を上位に持つMercurialリポジトリで管理されています。 - アーカイブの代わりにMercurialを通じての開発資産へのアクセスが可能です。 - # hg clone http://hg.sourceforge.jp/view/mikutoga/TogaGem - - === 開発プロジェクト運営元 === http://sourceforge.jp/projects/mikutoga/ まで。 @@ -49,7 +39,7 @@ MikuTogaプロジェクトは、MMDによる3Dアニメーション制作を支 === ディレクトリ内訳構成 === -基本的にはMaven2のmaven-archetype-quickstart構成に準じます。 +基本的にはMaven3のmaven-archetype-quickstart構成に準じます。 ./README.txt あなたが今見てるこれ。 @@ -60,8 +50,11 @@ MikuTogaプロジェクトは、MMDによる3Dアニメーション制作を支 ./LICENSE.txt ライセンスに関して。 +./SCM.txt + ソースコード管理に関して。 + ./pom.xml - Maven2用プロジェクト構成定義ファイル。 + Maven3用プロジェクト構成定義ファイル。 ./src/main/java/ Javaのソースコード。 diff --git a/SCM.txt b/SCM.txt new file mode 100644 index 0000000..dcabfab --- /dev/null +++ b/SCM.txt @@ -0,0 +1,48 @@ +[UTF-8 Japanese] + + T o g a G e m + バージョン管理システムに関する情報 + + Copyright(c) 2011 devboss + + +=== バージョン管理体制 === + + このアーカイブの原本は、Mercurial(hg)でバージョン管理されています。 + このアーカイブの原本となる開発資産は、 + http://hg.sourceforge.jp/view/mikutoga/TogaGem + を上位に持つMercurialリポジトリで管理されています。 + アーカイブの代わりにMercurialを通じての開発資産へのアクセスが可能です。 + # hg clone http://hg.sourceforge.jp/view/mikutoga/TogaGem + + +=== 各種設定ファイル === + +./.hgignore + +Mercurial 管理の対象外にさせたいファイル群の設定です。 +IDE独自の設定ファイルは基本的に管理対象外とするつもりです。 + + +./.hgeol + +Mercurial の EOL Extension 用の設定です。 +非バイナリなテキストファイルの改行コードに関する設定です。 +・拡張子が *.txt なローカルファイルの改行文字はローカルの環境に合わせる。 +・拡張子が *.java なローカルファイルの改行文字はローカルの環境に合わせる。 +・それ以外の非バイナリなローカルファイルの改行文字は基本LFで統一。 +・リポジトリ上の全ての非バイナリファイルの改行文字は基本LFで統一。 +というポリシーで運用しています。 +EOL Extensionを有効にしないと設定が反映されません。 + + +=== リンク === + +・http://mercurial.selenic.com/ +・http://mercurial.selenic.com/wiki/.hgignore +・http://www.selenic.com/mercurial/hgignore.5.html +・http://mercurial.selenic.com/wiki/EolExtension +・http://tortoisehg.bitbucket.org/ + + +--- EOF --- diff --git a/build.xml b/fixcrlf.xml similarity index 62% rename from build.xml rename to fixcrlf.xml index d34375a..90a7b46 100644 --- a/build.xml +++ b/fixcrlf.xml @@ -1,25 +1,14 @@ - + - + - - - - - - - - - - - - - - - - + + +CAUTION : This is not build-file for project-building. +It's just adapting project-files for native environment. + @@ -29,17 +18,16 @@ @@ -51,9 +39,18 @@ /> + + diff --git a/pom.xml b/pom.xml index c743f5f..6fd6bf7 100644 --- a/pom.xml +++ b/pom.xml @@ -1,8 +1,7 @@ - 2.2.1 + 2.2 @@ -91,13 +90,10 @@ UTF-8 UTF-8 - ${project.basedir}/src/main/config + ${project.basedir}/src/main/config - - ${maven.compiler.source} - - - ${project.myrepoconf}/checks.xml + ${project.mainconf}/checks.xml + false @@ -108,7 +104,7 @@ junit junit - [4.8.2,) + 4.10 test @@ -124,6 +120,22 @@ org.apache.maven.plugins + maven-enforcer-plugin + 1.0.1 + + + + [2.2,) + + + [1.6,) + + + + + + + org.apache.maven.plugins maven-clean-plugin 2.4.1 @@ -132,7 +144,11 @@ ${project.basedir} **/.DS_Store + **/_MACOSX **/Thumbs.db + **/thumbs.db + **/Desktop.ini + **/desktop.ini **/core @@ -158,7 +174,7 @@ org.apache.maven.plugins maven-jar-plugin - 2.3.1 + 2.3.2 @@ -181,22 +197,6 @@ org.apache.maven.plugins - maven-enforcer-plugin - 1.0.1 - - - - [2.2,3) - - - [1.6,) - - - - - - - org.apache.maven.plugins maven-source-plugin 2.1.2 @@ -218,6 +218,63 @@ + + org.apache.maven.plugins + maven-resources-plugin + 2.5 + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.10 + + false + true + + + + + org.apache.maven.plugins + maven-site-plugin + 3.0 + + true + ja + ${project.build.sourceEncoding} + ${project.reporting.outputEncoding} + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + 2.8 + + + + + org.apache.maven.plugins + maven-pmd-plugin + 2.6 + + ${maven.compiler.target} + + ${project.mainconf}/pmdrules.xml + + + + + + org.codehaus.mojo + findbugs-maven-plugin + 2.3.2 + + Max + Low + + + @@ -233,17 +290,33 @@ src/main/resources - **/*.css - **/*.html - **/*.png - **/*.properties **/*.txt + + **/*.properties + **/*.xml **/*.xsd **/*.dtd + + **/*.html + **/*.htm + **/*.css + + **/*.png + **/*.gif + **/*.jpeg + **/*.jpg **/version.properties + + **/.DS_Store + **/_MACOSX + **/Thumbs.db + **/thumbs.db + **/Desktop.ini + **/desktop.ini + **/core @@ -257,15 +330,34 @@ org.apache.maven.plugins - maven-site-plugin - 3.0 + maven-project-info-reports-plugin + 2.4 - ja - true - true - ${project.build.sourceEncoding} - ${project.reporting.outputEncoding} + true + true + + + + index + summary + license + dependencies + plugins + scm + project-team + + + + @@ -273,28 +365,81 @@ maven-javadoc-plugin 2.8 + false + true + true protected + maven + + + + + javadoc + + + + + + + org.apache.maven.plugins + maven-jxr-plugin + 2.3 + + false + + + + + org.apache.maven.plugins + maven-surefire-report-plugin + 2.10 + + false + + + + + report-only + + + + + + + org.codehaus.mojo + cobertura-maven-plugin + 2.5.1 + + ${project.build.sourceEncoding} org.apache.maven.plugins maven-checkstyle-plugin - 2.6 + 2.8 - ${checkstyle.config.location} - UTF-8 + false + + + + + checkstyle + + + org.apache.maven.plugins maven-pmd-plugin - 2.5 + 2.6 + false ${maven.compiler.target} - ${project.myrepoconf}/pmdrules.xml + ${project.mainconf}/pmdrules.xml @@ -307,26 +452,17 @@ - Max Low - ${project.build.sourceEncoding} - ${project.reporting.outputEncoding} - + ---> - - - org.codehaus.mojo - cobertura-maven-plugin - 2.5.1 - org.codehaus.mojo @@ -335,9 +471,9 @@ - org.apache.maven.plugins - maven-jxr-plugin - 2.2 + org.codehaus.mojo + jdepend-maven-plugin + 2.0-beta-2 diff --git a/src/main/assembly/descriptor.xml b/src/main/assembly/descriptor.xml index b744cbd..5712cd3 100644 --- a/src/main/assembly/descriptor.xml +++ b/src/main/assembly/descriptor.xml @@ -1,15 +1,15 @@ - + src @@ -21,10 +21,14 @@ - *.txt pom.xml - build.xml + fixcrlf.xml + *.txt + + nb-configuration.xml + nbactions.xml + true diff --git a/src/main/config/checks.xml b/src/main/config/checks.xml index 0b45e05..d5e3ff9 100644 --- a/src/main/config/checks.xml +++ b/src/main/config/checks.xml @@ -1,4 +1,4 @@ - + + @@ -143,6 +144,7 @@ + @@ -171,6 +173,7 @@ + @@ -238,6 +241,7 @@ + @@ -285,6 +289,7 @@ + @@ -370,16 +375,6 @@ - - -