A reusable JAR designed to contain one or more business domain(s) based on the business framework.
You need to have Apache Maven 3.1+ installed. To create a reusable domain project from scratch, execute the following command:
mvn org.seedstack:seedstack-maven-plugin:generate -Dtype=domain
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.
You should see a structure similar to the following:
- mydomain |- src |- main | |- java | | |- org.myorg.mydomain | | |- model <-- domain model | | |- services <-- domain services | |- resources | |- META-INF | |- configuration <-- main configuration |- test |- java |- resources |- META-INF |- configuration <-- test configuration