Class MavenEntry

java.lang.Object
aQute.bnd.maven.support.MavenEntry
All Implemented Interfaces:
Closeable, AutoCloseable

public class MavenEntry extends Object implements Closeable
An entry (a group/artifact) in the maven cache in the .m2/repository directory. It provides methods to get the pom and the artifact.
  • Method Details

    • getArtifactFile

      public File getArtifactFile()
    • getPom

      public CachedPom getPom(URI[] urls) throws Exception
      This is the method to get the POM for a cached entry.
      Parameters:
      urls - The allowed URLs
      Returns:
      a CachedPom for this maven entry
      Throws:
      Exception - If something goes haywire
    • getProperties

      protected Properties getProperties()
      Answer the properties, loading if needed.
    • getArtifact

      public File getArtifact() throws Exception
      Throws:
      Exception
    • getPomFile

      public File getPomFile()
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException
    • remove

      public void remove()