|
ShrinkWrap Resolver Maven API 2.0.0-cr-1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.shrinkwrap.resolver.api.maven.strategy.AcceptScopesStrategy
public final class AcceptScopesStrategy
MavenResolutionStrategy implementation where only MavenDependencys in acceptable ScopeTypes
are accepted.
Note, this implementation is not able to properly filter scopes defined in a pom.xml file.
See: SHRINKRES-112
| Constructor Summary | |
|---|---|
AcceptScopesStrategy(ScopeType... scopes)
Creates a new instance allowing only the specified ScopeTypes to pass through the
getResolutionFilters() |
|
| Method Summary | |
|---|---|
MavenResolutionFilter[] |
getResolutionFilters()
Returns a MavenResolutionFilter chain allowing only dependencies in the scopes specified during
construction of this instance to pass through |
TransitiveExclusionPolicy |
getTransitiveExclusionPolicy()
Defines how transitive dependencies are filtered during the resolution request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AcceptScopesStrategy(ScopeType... scopes)
throws IllegalArgumentException
ScopeTypes to pass through the
getResolutionFilters()
scopes - Allowed scopes, required
IllegalArgumentException - If no scopes are specified| Method Detail |
|---|
public MavenResolutionFilter[] getResolutionFilters()
MavenResolutionFilter chain allowing only dependencies in the scopes specified during
construction of this instance to pass through
getResolutionFilters in interface MavenResolutionStrategyapi.maven.strategy.MavenResolutionStrategy#getResolutionFilter()public TransitiveExclusionPolicy getTransitiveExclusionPolicy()
DefaultTransitiveExclusionPolicy.INSTANCE implementation.
getTransitiveExclusionPolicy in interface MavenResolutionStrategyTransitiveExclusionPolicy, never nullMavenResolutionStrategy.getTransitiveExclusionPolicy()
|
ShrinkWrap Resolver Maven API 2.0.0-cr-1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||