Package com.hivemq.testcontainer.core
Class MavenHiveMQExtensionSupplier
- java.lang.Object
-
- com.hivemq.testcontainer.core.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 extensionSupplier.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull MavenHiveMQExtensionSupplieraddProperty(@NotNull java.lang.String key, @NotNull java.lang.String value)Add a custom property for the maven packaging.static @NotNull MavenHiveMQExtensionSupplierdirect()ThisSuppliercan be used if the current maven project is the HiveMQ Extension to supply.@NotNull java.io.Fileget()Packages the HiveMQ extension, copies it to a temporary directory and returns the directory as aFile.@NotNull MavenHiveMQExtensionSupplierquiet()Suppress stdout of the maven build.
-
-
-
Method Detail
-
direct
@NotNull public static @NotNull MavenHiveMQExtensionSupplier direct()
ThisSuppliercan 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
MavenHiveMQExtensionSupplierfor 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 aFile.- Specified by:
getin interfacejava.util.function.Supplier<java.io.File>- Returns:
- the
Fileof the packaged HiveMQ extension - Since:
- 1.1.0
-
quiet
@NotNull public @NotNull MavenHiveMQExtensionSupplier quiet()
Suppress stdout of the maven build.- Returns:
- self
-
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 propertyvalue- the value of the property- Returns:
- self
-
-