Class MavenHiveMQExtensionSupplier

  • All Implemented Interfaces:
    java.util.function.Supplier<java.io.File>

    public class MavenHiveMQExtensionSupplier
    extends java.lang.Object
    implements java.util.function.Supplier<java.io.File>
    This class automates the process of packaging a HiveMQ extension from a maven project.
    Since:
    1.1.0
    • Constructor Summary

      Constructors 
      Constructor Description
      MavenHiveMQExtensionSupplier​(@NotNull java.lang.String pomFile)
      Creates a Maven HiveMQ extension Supplier.
    • Constructor Detail

      • MavenHiveMQExtensionSupplier

        public MavenHiveMQExtensionSupplier​(@NotNull
                                            @NotNull java.lang.String pomFile)
        Creates a Maven HiveMQ extension Supplier.
        Parameters:
        pomFile - the path of the pom.xml of the HiveMQ extension to supply.
        Since:
        1.1.0
    • Method Detail

      • direct

        @NotNull
        public static @NotNull MavenHiveMQExtensionSupplier direct()
        This Supplier can be used if the current maven project is the HiveMQ Extension to supply. It uses the pom.xml file of the current maven project.
        Returns:
        a MavenHiveMQExtensionSupplier for the current maven project
        Since:
        1.1.0
      • get

        @NotNull
        public @NotNull java.io.File get()
        Packages the HiveMQ extension, copies it to a temporary directory and returns the directory as a File.
        Specified by:
        get in interface java.util.function.Supplier<java.io.File>
        Returns:
        the File of the packaged HiveMQ extension
        Since:
        1.1.0
      • addProperty

        @NotNull
        public @NotNull MavenHiveMQExtensionSupplier addProperty​(@NotNull
                                                                 @NotNull java.lang.String key,
                                                                 @NotNull
                                                                 @NotNull java.lang.String value)
        Add a custom property for the maven packaging.
        Parameters:
        key - the name of the property
        value - the value of the property
        Returns:
        self