diff --git a/README.md b/README.md index 27bd182..fee4bdc 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Nablarch Framework(nablarch-fw-batch-ee)のバッチExampleアプリケー ### 1.動作環境 実行環境に以下のソフトウェアがインストールされている事を前提とします。 * Java Version : 17 -* Maven 3.9.0以降 +* Maven 3.9.9以降 なお、このアプリケーションはH2 Database Engineを組み込んでいます。別途DBサーバのインストールは必要ありません。 @@ -22,25 +22,9 @@ Gitを使用している場合、アプリケーションを配置したいデ Gitを使用しない場合、最新のタグからzipをダウンロードし、任意のディレクトリへ展開してください。 ### 3. アプリケーションのビルド - -#### 3.1. データベースのセットアップ及びエンティティクラスの作成 -まず、データベースのセットアップ及びエンティティクラスの作成を行います。以下のコマンドを実行してください。 +アプリケーションをビルドします。以下のコマンドを実行してください。 $cd nablarch-example-batch-ee - $mvn generate-resources - -実行に成功すると、以下のようなログがコンソールに出力され、nablarch-example-batchディレクトリの下にtargetディレクトリが作成されます。 - - (中略) - [INFO] ------------------------------------------------------------------------ - [INFO] BUILD SUCCESS - [INFO] ------------------------------------------------------------------------ - (中略) - -#### 3.2. アプリケーションのビルド - -次に、アプリケーションをビルドします。以下のコマンドを実行してください。 - $mvn clean package 実行に成功すると、以下のようなログがコンソールに出力されます。 @@ -55,6 +39,13 @@ Gitを使用しない場合、最新のタグからzipをダウンロードし (中略) +#### データベースのセットアップ及びエンティティクラスの作成について + +アプリケーションを実行するためにはデータベースのセットアップ及びエンティティクラスの作成が必要ですが、これは`mvn package`の実行に含まれています。この処理は`mvn generate-resources`で個別に実行することもできます。 + +※gspプラグインをJava 17で実行するためにはJVMオプションの指定が必要ですが、そのオプションは`.mvn/jvm.config`で指定しています。 + + ### 4. アプリケーションの実行 チェックアウトディレクトリにて以下のコマンドを実行すると、サンプルアプリケーションを動作させることができます。 @@ -74,9 +65,7 @@ Gitを使用しない場合、最新のタグからzipをダウンロードし 1. ``target/application-.zip`` を任意のディレクトリに解凍する。 2. 以下のコマンドにて実行する - ``` - java -jar <1で解凍したディレクトリ名>/nablarch-example-batch-ee-.jar - ``` + $java -jar <1で解凍したディレクトリ名>/nablarch-example-batch-ee-.jar \を変えることで、CSVからDBおよびDBからCSVへのデータ保存と、DBのTRUNCATE処理を行うことができます。 diff --git a/pom.xml b/pom.xml index c11a609..efc42f8 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.nablarch.example nablarch-example-batch-ee - 6u1 + 6u2 @@ -18,7 +18,7 @@ admin NABLARCH_EXAMPLE - 2.1.1.Final + 2.1.4.Final @@ -32,7 +32,7 @@ jp.co.tis.gsp gsp-dba-maven-plugin - 5.0.0 + 5.1.0 com.h2database @@ -76,7 +76,7 @@ org.codehaus.mojo build-helper-maven-plugin - 3.0.0 + 3.6.0 generate-sources @@ -109,6 +109,7 @@ org.apache.maven.plugins maven-assembly-plugin + 3.7.1 distribution.xml @@ -129,21 +130,11 @@ org.apache.maven.plugins maven-surefire-plugin - 2.22.2 + 3.5.0 false - - org.jacoco - jacoco-maven-plugin - 0.8.3 - - - **/com/nablarch/example/app/entity/* - - - @@ -151,13 +142,13 @@ org.apache.maven.plugins maven-compiler-plugin - 3.2 + 3.13.0 org.apache.maven.plugins maven-jar-plugin - 2.5 + 3.4.2 *.dicon @@ -167,14 +158,6 @@ - - - org.apache.maven.wagon - wagon-webdav-jackrabbit - 3.0.0 - - - @@ -272,19 +255,31 @@ org.jboss.marshalling jboss-marshalling - 2.0.12.Final + 2.1.3.Final + + + + org.jboss.logging + jboss-logging + 3.5.3.Final org.jboss.weld weld-core-impl - 5.0.0.SP1 + 5.0.1.Final org.wildfly.security wildfly-elytron-security-manager - 1.19.0.Final + 2.2.2.Final + + + + com.google.guava + guava + 32.1.1-jre @@ -296,7 +291,7 @@ org.jboss.weld.se weld-se-core - 5.0.0.SP1 + 5.0.1.Final @@ -308,13 +303,13 @@ org.slf4j slf4j-api - 1.7.12 + 2.0.11 ch.qos.logback logback-classic - 1.2.13 + 1.5.6 @@ -324,12 +319,6 @@ runtime - - com.nablarch.integration - slf4j-nablarch-adaptor - runtime - - org.glassfish.expressly expressly @@ -359,11 +348,6 @@ nablarch-testing-default-configuration test - - - com.nablarch.integration - nablarch-jboss-logging-adaptor - @@ -371,14 +355,14 @@ com.nablarch.profile nablarch-bom - 6u1 + 6u2 pom import org.junit junit-bom - 5.8.2 + 5.11.0 pom import @@ -392,24 +376,4 @@ - - - - org.apache.maven.plugins - maven-surefire-report-plugin - - - org.apache.maven.plugins - maven-javadoc-plugin - - -Xdoclint:none - - - - org.jacoco - jacoco-maven-plugin - - - -