public abstract class MavenStrategyStageBaseImpl<STRATEGYSTAGETYPE extends MavenStrategyStageBase<STRATEGYSTAGETYPE,FORMATSTAGETYPE>,FORMATSTAGETYPE extends MavenFormatStage> extends Object implements MavenStrategyStageBase<STRATEGYSTAGETYPE,FORMATSTAGETYPE>, MavenWorkingSessionContainer
MavenStrategyStage
Constructor and Description |
---|
MavenStrategyStageBaseImpl(MavenWorkingSession session) |
Modifier and Type | Method and Description |
---|---|
protected abstract FORMATSTAGETYPE |
createFormatStage(Collection<MavenResolvedArtifact> filteredArtifacts)
Creates a new
MavenFormatStage instance for the current MavenWorkingSession |
protected abstract Class<STRATEGYSTAGETYPE> |
getActualClass() |
MavenWorkingSession |
getMavenWorkingSession() |
FORMATSTAGETYPE |
using(MavenResolutionStrategy strategy)
Defines the
ResolutionStrategy to be used in resolution, returning the next FormatStage . |
STRATEGYSTAGETYPE |
withClassPathResolution(boolean useClassPathResolution)
Sets that resolution from the ClassPath should be permitted in addition to configured repositories - defaults to
"true".
|
STRATEGYSTAGETYPE |
withMavenCentralRepo(boolean useMavenCentral)
Sets whether to consult the Maven Central Repository in resolution; defaults to true.
|
FORMATSTAGETYPE |
withoutTransitivity()
Alias to
StrategyStage.using(ResolutionStrategy) with NonTransitiveStrategy.INSTANCE as argument |
FORMATSTAGETYPE |
withTransitivity()
Alias to
StrategyStage.using(ResolutionStrategy) with TransitiveStrategy.INSTANCE as argument |
public MavenStrategyStageBaseImpl(MavenWorkingSession session)
public FORMATSTAGETYPE withTransitivity()
TransitiveStrategyStage
StrategyStage.using(ResolutionStrategy)
with TransitiveStrategy.INSTANCE
as argumentwithTransitivity
in interface TransitiveStrategyStage<MavenDependency,MavenResolutionFilter,MavenResolvedArtifact,FORMATSTAGETYPE extends MavenFormatStage,MavenResolutionStrategy>
FormatStage
.public FORMATSTAGETYPE withoutTransitivity()
TransitiveStrategyStage
StrategyStage.using(ResolutionStrategy)
with NonTransitiveStrategy.INSTANCE
as argumentwithoutTransitivity
in interface TransitiveStrategyStage<MavenDependency,MavenResolutionFilter,MavenResolvedArtifact,FORMATSTAGETYPE extends MavenFormatStage,MavenResolutionStrategy>
FormatStage
.public MavenWorkingSession getMavenWorkingSession()
getMavenWorkingSession
in interface MavenWorkingSessionContainer
public FORMATSTAGETYPE using(MavenResolutionStrategy strategy) throws IllegalArgumentException
StrategyStage
ResolutionStrategy
to be used in resolution, returning the next FormatStage
.using
in interface StrategyStage<MavenDependency,MavenResolutionFilter,MavenResolvedArtifact,FORMATSTAGETYPE extends MavenFormatStage,MavenResolutionStrategy>
strategy
- The ResolutionStrategy
to be used in resolution.FormatStage
.IllegalArgumentException
- If the ResolutionStrategy
is not specifiedpublic STRATEGYSTAGETYPE withClassPathResolution(boolean useClassPathResolution)
Maven.configureResolver()
to get resolver with extended configuration and call
ConfigurableMavenResolverSystemBase.withClassPathResolution(boolean)
instead.withClassPathResolution
in interface MavenStrategyStageBase<STRATEGYSTAGETYPE extends MavenStrategyStageBase<STRATEGYSTAGETYPE,FORMATSTAGETYPE>,FORMATSTAGETYPE extends MavenFormatStage>
useClassPathResolution
- Whether the resolution from the ClassPath should be permitted in addition to
configured repositories - defaults to "true".STRATEGYSTAGETYPE
.MavenStrategyStageBase.withClassPathResolution(boolean)
public STRATEGYSTAGETYPE withMavenCentralRepo(boolean useMavenCentral)
Maven.configureResolver()
to get resolver with extended configuration and call
ConfigurableMavenResolverSystemBase.withMavenCentralRepo(boolean)
instead.withMavenCentralRepo
in interface MavenStrategyStageBase<STRATEGYSTAGETYPE extends MavenStrategyStageBase<STRATEGYSTAGETYPE,FORMATSTAGETYPE>,FORMATSTAGETYPE extends MavenFormatStage>
useMavenCentral
- Whether to consult the Maven Central Repository in resolution; defaults to true.STRATEGYSTAGETYPE
.MavenStrategyStageBase.withMavenCentralRepo(boolean)
protected abstract Class<STRATEGYSTAGETYPE> getActualClass()
protected abstract FORMATSTAGETYPE createFormatStage(Collection<MavenResolvedArtifact> filteredArtifacts)
MavenFormatStage
instance for the current MavenWorkingSession
filteredArtifacts
- RequiredMavenFormatStage
instance for the current MavenWorkingSession
Copyright © 2022 JBoss by Red Hat. All rights reserved.