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.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
java.io.File
getArtifact()
java.io.File
getArtifactFile()
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()
-
-
-
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:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
remove
public void remove()
-
-