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/18 08:14:06 UTC
[camel-spring-boot] branch master updated: CAMEL-14585: Skip target
as artifact in BOM
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
The following commit(s) were added to refs/heads/master by this push:
new 170e918 CAMEL-14585: Skip target as artifact in BOM
170e918 is described below
commit 170e918b8a9abe5e21dd9f12d7c670476dc0fe52
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Feb 18 08:46:08 2020 +0100
CAMEL-14585: Skip target as artifact in BOM
---
.../java/org/apache/camel/springboot/maven/BomGeneratorMojo.java | 6 ++++++
1 file changed, 6 insertions(+)
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 9012e6e..6f3f90a 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
@@ -305,6 +305,12 @@ public class BomGeneratorMojo extends AbstractMojo {
}
for (Dependency dep : dependencies) {
+
+ if ("target".equals(dep.getArtifactId())) {
+ // skip invalid artifact that somehow gets included
+ continue;
+ }
+
Element dependencyEl = pom.createElement("dependency");
Element groupIdEl = pom.createElement("groupId");