Enum RemoteRepository.Intent

java.lang.Object
java.lang.Enum<RemoteRepository.Intent>
org.eclipse.aether.repository.RemoteRepository.Intent
All Implemented Interfaces:
Serializable, Comparable<RemoteRepository.Intent>, java.lang.constant.Constable
Enclosing class:
RemoteRepository

The intent this repository is to be used for. Newly created repositories are usually "bare", and before their actual use (caller or repository system) adapts them, equip with auth/proxy info and even mirrors, if environment is configured for them. Note: "bare" does not always mean "without authentication", as client code may create with all required properties, but RepositorySystem will process them anyway, marking their "intent".

Important consequence: the change of RemoteRepository.Intent on repository may affect the use cases when they are used as keys (they are suitable for that). To use RemoteRepository instances as key, you should use instances returned by method RemoteRepository.toBareRemoteRepository(), that returns "normalized" repository instances usable as keys. Also, in "key usage case" two instances of remote repository are considered equal if following stands: Objects.equals(r1.toBareRemoteRepository(), r2.toBareRemoteRepository()).

Since:
2.0.14
See Also: