From 8bea86a68f61d97c8fc005f9f94815aec4a1d8ca Mon Sep 17 00:00:00 2001 From: gjoranv Date: Mon, 3 Jul 2023 11:43:45 +0200 Subject: Improve error message. --- .../com/yahoo/container/plugin/mojo/GenerateOsgiManifestMojo.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bundle-plugin/src') diff --git a/bundle-plugin/src/main/java/com/yahoo/container/plugin/mojo/GenerateOsgiManifestMojo.java b/bundle-plugin/src/main/java/com/yahoo/container/plugin/mojo/GenerateOsgiManifestMojo.java index 26010e4974d..bec55ec0fc9 100644 --- a/bundle-plugin/src/main/java/com/yahoo/container/plugin/mojo/GenerateOsgiManifestMojo.java +++ b/bundle-plugin/src/main/java/com/yahoo/container/plugin/mojo/GenerateOsgiManifestMojo.java @@ -259,8 +259,9 @@ public class GenerateOsgiManifestMojo extends AbstractGenerateOsgiManifestMojo { .sorted().toList(); if (! violations.isEmpty()) { - // TODO: improve error message - warnOrThrow("Artifacts provided from Jdisc runtime are included in compile scope: " + violations); + warnOrThrow("Artifacts provided from Jdisc runtime are included in compile scope: " + violations + + ". Direct dependencies should be removed." + + " For transitive dependencies, run 'mvn dependency:tree' and add necessary exclusions."); } } -- cgit v1.2.3