Skip to content

getting started

Mahmoud Ben Hassine edited this page Feb 9, 2020 · 17 revisions

Prerequisite

Easy Batch requires a Java runtime. Here are Java versions required for each Easy Batch version:

Easy Batch version Minimum Java version
1.x 1.5
2.x 1.5
3.x 1.6
4.x 1.6
5.x 1.7
6.x 1.8

Maven artifact

To use Easy Batch, you have to add the easy-batch-core-6.0.0.jar to your application's classpath.

If you use maven, add the following dependency to your project:

<dependency>
    <groupId>org.jeasy</groupId>
    <artifactId>easy-batch-core</artifactId>
    <version>6.0.0</version>
</dependency>

Use a snapshot version

The current development version is 6.0.1-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.

Quick start archetype

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.jeasy \
    -DarchetypeArtifactId=easy-batch-archetype \
    -DarchetypeVersion=6.0.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.

Get source code

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.

Build binaries

The project is built using maven. To build binaries from the source code, use the following commands:

 $>cd easy-batch
 $>mvn install
Clone this wiki locally