summaryrefslogtreecommitdiffstats
path: root/bundle-plugin
diff options
context:
space:
mode:
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.");
}
}