org.apache.maven.api.settings.RepositoryPolicy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maven-api-settings Show documentation
Show all versions of maven-api-settings Show documentation
Maven 4 API - Immutable Settings model.
// =================== DO NOT EDIT THIS FILE ====================
// Generated by Modello Velocity from model.vm
// template, any modifications will be overwritten.
// ==============================================================
package org.apache.maven.api.settings;
import java.io.Serializable;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import org.apache.maven.api.annotations.Experimental;
import org.apache.maven.api.annotations.Generated;
import org.apache.maven.api.annotations.Immutable;
import org.apache.maven.api.annotations.Nonnull;
import org.apache.maven.api.annotations.NotThreadSafe;
import org.apache.maven.api.annotations.ThreadSafe;
/**
* Download policy
*/
@Experimental
@Generated @ThreadSafe @Immutable
public class RepositoryPolicy
implements Serializable, InputLocationTracker
{
/**
* Whether to use this repository for downloading this type of
* artifact.
*/
final boolean enabled;
/**
* The frequency for downloading updates - can be "always",
* "daily" (default), "interval:XXX" (in minutes) or "never"
* (only if it doesn't exist locally).
*/
final String updatePolicy;
/**
* What to do when verification of an artifact checksum fails. Valid values are "fail" (default for Maven 4 and
* above), "warn" (default for Maven 2 and 3) or "ignore".
*/
final String checksumPolicy;
/** Locations */
final Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy