I finally figured out how to complete this task. The steps once understood are fairly straight forward, I just was not able to find information in the documentation as easily as I had hoped.
In the end I used these steps:
Place JSON Files in the Project:
- Typically, JSON files used for configuration are placed in the ui.apps module of your AEM project.
- You can create a folder structure like ui.apps/src/main/content/jcr_root/apps/<your-project>/config to store your JSON files.
Reference JSON Files in Metadata Schema:
- In AEM, navigate to Tools > Assets > Metadata Schemas.
- Select or create a metadata schema where you want to use the JSON configuration.
- Add a new field or edit an existing field where you want to reference the JSON file.
- In the field configuration, set the JSON Path to the path of your JSON file within the repository. For example, if your JSON file is located at /apps/<your-project>/config/metadata-config.json, you would use this path.
Example Configuration:
Further, the filter.xml file needed to be updated to include the directory created to store the JSON files such that the Jackrabbit plugin configuration would recognize it and not fail the build because they are considered to be foreign. This was done following these steps:
Locate the filter.xml File:
- The filter.xml file is typically located in the META-INF/vault directory of your AEM project.
Edit the filter.xml File:
- Open the filter.xml file in your preferred text editor or IDE.
- Add a new <filter> element for the directory you want to include. Each <filter> element specifies a root path in the JCR repository.
Example Configuration:
Save and Commit:
- Save the changes to the filter.xml file.
- Commit the changes to your version control system and push them to the server.
Once I had done these steps, my configured pipelines were able to build and then deploy the updates I made.
Thanks for the help @sreenivasbr , you got me thinking differently which allowed me to find what I needed. Hopefully these steps will help someone else in future.