This is blank project template for batch application is provided in collaboration with Macchinetta Batch Framework (2.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.
-
The most standard and ideal baseline configuration and structure to all the development activities.
-
Quickly jump to focus on business application.
To create blank project interactively.
Set the groupId, artifactId, version and package to suit your project.
-
for CommandPrompt(Windows)
C:\xxx>mvn archetype:generate ^
-DarchetypeGroupId=com.github.macchinetta.blank ^
-DarchetypeArtifactId=macchinetta-batch-archetype ^
-DarchetypeVersion=2.5.0.1.RELEASE
-
for Bash(Unix, Linux, …)
$ mvn archetype:generate \
-DarchetypeGroupId=com.github.macchinetta.blank \
-DarchetypeArtifactId=macchinetta-batch-archetype \
-DarchetypeVersion=2.5.0.1.RELEASE
-
for CommandPrompt(Windows)
C:\xxx>mvn archetype:generate ^
-DarchetypeGroupId=com.github.macchinetta.blank ^
-DarchetypeArtifactId=macchinetta-batch-xmlconfig-archetype ^
-DarchetypeVersion=2.5.0.1.RELEASE
-
for Bash(Unix, Linux, …)
$ mvn archetype:generate \
-DarchetypeGroupId=com.github.macchinetta.blank \
-DarchetypeArtifactId=macchinetta-batch-xmlconfig-archetype \
-DarchetypeVersion=2.5.0.1.RELEASE
In order to run the blank project, execute the below command.
-
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 ^
com.example.batch.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 \
com.example.batch.jobs.Job01Config job01
-
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