Class DefaultArtifactHandler
java.lang.Object
org.apache.maven.artifact.handler.DefaultArtifactHandler
- All Implemented Interfaces:
- ArtifactHandler
- 
Field SummaryFields inherited from interface org.apache.maven.artifact.handler.ArtifactHandlerROLE
- 
Constructor SummaryConstructorsConstructorDescriptionDeprecated.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 SummaryModifier 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()booleanDeprecated.booleanvoidsetAddedToClasspath(boolean addedToClasspath) Deprecated.voidsetClassifier(String classifier) voidsetDirectory(String directory) voidsetExtension(String extension) voidsetIncludesDependencies(boolean includesDependencies) voidsetLanguage(String language) voidsetPackaging(String packaging) 
- 
Constructor Details- 
DefaultArtifactHandlerDeprecated.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
- 
getExtensionDescription copied from interface:ArtifactHandlerReturns the file name extension of the artifact; e.g. "jar", "pom", "xml", etc.- Specified by:
- getExtensionin interface- ArtifactHandler
- Returns:
- the file extension
 
- 
setExtension
- 
getClassifierDescription copied from interface:ArtifactHandlerReturns the default classifier used if a different one is not set in pom.xml.- Specified by:
- getClassifierin interface- ArtifactHandler
- Returns:
- the classifier
 
- 
setClassifier
- 
getDirectory- Specified by:
- getDirectoryin interface- ArtifactHandler
 
- 
setDirectory
- 
getPackaging- Specified by:
- getPackagingin interface- ArtifactHandler
 
- 
setPackaging
- 
isIncludesDependenciespublic boolean isIncludesDependencies()- Specified by:
- isIncludesDependenciesin interface- ArtifactHandler
 
- 
setIncludesDependenciespublic void setIncludesDependencies(boolean includesDependencies) 
- 
getLanguage- Specified by:
- getLanguagein interface- ArtifactHandler
 
- 
setLanguage
- 
isAddedToClasspathDeprecated.Description copied from interface:ArtifactHandlerSpecifies 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:
- isAddedToClasspathin interface- ArtifactHandler
- Returns:
- if the artifact can be added to the class path
 
- 
setAddedToClasspathDeprecated.
 
-