Skip to content

terasoluna-batch/v5-sample

Repository files navigation

Blank project for batch application using TERASOLUNA Batch Framework for Java (5.x)

This is blank project template for batch application is provided in collaboration with TERASOLUNA Batch Framework for Java (5.x) (Spring Batch + Spring + MyBatis3).

Use this as the starting point of all kinds of development activities.

This blank project can be be beneficial in following ways.

  1. The most standard and ideal baseline configuration and structure to all the development activities.

  2. Quickly jump to focus on business application.

Getting Started

To create blank project interactively.
Set the groupId, artifactId, version and package to suit your project.

For Java Config

  • for CommandPrompt(Windows)

C:\xxx>mvn archetype:generate ^
  -DarchetypeGroupId=org.terasoluna.batch ^
  -DarchetypeArtifactId=terasoluna-batch-archetype ^
  -DarchetypeVersion=5.6.0.RELEASE
  • for Bash(Unix, Linux, …​)

$ mvn archetype:generate \
  -DarchetypeGroupId=org.terasoluna.batch \
  -DarchetypeArtifactId=terasoluna-batch-archetype \
  -DarchetypeVersion=5.6.0.RELEASE

For XML Config

  • for CommandPrompt(Windows)

C:\xxx>mvn archetype:generate ^
  -DarchetypeGroupId=org.terasoluna.batch ^
  -DarchetypeArtifactId=terasoluna-batch-xmlconfig-archetype ^
  -DarchetypeVersion=5.6.0.RELEASE
  • for Bash(Unix, Linux, …​)

$ mvn archetype:generate \
  -DarchetypeGroupId=org.terasoluna.batch \
  -DarchetypeArtifactId=terasoluna-batch-xmlconfig-archetype \
  -DarchetypeVersion=5.6.0.RELEASE

Run

In order to run the blank project, execute the below command.

For Java Config

  • for CommandPrompt(Windows)

C:\xxx>cd [artifactId]
C:\xxx>mvn clean dependency:copy-dependencies -DoutputDirectory=lib package
C:\xxx>java -cp "lib/*;target/*" ^
org.springframework.batch.core.launch.support.CommandLineJobRunner ^
org.terasoluna.batch.sample.jobs.Job01Config job01
  • for Bash(Unix, Linux, …​)

$ cd [artifactId]
$ mvn clean dependency:copy-dependencies -DoutputDirectory=lib package
$ java -cp 'lib/*:target/*' \
org.springframework.batch.core.launch.support.CommandLineJobRunner \
org.terasoluna.batch.sample.jobs.Job01Config job01

For XML Config

  • for CommandPrompt(Windows)

C:\xxx>cd [artifactId]
C:\xxx>mvn clean dependency:copy-dependencies -DoutputDirectory=lib package
C:\xxx>java -cp "lib/*;target/*" ^
org.springframework.batch.core.launch.support.CommandLineJobRunner ^
META-INF/jobs/job01.xml job01
  • for Bash(Unix, Linux, …​)

$ cd [artifactId]
$ mvn clean dependency:copy-dependencies -DoutputDirectory=lib package
$ java -cp 'lib/*:target/*' \
org.springframework.batch.core.launch.support.CommandLineJobRunner \
META-INF/jobs/job01.xml job01

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published