You need to have Apache Maven 3.1+ installed. To create a batch application project from scratch, run the following command:
mvn -U org.seedstack:seedstack-maven-plugin:generate -Dtype=batch
This will invoke the generate goal of the SeedStack maven plugin generate goal which will:
- Discover the latest version of the SeedStack reference distribution,
- Use its batch archetype to generate the project.
The process is interactive and will ask you a few questions about the project to be created.
After execution, a single module project is created:
- myjob |- src |- main | |- java | | |- org.myorg.myjob | | |- [application] <-- application logic | | |- batch <-- batch jobs and tasks | | |- [domain] | | | |- [model] <-- domain model | | | |- [services] <-- domain services | | |- [infrastructure] <-- technical infrastructure | |- resources | |- META-INF | |- configuration <-- main configuration |- test |- java |- resources |- META-INF |- configuration <-- test configuration
Note that the directory in brackets are not created by the archetype. They are the recommended locations if you need to add any business domain to your project. You can also choose to put the domain in a separate domain module.