This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new 6ce28f2 CAMEL-14238: Fail generate metadata json if empty component
description.
6ce28f2 is described below
commit 6ce28f2a5d83bd93eeef3526ce71a5687c29529c
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Feb 12 14:22:01 2020 +0100
CAMEL-14238: Fail generate metadata json if empty component description.
---
.../apache/camel/maven/packaging/EndpointSchemaGeneratorMojo.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git
a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/EndpointSchemaGeneratorMojo.java
b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/EndpointSchemaGeneratorMojo.java
index af359ad..5dc0385 100644
---
a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/EndpointSchemaGeneratorMojo.java
+++
b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/EndpointSchemaGeneratorMojo.java
@@ -478,6 +478,11 @@ public class EndpointSchemaGeneratorMojo extends
AbstractGeneratorMojo {
model.setDescription(doc);
}
}
+ // project.getDescription may fallback and use parent description
+ if ("Camel Components".equalsIgnoreCase(model.getDescription()) ||
Strings.isNullOrEmpty(model.getDescription())) {
+ throw new IllegalStateException("Cannot find description to use
for component: " + scheme
+ + ". Add <description> to Maven pom.xml or javadoc to the
endpoint: " + endpointClassElement);
+ }
return model;
}