From e65ba12617d2afc885e877468718aaad676b94e3 Mon Sep 17 00:00:00 2001 From: olyutorskii Date: Fri, 25 Nov 2011 22:24:37 +0900 Subject: [PATCH] =?utf8?q?Maven3=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .hgeol | 8 +- .hgignore | 34 +++++- CHANGELOG.txt | 3 + README.txt | 14 ++- SCM.txt | 48 ++++++++ build.xml => fixcrlf.xml | 45 ++++--- pom.xml | 248 ++++++++++++++++++++++++++++++--------- src/main/assembly/descriptor.xml | 18 +-- src/main/config/checks.xml | 19 ++- src/main/config/pmdrules.xml | 7 +- src/main/config/suppressions.xml | 2 +- 11 files changed, 338 insertions(+), 108 deletions(-) create mode 100644 SCM.txt rename build.xml => fixcrlf.xml (60%) diff --git a/.hgeol b/.hgeol index ca5f1c1..8458257 100644 --- a/.hgeol +++ b/.hgeol @@ -7,7 +7,13 @@ **.xml = LF **.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 c94f6de..44c1d13 100644 --- a/.hgignore +++ b/.hgignore @@ -1,12 +1,36 @@ +######################### +# for Mercurial hgignore +######################### + + +##################### syntax: regexp +^nb-configuration.xml$ +^nbactions.xml$ +^\.classpath$ +^\.project$ + \.orig$ \.orig\..*$ \.chg\..*$ \.rej$ \.conflict\~$ -^maven-build\.properties$ -^maven-build\.xml$ -^nb-configuration\.xml$ -^nbactions\.xml$ -^target$ +^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 22f8ecd..414db86 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -4,6 +4,9 @@ Jovsonz 変更履歴 +X.XXX.X (20XX-XX-XX) + ・Maven3対応。 + 1.101.2 (2011-05-13) ・初回リリース。 diff --git a/README.txt b/README.txt index 5291797..f03a1f1 100644 --- a/README.txt +++ b/README.txt @@ -1,6 +1,6 @@ [UTF-8 Japanese] - J O V S O N Z + J o v s o n z Readme Copyright(c) 2009 olyutorskii @@ -21,9 +21,14 @@ JovsonzはJindolfプロジェクトから派生したオープンソースプロ 原則として、JRE1.5に準拠した実行系であれば、プラットフォームを選びません。 +=== 開発プロジェクト運営元 === + + http://sourceforge.jp/projects/jovsonz/ まで。 + + === ディレクトリ内訳構成 === -基本的にはMaven2のmaven-archetype-quickstart構成に準じます。 +基本的にはMaven3のmaven-archetype-quickstart構成に準じます。 ./README.txt あなたが今見てるこれ。 @@ -34,8 +39,11 @@ JovsonzはJindolfプロジェクトから派生したオープンソースプロ ./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..d55c674 --- /dev/null +++ b/SCM.txt @@ -0,0 +1,48 @@ +[UTF-8 Japanese] + + J o v s o n z + バージョン管理システムに関する情報 + + Copyright(c) 2011 olyutorskii + + +=== バージョン管理体制 === + + このアーカイブの原本は、Mercurial(hg)でバージョン管理されています。 + このアーカイブの原本となる開発資産は、 + http://hg.sourceforge.jp/view/jovsonz/Jovsonz + を上位に持つMercurialリポジトリで管理されています。 + アーカイブの代わりにMercurialを通じての開発資産へのアクセスが可能です。 + # hg clone http://hg.sourceforge.jp/view/jovsonz/Jovsonz + + +=== 各種設定ファイル === + +./.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 60% rename from build.xml rename to fixcrlf.xml index 2216cdc..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 97627c6..02d4a69 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,7 @@ - + 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 @@ -106,7 +103,7 @@ junit junit - [4.8.2,) + 4.10 test @@ -122,6 +119,22 @@ org.apache.maven.plugins + maven-enforcer-plugin + 1.0.1 + + + + [2.2,) + + + [1.5,) + + + + + + + org.apache.maven.plugins maven-clean-plugin 2.4.1 @@ -130,7 +143,11 @@ ${project.basedir} **/.DS_Store + **/_MACOSX **/Thumbs.db + **/thumbs.db + **/Desktop.ini + **/desktop.ini **/core @@ -156,7 +173,7 @@ org.apache.maven.plugins maven-jar-plugin - 2.3.1 + 2.3.2 @@ -179,22 +196,6 @@ org.apache.maven.plugins - maven-enforcer-plugin - 1.0 - - - - [2.2,3) - - - [1.5,) - - - - - - - org.apache.maven.plugins maven-source-plugin 2.1.2 @@ -216,6 +217,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 + + + @@ -231,16 +289,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 @@ -254,15 +329,34 @@ org.apache.maven.plugins - maven-site-plugin - 2.2 + 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 + + + + @@ -270,28 +364,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 @@ -309,30 +456,23 @@ findbugs-maven-plugin 2.3.2 + false Max Low - ${project.build.sourceEncoding} - ${project.reporting.outputEncoding} - + org.codehaus.mojo - cobertura-maven-plugin - 2.4 - - - - org.codehaus.mojo javancss-maven-plugin 2.0 - 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 @@ - - -