-
Notifications
You must be signed in to change notification settings - Fork 199
getting started
Easy Batch requires a Java 1.7+ runtime.
To use Easy Batch, you have to add easybatch-core-5.3.0.jar
to your application's classpath.
If you use maven, add the following dependency to your project:
<dependency>
<groupId>org.easybatch</groupId>
<artifactId>easybatch-core</artifactId>
<version>5.3.0</version>
</dependency>
The current development version is 6.0.0-SNAPSHOT
. To use this snapshot version, you need to decalre sonatype's snapshot repository in your pom.xml
:
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</repository>
or download the jar directly from this repository.
NB: Please note that starting from v6, the maven coordinates of Easy Batch artifacts will change as follows:
<dependency>
<groupId>org.jeasy</groupId>
<artifactId>easy-batch-{$moduleName}</artifactId>
<version>6.0.0-SNAPSHOT</version>
</dependency>
The quick start archetype generates a skeleton project with the right dependency to the framework's core. In order to generate a quick start project, just run the following command:
$>mvn archetype:generate \
-DarchetypeGroupId=org.easybatch \
-DarchetypeArtifactId=easybatch-archetype \
-DarchetypeVersion=5.3.0
You will be asked for your project's groupId, artifactId, version and base package. Once finished, you will get a fully functional sample batch application that you can run with the following command:
$>mvn compile exec:java -Dexec.mainClass=${your.base.package}.App
where ${your.base.package}
is the value of the base package you provided when creating the project.
You can import this maven project into your favorite IDE and tweak the application to your needs.
The source code is under Git and hosted on GitHub. You can clone the source code using the following command:
$>git clone https://github.com/j-easy/easy-batch.git
Or download the source code in a zip file.
The project is built using maven. To build binaries from the source code, use the following commands:
$>cd easy-batch
$>mvn install
Easy Batch is created by Mahmoud Ben Hassine with the help of some awesome contributors
-
Introduction
-
User guide
-
Job reference
-
Component reference
-
Get involved