grandcentral-connector-template (see Request repository creation), the provisioning workflow has already:
- Set the
pom.xmlartifact ID equal to the repository name - Set the initial project version to
0.1.0-SNAPSHOT - Cleaned
CHANGELOG.md - Run
mvn clean verifyto confirm the repository is buildable
Naming conventions
Use these names consistently across the project. Camel-K relies on several of them at runtime.- Repository and artifact:
gc-{vendor}-{domain}-connector. The repository name and the MavenartifactIdare identical. - Inbound connectors: for vendor-initiated callbacks or events into Grand Central, append the
-inbound-connectorsuffix:gc-{vendor}-{domain}-inbound-connector. - Connector class:
{Vendor}{Domain}Connectorextendingorg.apache.camel.builder.RouteBuilder. The Java filename must match the class name exactly. - Java package:
com.backbase.gc.connector. - Route IDs:
- Never call
.routeId(...). Camel-K assigns IDs automatically; manual IDs cause Kubernetes deployment conflicts. - Use
direct://operationIdwith a double slash for routes that map 1:1 to an OpenAPIoperationId. - Use
direct:internalRouteNamewith a single slash for internal sub-routes.
- Never call
- Resource files in
src/main/resources/:{op}-{entity}-schema-validation.json: Draft-07 JSON Schema{op}-{entity}-request-transformation.json: JOLT request spec{op}-{entity}-response-transformation.json: JOLT response spec{op}-{entity}-request-transformation.xslt: XSLT request stylesheet for SOAP{op}-{entity}-response-transformation.xslt: XSLT response stylesheet for SOAP
- Test classes in
src/test/java/com/backbase/gc/connector/:{Vendor}{Domain}ConnectorTest.java: route integration test{Op}{Entity}TransformationTest.java: JOLT/XSLT unit test{Op}{Entity}SchemaValidationTest.java: JSON Schema unit test
Project layout
Connector styles
Three connector styles exist. The vendor’s integration type determines which to use.First-time configuration checklist
Pin the OpenAPI spec from
pom.xml:
camel-restdsl-openapi-plugin, inherited from grandcentral-bom, reads that spec at build time, generates the Camel REST DSL, and wires it to your direct://... routes.