aQute.bnd.maven.support
Class MavenEntry

java.lang.Object
  extended by aQute.bnd.maven.support.MavenEntry
All Implemented Interfaces:
java.io.Closeable

public class MavenEntry
extends java.lang.Object
implements java.io.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 Summary
 void close()
           
 java.io.File getArtifact()
           
 CachedPom getPom(java.net.URI[] urls)
          This is the method to get the POM for a cached entry.
 java.io.File getPomFile()
           
protected  java.util.Properties getProperties()
          Answer the properties, loading if needed.
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPom

public CachedPom getPom(java.net.URI[] urls)
                 throws java.lang.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:
java.lang.Exception - If something goes haywire

getProperties

protected java.util.Properties getProperties()
Answer the properties, loading if needed.


getArtifact

public java.io.File getArtifact()
                         throws java.lang.Exception
Throws:
java.lang.Exception

getPomFile

public java.io.File getPomFile()

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Throws:
java.io.IOException

remove

public void remove()