diff options
author | gjoranv <gv@verizonmedia.com> | 2021-04-02 22:52:18 +0200 |
---|---|---|
committer | gjoranv <gv@verizonmedia.com> | 2021-04-12 16:19:46 +0200 |
commit | 54048e4d7579cc57faee2e10658e065eb72d8ce7 (patch) | |
tree | 81f097c3868fe6240c1ca029333d57157ea61486 /bundle-plugin | |
parent | 4e228be54618317680e51a05d04e6161a63e170a (diff) |
Fix incorrect method name.
Diffstat (limited to 'bundle-plugin')
-rw-r--r-- | bundle-plugin/src/main/java/com/yahoo/container/plugin/mojo/GenerateOsgiManifestMojo.java | 4 |
1 files changed, 2 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 63b3ceb669b..e1d199c4c9b 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 @@ -67,7 +67,7 @@ public class GenerateOsgiManifestMojo extends AbstractGenerateOsgiManifestMojo { Artifacts.ArtifactSet artifactSet = Artifacts.getArtifacts(project); warnOnUnsupportedArtifacts(artifactSet.getNonJarArtifacts()); if (! isContainerDiscArtifact(project.getArtifact())) - warnIfInternalContainerArtifactsAreIncluded(artifactSet.getJarArtifactsToInclude()); + throwIfInternalContainerArtifactsAreIncluded(artifactSet.getJarArtifactsToInclude()); List<Export> exportedPackagesFromProvidedJars = exportedPackagesAggregated( artifactSet.getJarArtifactsProvided().stream().map(Artifact::getFile).collect(Collectors.toList())); @@ -189,7 +189,7 @@ public class GenerateOsgiManifestMojo extends AbstractGenerateOsgiManifestMojo { artifact.getId(), artifact.getType()))); } - private void warnIfInternalContainerArtifactsAreIncluded(Collection<Artifact> includedArtifacts) throws MojoExecutionException { + private void throwIfInternalContainerArtifactsAreIncluded(Collection<Artifact> includedArtifacts) throws MojoExecutionException { /* In most cases it's sufficient to test for 'component', as it's the lowest level container artifact, * Embedding container artifacts will cause class loading issues at runtime, because the classes will * not be equal to those seen by the framework (e.g. AbstractComponent). */ |