Class HazelcastManifestTransformer

java.lang.Object
org.apache.maven.plugins.shade.resource.ManifestResourceTransformer
com.hazelcast.buildutils.HazelcastManifestTransformer
All Implemented Interfaces:
org.apache.maven.plugins.shade.resource.ReproducibleResourceTransformer, org.apache.maven.plugins.shade.resource.ResourceTransformer

public class HazelcastManifestTransformer extends org.apache.maven.plugins.shade.resource.ManifestResourceTransformer
This transformer implementation is used to merge MANIFEST and OSGi bundle metadata in conjunction with the Maven Shade plugin when integrating multiple dependencies into one output JAR.
  • Constructor Details

    • HazelcastManifestTransformer

      public HazelcastManifestTransformer()
  • Method Details

    • setMainClass

      public void setMainClass(String mainClass)
      Overrides:
      setMainClass in class org.apache.maven.plugins.shade.resource.ManifestResourceTransformer
    • setManifestEntries

      public void setManifestEntries(Map<String,Object> manifestEntries)
      Overrides:
      setManifestEntries in class org.apache.maven.plugins.shade.resource.ManifestResourceTransformer
    • setOverrideInstructions

      public void setOverrideInstructions(Map<String,String> overrideInstructions)
    • canTransformResource

      public boolean canTransformResource(String resource)
      Specified by:
      canTransformResource in interface org.apache.maven.plugins.shade.resource.ResourceTransformer
      Overrides:
      canTransformResource in class org.apache.maven.plugins.shade.resource.ManifestResourceTransformer
    • processResource

      public void processResource(String resource, InputStream inputStream, List<org.apache.maven.plugins.shade.relocation.Relocator> relocators, long time) throws IOException
      Specified by:
      processResource in interface org.apache.maven.plugins.shade.resource.ReproducibleResourceTransformer
      Overrides:
      processResource in class org.apache.maven.plugins.shade.resource.ManifestResourceTransformer
      Throws:
      IOException
    • hasTransformedResource

      public boolean hasTransformedResource()
      Specified by:
      hasTransformedResource in interface org.apache.maven.plugins.shade.resource.ResourceTransformer
      Overrides:
      hasTransformedResource in class org.apache.maven.plugins.shade.resource.ManifestResourceTransformer
    • modifyOutputStream

      public void modifyOutputStream(JarOutputStream jarOutputStream) throws IOException
      Specified by:
      modifyOutputStream in interface org.apache.maven.plugins.shade.resource.ResourceTransformer
      Overrides:
      modifyOutputStream in class org.apache.maven.plugins.shade.resource.ManifestResourceTransformer
      Throws:
      IOException
    • processResource

      public final void processResource(String arg0, InputStream arg1, List<org.apache.maven.plugins.shade.relocation.Relocator> arg2) throws IOException
      Specified by:
      processResource in interface org.apache.maven.plugins.shade.resource.ResourceTransformer
      Throws:
      IOException