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
  • Field Details

    • MAVEN_METADATA_XML

      static final String MAVEN_METADATA_XML
      See Also:
    • metadata

      protected Metadata metadata
    • file

      private final File file
    • timestamp

      protected final Date timestamp
    • merged

      private boolean merged
  • Constructor Details

    • MavenMetadata

      protected MavenMetadata(Metadata metadata, File file, Date timestamp)
  • Method Details

    • getType

      public String getType()
      Specified by:
      getType in interface org.eclipse.aether.metadata.Metadata
    • getFile

      public File getFile()
      Specified by:
      getFile in interface org.eclipse.aether.metadata.Metadata
    • merge

      public void merge(File existing, File result) throws org.eclipse.aether.RepositoryException
      Specified by:
      merge in interface org.eclipse.aether.metadata.MergeableMetadata
      Throws:
      org.eclipse.aether.RepositoryException
    • isMerged

      public boolean isMerged()
      Specified by:
      isMerged in interface org.eclipse.aether.metadata.MergeableMetadata
    • merge

      protected abstract void merge(Metadata recessive)
    • read

      static Metadata read(File metadataFile) throws org.eclipse.aether.RepositoryException
      Throws:
      org.eclipse.aether.RepositoryException
    • write

      private void write(File metadataFile, Metadata metadata) throws org.eclipse.aether.RepositoryException
      Throws:
      org.eclipse.aether.RepositoryException
    • getProperties

      public Map<String,String> getProperties()
      Specified by:
      getProperties in interface org.eclipse.aether.metadata.Metadata
    • setProperties

      public org.eclipse.aether.metadata.Metadata setProperties(Map<String,String> properties)
      Specified by:
      setProperties in interface org.eclipse.aether.metadata.Metadata
      Overrides:
      setProperties in class org.eclipse.aether.metadata.AbstractMetadata