Scaffolder Concepts
Output
Once the scaffolder has run it will generate a new project. The key configuration options to consider here are the 'outputDir' and 'artifactId':
-
'artifactId' - the name of the generated project
-
'outputDir' - the location where the generated project will be created
These properties will be used to determine the location and name of the generated project. For example, if running with an 'artifactId' 'my-test' and an outputDir of '/build' then this will lead to a new folder being generated called /build/my-test.
Inside this folder will be a fully functional IPF application which can be used as the basis to build your IPF application.
The Icon BOM
The generated project uses the Icon BOM (a Maven Bill of Materials) as its parent. This provides all the dependencies and their versions for the generated application to use. If the project you are building needs a custom parent, this can be updated post generation.
Configuration Options
The following table defines the different configuration options available for use within the scaffolder.
| Property Name | Description | Allowed Values | Example |
|---|---|---|---|
ipfVersion |
The IPF version you wish to use |
Valid IPF release. See releases |
2024.2.0 |
includeSampleSystems |
This will by default add the dependencies to include the IPF sample system functions in your project |
|
|
includeApplication |
This will add a runnable spring boot application to your project |
|
|
includeE2E |
This will by default add the dependencies to include a docker environment setup to your application |
|
|
includeMonitoring |
When both this and |
|
|
useBuildScripts |
If the application is intended to be used a reusable component in a different solution, this should be set |
|
|
solutionName |
The name of the MPS solution for your project |
Alpha first uppercase, rest lower |
|
modelName |
The name of the MPS model for your project |
Alpha all lowercase |
|
groupId |
The standard Maven archetype |
|
|
artifactId |
The standard Maven archetype |
|
|
version |
The standard Maven archetype |
|
|
outputDir |
The location where the new project should be generated (should be any empty directory) |
Any valid file path |
Unix-like: /build/example-project Windows: C:/build/example-project |
|
The Business Function Library and Sample System Library are experimental and subject to change. If you wish to use these please contact your IPF representative. |
|
You must supply the target version of both the scaffolder (scaffolderVersion) and the IPF version (ipfVersion). The versions must be compatible, please check and replace the numbers based on IPF’s release documentation and/or the details for your target environment! |