This repository provides a framework for extending the Open Data Mesh Command Line (ODM CLI). The modular design allows developers to enhance existing commands with additional functionality in a structured and maintainable way.
To begin your implementation, fork the ODM CLI Extensions Starter repository. After forking, update the necessary project files to fit your extension’s requirements.
After setting up your fork, modify the following files:
Located in .github/workflows
, these files define CI/CD pipelines. You should:
- Update the workflow names to reflect your extension.
- Modify the target
.jar
filename to match your implementation. - Add any additional steps required for your extension.
Files to modify:
ci.yml
– Defines a workflows to execute tests.cicd.yml
– Extends CI by adding .jar deployment step.
The pom.xml
file is essential for project metadata and dependencies. Modify:
groupId
,artifactId
,version
,name
, anddescription
to align with your extension.- Add any required dependencies for additional functionality.
This directory contains service provider configuration files that allow Java's Service Provider Interface (SPI) to dynamically discover and load implementations.
org.opendatamesh.cli.extensions.importer.ImporterExtension
: this file should contain the fully qualified class name of the implementation of theImporterExtension
interface. Java’s SPI mechanism will use this to load your custom importer implementation dynamically. Example:org.opendatamesh.cli.extensionstarter.importer.ImporterStarterExtension