diff options
author | gjoranv <gv@verizonmedia.com> | 2021-04-02 22:52:18 +0200 |
---|---|---|
committer | gjoranv <gv@verizonmedia.com> | 2021-04-02 22:52:18 +0200 |
commit | f58eab8f0e73901420c00912c8483387817a7b9f (patch) | |
tree | d16485415781cc7e48677c26cd612713569bd2aa /bundle-plugin/src/main/java/com | |
parent | 6038180cd42e63cd58db1731696557b8a86e49ed (diff) |
Fix incorrect method name.
Diffstat (limited to 'bundle-plugin/src/main/java/com')
-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). */ |