Write-Error "Checksum validation is not supported for maven-mvnd. `nPlease disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties."
if ((Get-FileHash "$TMP_DOWNLOAD_DIR/$distributionUrlName" -Algorithm SHA256).Hash.ToLower() -ne $distributionSha256Sum) {
Write-Error "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised. If you updated your Maven version, you need to update the specified distributionSha256Sum property."
@Pattern(regexp="^(?!\\d+$)[a-zA-Z0-9 ]+$",message="Product name must contain at least one letter and can include numbers, but cannot be only numbers.")
privateStringname;
@NotNull(message="Price cannot be null.")
@DecimalMin(value="0.01",inclusive=true,message="Price must be positive.")
@Indexed(unique=true)// Ensure product name is unique if needed
@NotNull
@NotEmpty
@Pattern(regexp="^(?!\\d+$)[a-zA-Z0-9 ]+$",message="Product name must contain at least one letter and can include numbers, but cannot be only numbers.")
privateStringname;
@NotNull(message="Price cannot be null.")
@DecimalMin(value="0.01",inclusive=true,message="Price must be positive.")