Class GroupIdRemoteRepositoryFilterSource
- All Implemented Interfaces:
RemoteRepositoryFilterSource
,ArtifactResolverPostProcessor
The file can be authored manually: format is one groupId per line, comments starting with "#" (hash) amd empty lines for structuring are supported. The file can also be pre-populated by "record" functionality of this filter. When "recording", this filter will not filter out anything, but will instead populate the file with all encountered groupIds.
The groupId file is expected on path "${basedir}/groupId-${repository.id}.txt".
The groupId file once loaded are cached in component, so in-flight groupId file change during component existence are NOT noticed.
- 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
ConstructorDescriptionGroupIdRemoteRepositoryFilterSource
(RepositorySystemLifecycle repositorySystemLifecycle) -
Method Summary
Modifier and TypeMethodDescriptionProvides the filter instance for given session, ornull
if this instance wants to abstain from participating in filtering.protected boolean
isEnabled
(RepositorySystemSession session) Returnstrue
if session configuration contains this name set totrue
.void
postProcess
(RepositorySystemSession session, List<ArtifactResult> artifactResults) Receives resolver results just before it would return it to caller.Methods inherited from class org.eclipse.aether.internal.impl.filter.RemoteRepositoryFilterSourceSupport
getBasedir
-
Field Details
-
NAME
- See Also:
-
CONFIG_PROP_ENABLED
Is filter enabled?- See Also:
- Sourced from:
RepositorySystemSession.getConfigProperties()
- Value type:
Boolean
- Default value:
- false
-
CONFIG_PROP_BASEDIR
The basedir where to store filter files. If path is relative, it is resolved from local repository root.- See Also:
- Sourced from:
RepositorySystemSession.getConfigProperties()
- Value type:
String
- Default value:
LOCAL_REPO_PREFIX_DIR
-
LOCAL_REPO_PREFIX_DIR
- See Also:
-
CONFIG_PROP_RECORD
Should filter go into "record" mode (and collect encountered artifacts)?- See Also:
- Sourced from:
RepositorySystemSession.getConfigProperties()
- Value type:
Boolean
- Default value:
- false
-
-
Constructor Details
-
GroupIdRemoteRepositoryFilterSource
@Inject public GroupIdRemoteRepositoryFilterSource(RepositorySystemLifecycle repositorySystemLifecycle)
-
-
Method Details
-
isEnabled
Description copied from class:RemoteRepositoryFilterSourceSupport
Returnstrue
if session configuration contains this name set totrue
.Default is
false
.- Specified by:
isEnabled
in classRemoteRepositoryFilterSourceSupport
-
getRemoteRepositoryFilter
Description copied from interface:RemoteRepositoryFilterSource
Provides the filter instance for given session, ornull
if this instance wants to abstain from participating in filtering.- Specified by:
getRemoteRepositoryFilter
in interfaceRemoteRepositoryFilterSource
- Returns:
- The filter for given session or
null
.
-
postProcess
Description copied from interface:ArtifactResolverPostProcessor
Receives resolver results just before it would return it to caller. Is able to generate "resolution failure" by augmenting passed inArtifactResult
s (artifacts should be "unresolved" and exceptions added).Implementations must be aware that the passed in list of
ArtifactResult
s may have failed resolutions, best to check that usingArtifactResult.isResolved()
method.The implementations must be aware that this call may be "hot", so it directly affects the performance of resolver in general.
- Specified by:
postProcess
in interfaceArtifactResolverPostProcessor
-