Package org.eclipse.aether.util.artifact
Class SubArtifact
java.lang.Object
org.eclipse.aether.artifact.AbstractArtifact
org.eclipse.aether.util.artifact.SubArtifact
- All Implemented Interfaces:
org.eclipse.aether.artifact.Artifact
An artifact whose identity is derived from another artifact. Note: Instances of this class are immutable and
the exposed mutators return new objects rather than changing the current instance.
-
Constructor Summary
ConstructorsConstructorDescriptionSubArtifact(org.eclipse.aether.artifact.Artifact mainArtifact, String classifier, String extension) Creates a new sub artifact.SubArtifact(org.eclipse.aether.artifact.Artifact mainArtifact, String classifier, String extension, File file) Creates a new sub artifact.SubArtifact(org.eclipse.aether.artifact.Artifact mainArtifact, String classifier, String extension, Path path) Creates a new sub artifact.SubArtifact(org.eclipse.aether.artifact.Artifact mainArtifact, String classifier, String extension, Map<String, String> properties) Creates a new sub artifact.SubArtifact(org.eclipse.aether.artifact.Artifact mainArtifact, String classifier, String extension, Map<String, String> properties, File file) Creates a new sub artifact.SubArtifact(org.eclipse.aether.artifact.Artifact mainArtifact, String classifier, String extension, Map<String, String> properties, Path path) Creates a new sub artifact. -
Method Summary
Methods inherited from class org.eclipse.aether.artifact.AbstractArtifact
copyProperties, equals, getProperty, hashCode, setVersion, toString
-
Constructor Details
-
SubArtifact
public SubArtifact(org.eclipse.aether.artifact.Artifact mainArtifact, String classifier, String extension) Creates a new sub artifact. The classifier and extension specified for this artifact may use the asterisk character "*" to refer to the corresponding property of the main artifact. For instance, the classifier "*-sources" can be used to refer to the source attachment of an artifact. Likewise, the extension "*.asc" can be used to refer to the GPG signature of an artifact.- Parameters:
mainArtifact- The artifact from which to derive the identity, must not benull.classifier- The classifier for this artifact, may benullif none.extension- The extension for this artifact, may benullif none.
-
SubArtifact
public SubArtifact(org.eclipse.aether.artifact.Artifact mainArtifact, String classifier, String extension, File file) Creates a new sub artifact. The classifier and extension specified for this artifact may use the asterisk character "*" to refer to the corresponding property of the main artifact. For instance, the classifier "*-sources" can be used to refer to the source attachment of an artifact. Likewise, the extension "*.asc" can be used to refer to the GPG signature of an artifact.- Parameters:
mainArtifact- The artifact from which to derive the identity, must not benull.classifier- The classifier for this artifact, may benullif none.extension- The extension for this artifact, may benullif none.file- The file for this artifact, may benullif unresolved.
-
SubArtifact
public SubArtifact(org.eclipse.aether.artifact.Artifact mainArtifact, String classifier, String extension, Path path) Creates a new sub artifact. The classifier and extension specified for this artifact may use the asterisk character "*" to refer to the corresponding property of the main artifact. For instance, the classifier "*-sources" can be used to refer to the source attachment of an artifact. Likewise, the extension "*.asc" can be used to refer to the GPG signature of an artifact.- Parameters:
mainArtifact- The artifact from which to derive the identity, must not benull.classifier- The classifier for this artifact, may benullif none.extension- The extension for this artifact, may benullif none.path- The file for this artifact, may benullif unresolved.- Since:
- 2.0.0
-
SubArtifact
public SubArtifact(org.eclipse.aether.artifact.Artifact mainArtifact, String classifier, String extension, Map<String, String> properties) Creates a new sub artifact. The classifier and extension specified for this artifact may use the asterisk character "*" to refer to the corresponding property of the main artifact. For instance, the classifier "*-sources" can be used to refer to the source attachment of an artifact. Likewise, the extension "*.asc" can be used to refer to the GPG signature of an artifact.- Parameters:
mainArtifact- The artifact from which to derive the identity, must not benull.classifier- The classifier for this artifact, may benullif none.extension- The extension for this artifact, may benullif none.properties- The properties of the artifact, may benull.
-
SubArtifact
public SubArtifact(org.eclipse.aether.artifact.Artifact mainArtifact, String classifier, String extension, Map<String, String> properties, File file) Creates a new sub artifact. The classifier and extension specified for this artifact may use the asterisk character "*" to refer to the corresponding property of the main artifact. For instance, the classifier "*-sources" can be used to refer to the source attachment of an artifact. Likewise, the extension "*.asc" can be used to refer to the GPG signature of an artifact.- Parameters:
mainArtifact- The artifact from which to derive the identity, must not benull.classifier- The classifier for this artifact, may benullif none.extension- The extension for this artifact, may benullif none.properties- The properties of the artifact, may benull.file- The file for this artifact, may benullif unresolved.
-
SubArtifact
public SubArtifact(org.eclipse.aether.artifact.Artifact mainArtifact, String classifier, String extension, Map<String, String> properties, Path path) Creates a new sub artifact. The classifier and extension specified for this artifact may use the asterisk character "*" to refer to the corresponding property of the main artifact. For instance, the classifier "*-sources" can be used to refer to the source attachment of an artifact. Likewise, the extension "*.asc" can be used to refer to the GPG signature of an artifact.- Parameters:
mainArtifact- The artifact from which to derive the identity, must not benull.classifier- The classifier for this artifact, may benullif none.extension- The extension for this artifact, may benullif none.properties- The properties of the artifact, may benull.path- The file for this artifact, may benullif unresolved.- Since:
- 2.0.0
-
-
Method Details
-
getGroupId
-
getArtifactId
-
getVersion
-
getBaseVersion
- Specified by:
getBaseVersionin interfaceorg.eclipse.aether.artifact.Artifact- Overrides:
getBaseVersionin classorg.eclipse.aether.artifact.AbstractArtifact
-
isSnapshot
- Specified by:
isSnapshotin interfaceorg.eclipse.aether.artifact.Artifact- Overrides:
isSnapshotin classorg.eclipse.aether.artifact.AbstractArtifact
-
getClassifier
-
getExtension
-
getFile
Deprecated. -
getPath
- Specified by:
getPathin interfaceorg.eclipse.aether.artifact.Artifact- Overrides:
getPathin classorg.eclipse.aether.artifact.AbstractArtifact
-
setFile
Deprecated.- Specified by:
setFilein interfaceorg.eclipse.aether.artifact.Artifact- Overrides:
setFilein classorg.eclipse.aether.artifact.AbstractArtifact
-
setPath
- Specified by:
setPathin interfaceorg.eclipse.aether.artifact.Artifact- Overrides:
setPathin classorg.eclipse.aether.artifact.AbstractArtifact
-
getProperties
-
setProperties
- Specified by:
setPropertiesin interfaceorg.eclipse.aether.artifact.Artifact- Overrides:
setPropertiesin classorg.eclipse.aether.artifact.AbstractArtifact
-