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 NonTransitiveResolutionStrategy as argument |
FORMATSTAGETYPE |
withTransitivity()
Alias to
StrategyStage.using(ResolutionStrategy) with TransitiveResolutionStrategy as argument |
public MavenStrategyStageBaseImpl(MavenWorkingSession session)
public FORMATSTAGETYPE withTransitivity()
TransitiveStrategyStage
StrategyStage.using(ResolutionStrategy)
with TransitiveResolutionStrategy
as argumentwithTransitivity
in interface TransitiveStrategyStage<MavenDependency,MavenResolutionFilter,MavenResolvedArtifact,FORMATSTAGETYPE extends MavenFormatStage,MavenResolutionStrategy>
public FORMATSTAGETYPE withoutTransitivity()
TransitiveStrategyStage
StrategyStage.using(ResolutionStrategy)
with NonTransitiveResolutionStrategy
as argumentwithoutTransitivity
in interface TransitiveStrategyStage<MavenDependency,MavenResolutionFilter,MavenResolvedArtifact,FORMATSTAGETYPE extends MavenFormatStage,MavenResolutionStrategy>
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>
IllegalArgumentException
- If the ResolutionStrategy
is not specifiedpublic STRATEGYSTAGETYPE withClassPathResolution(boolean useClassPathResolution)
withClassPathResolution
in interface MavenStrategyStageBase<STRATEGYSTAGETYPE extends MavenStrategyStageBase<STRATEGYSTAGETYPE,FORMATSTAGETYPE>,FORMATSTAGETYPE extends MavenFormatStage>
MavenStrategyStageBase.withClassPathResolution(boolean)
public STRATEGYSTAGETYPE withMavenCentralRepo(boolean useMavenCentral)
withMavenCentralRepo
in interface MavenStrategyStageBase<STRATEGYSTAGETYPE extends MavenStrategyStageBase<STRATEGYSTAGETYPE,FORMATSTAGETYPE>,FORMATSTAGETYPE extends MavenFormatStage>
MavenStrategyStageBase.withMavenCentralRepo(boolean)
protected abstract Class<STRATEGYSTAGETYPE> getActualClass()
protected abstract FORMATSTAGETYPE createFormatStage(Collection<MavenResolvedArtifact> filteredArtifacts)
MavenFormatStage
instance for the current MavenWorkingSession
filteredArtifacts
- RequiredCopyright © 2013 JBoss by Red Hat. All rights reserved.