diff --git a/src/main/java/org/codehaus/plexus/archiver/jar/JarArchiver.java b/src/main/java/org/codehaus/plexus/archiver/jar/JarArchiver.java index 671593f54..8c6c24739 100644 --- a/src/main/java/org/codehaus/plexus/archiver/jar/JarArchiver.java +++ b/src/main/java/org/codehaus/plexus/archiver/jar/JarArchiver.java @@ -319,7 +319,16 @@ protected boolean hasVirtualFiles() || super.hasVirtualFiles(); } - private Manifest createManifest() + /** + * Creates the manifest to be added to the JAR archive. + * Sub-classes may choose to override this method + * in order to inspect or modify the JAR manifest file. + * + * @return the manifest for the JAR archive. + * + * @throws ArchiverException + */ + protected Manifest createManifest() throws ArchiverException { Manifest finalManifest = Manifest.getDefaultManifest();