From ce3b3d115835676f1fa0b14627ed4364a6692371 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20L=C3=A4ubrich?= Date: Sun, 4 Feb 2024 12:02:13 +0100 Subject: [PATCH] Don't warn if mapping p2 dependencies is not enabled If mapping p2 dependencies is not enabled there should be no warning but just an info message about the number. --- .../org/eclipse/tycho/packaging/UpdateConsumerPomMojo.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tycho-packaging-plugin/src/main/java/org/eclipse/tycho/packaging/UpdateConsumerPomMojo.java b/tycho-packaging-plugin/src/main/java/org/eclipse/tycho/packaging/UpdateConsumerPomMojo.java index d40937585f..16264186ca 100644 --- a/tycho-packaging-plugin/src/main/java/org/eclipse/tycho/packaging/UpdateConsumerPomMojo.java +++ b/tycho-packaging-plugin/src/main/java/org/eclipse/tycho/packaging/UpdateConsumerPomMojo.java @@ -259,7 +259,7 @@ public void execute() throws MojoExecutionException, MojoFailureException { } if (p2Skipped.isEmpty()) { log.info("All system scoped dependencies were mapped to maven artifacts"); - } else { + } else if (mapP2Dependencies) { log.warn(resolved + " system scoped dependencies were mapped to maven artifacts, " + p2Skipped.size() + " were skipped"); if (log.isDebugEnabled()) { @@ -267,6 +267,8 @@ public void execute() throws MojoExecutionException, MojoFailureException { log.debug("Skipped: " + skipped); } } + } else { + log.info(p2Skipped.size() + " system scoped dependencies were not mapped to maven artifacts"); } try { modelWriter.write(output, null, projectModel);