summaryrefslogtreecommitdiffstats
path: root/bundle-plugin
diff options
context:
space:
mode:
authorgjoranv <gv@yahooinc.com>2023-07-03 11:43:45 +0200
committergjoranv <gv@yahooinc.com>2023-07-03 22:37:54 +0200
commit8bea86a68f61d97c8fc005f9f94815aec4a1d8ca (patch)
tree37a946f6e14f303c0caac76c7bbf7f40e20b9a15 /bundle-plugin
parent65a282ad8124f49c9584ab0293481d71f612fe85 (diff)
Improve error message.
Diffstat (limited to 'bundle-plugin')
-rw-r--r--bundle-plugin/src/main/java/com/yahoo/container/plugin/mojo/GenerateOsgiManifestMojo.java5
1 files changed, 3 insertions, 2 deletions
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.");
}
}