You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2020/02/12 13:28:19 UTC
[camel] branch master updated: CAMEL-14238: Fail generate metadata
json if empty component description.
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 <cl...@gmail.com>
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;
}