Package aQute.bnd.maven.support
Class MavenEntry
- java.lang.Object
-
- aQute.bnd.maven.support.MavenEntry
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class MavenEntry extends java.lang.Object implements java.io.CloseableAn 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()java.io.FilegetArtifact()java.io.FilegetArtifactFile()CachedPomgetPom(java.net.URI[] urls)This is the method to get the POM for a cached entry.java.io.FilegetPomFile()protected java.util.PropertiesgetProperties()Answer the properties, loading if needed.voidremove()
-
-
-
Method Detail
-
getArtifactFile
public java.io.File getArtifactFile()
-
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:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
remove
public void remove()
-
-