Class MavenMetadata

java.lang.Object
org.eclipse.aether.metadata.AbstractMetadata
org.apache.maven.internal.impl.resolver.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

  • Constructor Details

  • Method Details

    • getType

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

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

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

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

      public void merge(Path existing, Path 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(Path metadataPath) throws org.eclipse.aether.RepositoryException
      Throws:
      org.eclipse.aether.RepositoryException
    • write

      private void write(Path metadataPath, 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