Class MavenMetadata
java.lang.Object
org.eclipse.aether.metadata.AbstractMetadata
org.apache.maven.repository.internal.MavenMetadata
- All Implemented Interfaces:
org.eclipse.aether.metadata.MergeableMetadata
,org.eclipse.aether.metadata.Metadata
- Direct Known Subclasses:
LocalSnapshotMetadata
,MavenSnapshotMetadata
,PluginsMetadata
,VersionsMetadata
abstract class MavenMetadata
extends org.eclipse.aether.metadata.AbstractMetadata
implements org.eclipse.aether.metadata.MergeableMetadata
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.aether.metadata.Metadata
org.eclipse.aether.metadata.Metadata.Nature
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
MavenMetadata
(Metadata metadata, File file, Date timestamp) -
Method Summary
Methods inherited from class org.eclipse.aether.metadata.AbstractMetadata
copyProperties, equals, getProperty, hashCode, setFile, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.aether.metadata.Metadata
getArtifactId, getGroupId, getNature, getProperty, getVersion, setFile
-
Field Details
-
MAVEN_METADATA_XML
- See Also:
-
metadata
-
file
-
timestamp
-
merged
private boolean merged
-
-
Constructor Details
-
MavenMetadata
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceorg.eclipse.aether.metadata.Metadata
-
getFile
- Specified by:
getFile
in interfaceorg.eclipse.aether.metadata.Metadata
-
merge
- Specified by:
merge
in interfaceorg.eclipse.aether.metadata.MergeableMetadata
- Throws:
org.eclipse.aether.RepositoryException
-
isMerged
public boolean isMerged()- Specified by:
isMerged
in interfaceorg.eclipse.aether.metadata.MergeableMetadata
-
merge
-
read
- Throws:
org.eclipse.aether.RepositoryException
-
write
private void write(File metadataFile, Metadata metadata) throws org.eclipse.aether.RepositoryException - Throws:
org.eclipse.aether.RepositoryException
-
getProperties
- Specified by:
getProperties
in interfaceorg.eclipse.aether.metadata.Metadata
-
setProperties
- Specified by:
setProperties
in interfaceorg.eclipse.aether.metadata.Metadata
- Overrides:
setProperties
in classorg.eclipse.aether.metadata.AbstractMetadata
-