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-spring-boot.git

commit affe2e0f8214e4b44807cff769696fafd8baaadb
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Thu Jun 11 20:48:25 2020 +0200

    camel-spring-boot BOM should skip test-jar type
---
 .../java/org/apache/camel/springboot/maven/BomGeneratorMojo.java | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git 
a/tooling/camel-spring-boot-generator-maven-plugin/src/main/java/org/apache/camel/springboot/maven/BomGeneratorMojo.java
 
b/tooling/camel-spring-boot-generator-maven-plugin/src/main/java/org/apache/camel/springboot/maven/BomGeneratorMojo.java
index 6f3f90a..2669594 100644
--- 
a/tooling/camel-spring-boot-generator-maven-plugin/src/main/java/org/apache/camel/springboot/maven/BomGeneratorMojo.java
+++ 
b/tooling/camel-spring-boot-generator-maven-plugin/src/main/java/org/apache/camel/springboot/maven/BomGeneratorMojo.java
@@ -177,8 +177,15 @@ public class BomGeneratorMojo extends AbstractMojo {
                             && dep.getArtifactId().endsWith("-starter"));
             getLog().debug(dep + (accept ? " included in the BOM" : " excluded 
from BOM"));
 
+            // skip test-jars
+            boolean testJar = dep.getType() != null && 
dep.getType().equals("test-jar");
+
             if (accept) {
-                outDependencies.add(dep);
+                if (testJar) {
+                    getLog().debug(dep + " test-jar excluded from BOM");
+                } else {
+                    outDependencies.add(dep);
+                }
             } else {
                 // lets log a WARN if some Camel JARs was excluded
                 if (dep.getGroupId().startsWith("org.apache.camel")) {

Reply via email to