Skip to content

getting started

Mahmoud Ben Hassine edited this page May 24, 2017 · 17 revisions

Prerequisite

Easy Batch requires a Java 1.7+ runtime.

Maven artifact

To use Easy Batch, you have to add easybatch-core-5.0.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.0.0</version>
</dependency>

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.easybatch \
    -DarchetypeArtifactId=easybatch-archetype \
    -DarchetypeVersion=5.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/EasyBatch/easybatch-framework.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 easybatch-framework
 $>mvn install
Clone this wiki locally