summaryrefslogtreecommitdiffstats
path: root/bundle-plugin/src/main/java/com/yahoo/container/plugin/mojo/GenerateProvidedArtifactManifestMojo.java
diff options
context:
space:
mode:
Diffstat (limited to 'bundle-plugin/src/main/java/com/yahoo/container/plugin/mojo/GenerateProvidedArtifactManifestMojo.java')
-rw-r--r--bundle-plugin/src/main/java/com/yahoo/container/plugin/mojo/GenerateProvidedArtifactManifestMojo.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/bundle-plugin/src/main/java/com/yahoo/container/plugin/mojo/GenerateProvidedArtifactManifestMojo.java b/bundle-plugin/src/main/java/com/yahoo/container/plugin/mojo/GenerateProvidedArtifactManifestMojo.java
index 05b679f3bfe..ee35c559e48 100644
--- a/bundle-plugin/src/main/java/com/yahoo/container/plugin/mojo/GenerateProvidedArtifactManifestMojo.java
+++ b/bundle-plugin/src/main/java/com/yahoo/container/plugin/mojo/GenerateProvidedArtifactManifestMojo.java
@@ -29,6 +29,8 @@ import java.util.jar.Manifest;
@Mojo(name = "generate-provided-artifact-manifest", requiresDependencyResolution = ResolutionScope.COMPILE, threadSafe = true)
public class GenerateProvidedArtifactManifestMojo extends AbstractMojo {
+ public static final String PROVIDED_ARTIFACTS_MANIFEST_ENTRY = "X-JDisc-Provided-Artifact";
+
@Parameter(defaultValue = "${project}")
public MavenProject project;
@@ -84,8 +86,8 @@ public class GenerateProvidedArtifactManifestMojo extends AbstractMojo {
var providedArtifacts = attributes.getValue("Class-Path");
if (providedArtifacts == null) return;
- attributes.remove(new Attributes.Name( "Class-Path"));
- attributes.putValue("X-JDisc-Provided-Artifact", providedArtifacts.replace(" ", ","));
+ attributes.remove(new Attributes.Name("Class-Path"));
+ attributes.putValue(PROVIDED_ARTIFACTS_MANIFEST_ENTRY, providedArtifacts.replace(" ", ","));
attributes.putValue("Created-By", "vespa container maven plugin");
}