Package com.hazelcast.buildutils
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canTransformResource
(String resource) boolean
void
modifyOutputStream
(JarOutputStream jarOutputStream) final void
processResource
(String arg0, InputStream arg1, List<org.apache.maven.plugins.shade.relocation.Relocator> arg2) void
processResource
(String resource, InputStream inputStream, List<org.apache.maven.plugins.shade.relocation.Relocator> relocators, long time) void
setMainClass
(String mainClass) void
setManifestEntries
(Map<String, Object> manifestEntries) void
setOverrideInstructions
(Map<String, String> overrideInstructions) Methods inherited from class org.apache.maven.plugins.shade.resource.ManifestResourceTransformer
isForShade, isUsedForDefaultShading, setAdditionalAttributes, setForShade
-
Constructor Details
-
HazelcastManifestTransformer
public HazelcastManifestTransformer()
-
-
Method Details
-
setMainClass
- Overrides:
setMainClass
in classorg.apache.maven.plugins.shade.resource.ManifestResourceTransformer
-
setManifestEntries
- Overrides:
setManifestEntries
in classorg.apache.maven.plugins.shade.resource.ManifestResourceTransformer
-
setOverrideInstructions
-
canTransformResource
- Specified by:
canTransformResource
in interfaceorg.apache.maven.plugins.shade.resource.ResourceTransformer
- Overrides:
canTransformResource
in classorg.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 interfaceorg.apache.maven.plugins.shade.resource.ReproducibleResourceTransformer
- Overrides:
processResource
in classorg.apache.maven.plugins.shade.resource.ManifestResourceTransformer
- Throws:
IOException
-
hasTransformedResource
public boolean hasTransformedResource()- Specified by:
hasTransformedResource
in interfaceorg.apache.maven.plugins.shade.resource.ResourceTransformer
- Overrides:
hasTransformedResource
in classorg.apache.maven.plugins.shade.resource.ManifestResourceTransformer
-
modifyOutputStream
- Specified by:
modifyOutputStream
in interfaceorg.apache.maven.plugins.shade.resource.ResourceTransformer
- Overrides:
modifyOutputStream
in classorg.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 interfaceorg.apache.maven.plugins.shade.resource.ResourceTransformer
- Throws:
IOException
-