aQute.bnd.maven.support
Class MavenEntry

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

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 Summary
 void close()
           
 File getArtifact()
           
 CachedPom getPom(URI[] urls)
          This is the method to get the POM for a cached entry.
 File getPomFile()
           
protected  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(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 Closeable
Throws:
IOException

remove

public void remove()


Copyright © 2012 aQute SARL. All Rights Reserved.