Class PrefixesRemoteRepositoryFilterSource
java.lang.Object
org.eclipse.aether.internal.impl.filter.RemoteRepositoryFilterSourceSupport
org.eclipse.aether.internal.impl.filter.PrefixesRemoteRepositoryFilterSource
- All Implemented Interfaces:
org.eclipse.aether.spi.connector.filter.RemoteRepositoryFilterSource
@Singleton
@Named("prefixes")
public final class PrefixesRemoteRepositoryFilterSource
extends RemoteRepositoryFilterSourceSupport
Remote repository filter source filtering on path prefixes. It is backed by a file that lists all allowed path
prefixes from remote repository. Artifact that layout converted path (using remote repository layout) results in
path with no corresponding prefix present in this file is filtered out.
The file can be authored manually: format is one prefix per line, comments starting with "#" (hash) and empty lines for structuring are supported, The "/" (slash) character is used as file separator. Some remote repositories and MRMs publish these kind of files, they can be downloaded from corresponding URLs.
The prefix file is expected on path "${basedir}/prefixes-${repository.id}.txt".
The prefixes file is once loaded and cached, so in-flight prefixes file change during component existence are not noticed.
Examples of published prefix files:
- Central: prefixes.txt
- Apache Releases: prefixes.txt
- Since:
- 1.9.0
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.aether.internal.impl.filter.RemoteRepositoryFilterSourceSupport
RemoteRepositoryFilterSourceSupport.SimpleResult
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPrefixesRemoteRepositoryFilterSource
(org.eclipse.aether.spi.connector.layout.RepositoryLayoutProvider repositoryLayoutProvider) -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.aether.spi.connector.filter.RemoteRepositoryFilter
getRemoteRepositoryFilter
(org.eclipse.aether.RepositorySystemSession session) Methods inherited from class org.eclipse.aether.internal.impl.filter.RemoteRepositoryFilterSourceSupport
configPropKey, getBasedir, isEnabled
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
PrefixesRemoteRepositoryFilterSource
@Inject public PrefixesRemoteRepositoryFilterSource(org.eclipse.aether.spi.connector.layout.RepositoryLayoutProvider repositoryLayoutProvider)
-
-
Method Details
-
getRemoteRepositoryFilter
public org.eclipse.aether.spi.connector.filter.RemoteRepositoryFilter getRemoteRepositoryFilter(org.eclipse.aether.RepositorySystemSession session)
-