in tooling/camel-kafka-connector-generator-maven-plugin/src/main/java/org/apache/camel/kafkaconnector/maven/CamelKafkaConnectorKameletUpdateMojo.java [170:185]
protected void executeAll() throws MojoFailureException {
if (name == null || name.isEmpty()) {
throw new MojoFailureException("Connector name must be specified as the parameter");
}
if (name.startsWith("camel-")) {
name = name.substring("camel-".length());
}
if (name.endsWith(KAFKA_CONNECTORS_SUFFIX)) {
name = name.substring(0, name.length() - KAFKA_CONNECTORS_SUFFIX.length());
}
try {
updateConnector();
} catch (Exception e) {
throw new MojoFailureException("Fail to update connector " + name, e);
}
}