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 <[email protected]>
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");