public final class MavenDependencies extends Object
MavenDependency
instancesModifier and Type | Method and Description |
---|---|
static MavenDependency |
createDependency(MavenCoordinate coordinate,
ScopeType scope,
boolean optional,
MavenDependencyExclusion... exclusions)
Creates a new
MavenDependency instance from the specified properties. |
static MavenDependency |
createDependency(String canonicalForm,
ScopeType scope,
boolean optional,
MavenDependencyExclusion... exclusions)
Creates a new
MavenDependency instance from the specified, required canonical form in format
, with the additional, optional
properties. |
static MavenDependencyExclusion |
createExclusion(String canonicalForm)
Creates a new
MavenDependencyExclusion instance from the specified, required canonical form in format
|
static MavenDependencyExclusion |
createExclusion(String groupId,
String artifactId)
Creates a new
MavenDependencyExclusion instance from the specified, required arguments |
public static MavenDependency createDependency(String canonicalForm, ScopeType scope, boolean optional, MavenDependencyExclusion... exclusions) throws IllegalArgumentException, CoordinateParseException
MavenDependency
instance from the specified, required canonical form in format
:[:[:]][:]
, with the additional, optional
properties. If no ScopeType
is specified, default will be ScopeType.COMPILE
.canonicalForm
- scope
- optional
- exclusions
- IllegalArgumentException
- If the canonical form is not suppliedCoordinateParseException
- If the specified canonical form is not validpublic static MavenDependency createDependency(MavenCoordinate coordinate, ScopeType scope, boolean optional, MavenDependencyExclusion... exclusions) throws IllegalArgumentException, CoordinateParseException
MavenDependency
instance from the specified properties. If no ScopeType
is
specified, default will be ScopeType.COMPILE
.coordinate
- scope
- optional
- exclusions
- IllegalArgumentException
- If the coordinate is not suppliedCoordinateParseException
- If the specified canonical form is not validpublic static MavenDependencyExclusion createExclusion(String canonicalForm) throws IllegalArgumentException, CoordinateParseException
MavenDependencyExclusion
instance from the specified, required canonical form in format
:
canonicalForm
- IllegalArgumentException
- If the canonical form is not suppliedCoordinateParseException
- If the canonical form is not in the correct formatpublic static MavenDependencyExclusion createExclusion(String groupId, String artifactId) throws IllegalArgumentException
MavenDependencyExclusion
instance from the specified, required argumentscanonicalForm
- IllegalArgumentException
- If either argument is not specifiedCopyright © 2013 JBoss by Red Hat. All rights reserved.