summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgjoranv <gv@yahooinc.com>2023-06-29 11:10:47 +0200
committergjoranv <gv@yahooinc.com>2023-07-03 22:37:54 +0200
commit9472d0040acfd2a3efa1394169f916d885e50f2e (patch)
treee6187fd844d96eee6d3f95ceefded6341e13a068
parent979753200381f39578232c18001b8fae7047f0bb (diff)
Don't warn on embedded artifacts for CORE bundles.
-rw-r--r--bundle-plugin/src/main/java/com/yahoo/container/plugin/mojo/GenerateOsgiManifestMojo.java2
1 files changed, 1 insertions, 1 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 4f2fe4b1200..fdb2cae2187 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
@@ -250,7 +250,7 @@ public class GenerateOsgiManifestMojo extends AbstractGenerateOsgiManifestMojo {
}
private void logProvidedArtifactsIncluded(List<Artifact> includedArtifacts, List<ProvidedArtifact> providedArtifacts) {
- if (suppressWarningEmbeddedArtifacts) return;
+ if (suppressWarningEmbeddedArtifacts || effectiveBundleType() == BundleType.CORE) return;
Set<ProvidedArtifact> included = includedArtifacts.stream().map(ProvidedArtifact::new).collect(Collectors.toSet());
Set<ProvidedArtifact> providedIncluded = Sets.intersection(included, new HashSet<>(providedArtifacts));