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 3de2f1d CAMEL-16145: Made coverageThreshold configurable in camel-report-maven-plugin (#5030) 3de2f1d is described below commit 3de2f1d0ad03b61a3cf21162427cf48fb6a2ade4 Author: bthdimension <benjamin.buergis...@gmx.ch> AuthorDate: Sat Feb 6 09:38:34 2021 +0100 CAMEL-16145: Made coverageThreshold configurable in camel-report-maven-plugin (#5030) Co-authored-by: Benjamin Bürgisser <benjamin.buergis...@helsana.ch> --- .../src/main/docs/camel-report-maven-plugin.adoc | 1 + .../src/main/java/org/apache/camel/maven/RouteCoverageMojo.java | 1 + 2 files changed, 2 insertions(+) diff --git a/catalog/camel-report-maven-plugin/src/main/docs/camel-report-maven-plugin.adoc b/catalog/camel-report-maven-plugin/src/main/docs/camel-report-maven-plugin.adoc index 8f01ef9..e6f4b5c 100644 --- a/catalog/camel-report-maven-plugin/src/main/docs/camel-report-maven-plugin.adoc +++ b/catalog/camel-report-maven-plugin/src/main/docs/camel-report-maven-plugin.adoc @@ -135,6 +135,7 @@ The maven plugin *validate* goal supports the following options which can be con | Parameter | Default Value | Description | downloadVersion | true | Whether to allow downloading Camel catalog version from the internet. This is needed if the project uses a different Camel version than this plugin is using by default. | failOnError | false | Whether to fail if invalid Camel endpoints was found. By default the plugin logs the errors at WARN level. +| coverageThreshold | 100 | The minimum route coverage in percent when using failOnError. | logUnparseable | false | Whether to log endpoint URIs which was un-parsable and therefore not possible to validate. | includeJava | true | Whether to include Java files to be validated for invalid Camel endpoints. | includeXml | true | Whether to include XML files to be validated for invalid Camel endpoints. diff --git a/catalog/camel-report-maven-plugin/src/main/java/org/apache/camel/maven/RouteCoverageMojo.java b/catalog/camel-report-maven-plugin/src/main/java/org/apache/camel/maven/RouteCoverageMojo.java index 2ee9a2e..02c2e24 100644 --- a/catalog/camel-report-maven-plugin/src/main/java/org/apache/camel/maven/RouteCoverageMojo.java +++ b/catalog/camel-report-maven-plugin/src/main/java/org/apache/camel/maven/RouteCoverageMojo.java @@ -92,6 +92,7 @@ public class RouteCoverageMojo extends AbstractExecMojo { * * @parameter property="camel.coverageThreshold" default-value="100" */ + @Parameter(property = "camel.coverageThreshold", defaultValue = "100") private byte coverageThreshold = 100; /**