Class DefaultArtifactHandler
java.lang.Object
org.apache.maven.artifact.handler.DefaultArtifactHandler
- All Implemented Interfaces:
ArtifactHandler
-
Field Summary
Fields inherited from interface org.apache.maven.artifact.handler.ArtifactHandler
ROLE
-
Constructor Summary
ConstructorDescriptionDeprecated.This ctor is present only for Plexus XML defined component compatibility, do not use it.DefaultArtifactHandler
(String type) DefaultArtifactHandler
(String type, String extension, String classifier, String directory, String packaging, boolean includesDependencies, String language, boolean addedToClasspath) -
Method Summary
Modifier and TypeMethodDescriptionReturns the default classifier used if a different one is not set in pom.xml.Returns the file name extension of the artifact; e.g.getType()
boolean
Deprecated.boolean
void
setAddedToClasspath
(boolean addedToClasspath) Deprecated.void
setClassifier
(String classifier) void
setDirectory
(String directory) void
setExtension
(String extension) void
setIncludesDependencies
(boolean includesDependencies) void
setLanguage
(String language) void
setPackaging
(String packaging)
-
Constructor Details
-
DefaultArtifactHandler
Deprecated.This ctor is present only for Plexus XML defined component compatibility, do not use it.Default ctor for Plexus compatibility, as many plugins have artifact handlers declared in legacy Plexus XML. Do not use directly! -
DefaultArtifactHandler
-
DefaultArtifactHandler
-
-
Method Details
-
getType
-
getExtension
Description copied from interface:ArtifactHandler
Returns the file name extension of the artifact; e.g. "jar", "pom", "xml", etc.- Specified by:
getExtension
in interfaceArtifactHandler
- Returns:
- the file extension
-
setExtension
-
getClassifier
Description copied from interface:ArtifactHandler
Returns the default classifier used if a different one is not set in pom.xml.- Specified by:
getClassifier
in interfaceArtifactHandler
- Returns:
- the classifier
-
setClassifier
-
getDirectory
- Specified by:
getDirectory
in interfaceArtifactHandler
-
setDirectory
-
getPackaging
- Specified by:
getPackaging
in interfaceArtifactHandler
-
setPackaging
-
isIncludesDependencies
public boolean isIncludesDependencies()- Specified by:
isIncludesDependencies
in interfaceArtifactHandler
-
setIncludesDependencies
public void setIncludesDependencies(boolean includesDependencies) -
getLanguage
- Specified by:
getLanguage
in interfaceArtifactHandler
-
setLanguage
-
isAddedToClasspath
Deprecated.Description copied from interface:ArtifactHandler
Specifies if the artifact contains java classes and can be added to the classpath. Whether the artifact should be added to the classpath depends on other dependency properties.- Specified by:
isAddedToClasspath
in interfaceArtifactHandler
- Returns:
- if the artifact can be added to the class path
-
setAddedToClasspath
Deprecated.
-