A reusable JAR designed to contain one or more business domain(s) based on the business framework.

Creation

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:

The process is interactive and will ask you a few questions about the project to be created.

Result

After execution, a single module project is created which contains only the domain layer. This module is intended to be included in other modules such as a Web application or
a REST service.

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

More resources