Class DefaultType
java.lang.Object
org.apache.maven.repository.internal.type.DefaultType
- All Implemented Interfaces:
ExtensibleEnum,Type,org.eclipse.aether.artifact.ArtifactType
@Deprecated(since="4.0.0")
public class DefaultType
extends Object
implements Type, org.eclipse.aether.artifact.ArtifactType
Deprecated.
Default implementation of
Type and Resolver ArtifactType.- Since:
- 4.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringDeprecated.private final StringDeprecated.private final StringDeprecated.private final booleanDeprecated.private final LanguageDeprecated.Deprecated.Deprecated.Fields inherited from interface org.apache.maven.api.Type
BOM, CLASSPATH_JAR, CLASSPATH_PROCESSOR, FATJAR, JAR, JAVA_SOURCE, JAVADOC, MAVEN_PLUGIN, MODULAR_JAR, MODULAR_PROCESSOR, POM, PROCESSOR, TEST_JAR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Get the default classifier associated to the dependency type.Deprecated.Get the file extension of artifacts of this type.getId()Deprecated.Deprecated.Returns the dependency type language.Deprecated.Types of path (class-path, module-path, …) where the dependency can be placed.Deprecated.id()Deprecated.Returns the dependency type id.booleanDeprecated.Specifies if the artifact already embeds its own dependencies.
-
Field Details
-
id
Deprecated. -
language
Deprecated. -
extension
Deprecated. -
classifier
Deprecated. -
includesDependencies
private final boolean includesDependenciesDeprecated. -
pathTypes
Deprecated. -
properties
Deprecated.
-
-
Constructor Details
-
Method Details
-
id
Deprecated.Description copied from interface:TypeReturns the dependency type id. The id uniquely identifies this dependency type.- Specified by:
idin interfaceExtensibleEnum- Specified by:
idin interfaceType- Returns:
- the id of this type, never
null.
-
getId
Deprecated.- Specified by:
getIdin interfaceorg.eclipse.aether.artifact.ArtifactType
-
getLanguage
Deprecated.Description copied from interface:TypeReturns the dependency type language.- Specified by:
getLanguagein interfaceType- Returns:
- the language of this type, never
null.
-
getExtension
Deprecated.Description copied from interface:TypeGet the file extension of artifacts of this type.- Specified by:
getExtensionin interfaceorg.eclipse.aether.artifact.ArtifactType- Specified by:
getExtensionin interfaceType- Returns:
- the file extension, never
null.
-
getClassifier
Deprecated.Description copied from interface:TypeGet the default classifier associated to the dependency type. The default classifier can be overridden when specifying theDependency.getClassifier().- Specified by:
getClassifierin interfaceorg.eclipse.aether.artifact.ArtifactType- Specified by:
getClassifierin interfaceType- Returns:
- the default classifier, or
null.
-
isIncludesDependencies
public boolean isIncludesDependencies()Deprecated.Description copied from interface:TypeSpecifies if the artifact already embeds its own dependencies. This is the case for JEE packages or similar artifacts such as WARs, EARs, etc.- Specified by:
isIncludesDependenciesin interfaceType- Returns:
- if the artifact's dependencies are included in the artifact
-
getPathTypes
Deprecated.Description copied from interface:TypeTypes of path (class-path, module-path, …) where the dependency can be placed. For most deterministic builds, the array length should be 1. In such case, the dependency will be unconditionally placed on the specified type of path and no heuristic rule will be involved.It is nevertheless common to specify two or more types of path. For example, a Java library may be compatible with either the class-path or the module-path, and the user may have provided no instruction about which type to use. In such case, the plugin may apply rules for choosing a path. See for example
JavaPathType.CLASSESandJavaPathType.MODULES.- Specified by:
getPathTypesin interfaceType
-
getProperties
Deprecated.- Specified by:
getPropertiesin interfaceorg.eclipse.aether.artifact.ArtifactType
-
maven-api-impljar instead