Skip to main content

Model Resources

Expansion resources can also include components which can be added to your application if the expansion resource is present. This is a useful way to make reusable components which can be shared and versioned.

To add a component directory to your expansion resource, add a models.xml file to your resources:

<modelResource>
<path>components</path>
</modelResource>

Path should define the location of the component directories within the jar.

The above xml would correspond to a project with a structure:

src/
main/
resources/
components/
models.xml
customers/
model/
harvest/
ext/
orders/
model/
harvest/
ext/
pom.xml