@Override
        public void modifyOutputStream(JarOutputStream os) throws IOException {
            if (manifest == null) return;

            JarEntry jarEntry = new JarEntry(JarFile.MANIFEST_NAME);
            os.putNextEntry(jarEntry);
            manifest.write(os);
        }
Replaces the Class-Path of a jar file manifest with a list of provided artifacts in a new manifest entry.
The Class-Path is used as input because it is trivial to generate with the maven-jar-plugin.

@author gjoranv
bundle-plugin/src/main/java/com/yahoo/container/plugin/mojo/GenerateProvidedArtifactManifestMojo.java