Package org.apache.maven.api
Interface Type
An artifact's
Type
represents a known kind of artifacts.
Such types are often associated to an extension and possibly
a classifier, for example java-source
has a jar
extension and a sources
classifier.
It is also used to determine if a given dependency should be
included in the classpath or if its transitive dependencies should.- Since:
- 4.0
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the classifier associated to the dependency type.Get the file extension associated to the file represented by the dependency type.getName()
Returns the dependency type name.boolean
boolean
-
Field Details
-
POM
- See Also:
-
JAR
- See Also:
-
JAVA_SOURCE
- See Also:
-
JAVADOC
- See Also:
-
MAVEN_PLUGIN
- See Also:
-
TEST_JAR
- See Also:
-
-
Method Details
-
getName
String getName()Returns the dependency type name.- Returns:
- the type name
-
getExtension
String getExtension()Get the file extension associated to the file represented by the dependency type.- Returns:
- the file extension
-
getClassifier
String getClassifier()Get the classifier associated to the dependency type.- Returns:
- the classifier
-
isIncludesDependencies
boolean isIncludesDependencies() -
isAddedToClasspath
boolean isAddedToClasspath()
-