org.apache.geronimo.mavenplugins.car
Class Maven2RepositoryAdapter
java.lang.Object
org.apache.geronimo.kernel.repository.AbstractRepository
org.apache.geronimo.kernel.repository.Maven2Repository
org.apache.geronimo.system.repository.Maven2Repository
org.apache.geronimo.mavenplugins.car.Maven2RepositoryAdapter
- All Implemented Interfaces:
- ListableRepository, Repository, WritableListableRepository, WriteableRepository, SourceRepository
public class Maven2RepositoryAdapter
- extends Maven2Repository
- implements SourceRepository
Helps adapt Geronimo repositories to Maven repositories for packaging building.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GBEAN_INFO
public static final GBeanInfo GBEAN_INFO
Maven2RepositoryAdapter
public Maven2RepositoryAdapter(Set<org.apache.maven.artifact.Artifact> dependencyTree,
Maven2RepositoryAdapter.ArtifactLookup lookup)
getLocation
public File getLocation(Artifact artifact)
- Description copied from interface:
Repository
- Gets the location on disk where the specified artifact is stored.
The artifact must be fully resolved (isResolved() == true).
- Specified by:
getLocation
in interface Repository
- Overrides:
getLocation
in class Maven2Repository
- Returns:
- The location of the artifact, or null if it is not in this
repository.
list
public SortedSet list()
- Description copied from interface:
ListableRepository
- Gets a set (with entries of type Artifact) of all the items available
in the repository.
- Specified by:
list
in interface ListableRepository
- Overrides:
list
in class Maven2Repository
- Returns:
- sorted list of artifacts in the repository
list
public SortedSet list(Artifact query)
- Description copied from interface:
ListableRepository
- Gets a set (with entries of type Artifact) of all the available items
matching the specified artifact, which is normally not fully resolved
(so the results all match whatever fields are specified on the argument
Artifact).
- Specified by:
list
in interface ListableRepository
- Overrides:
list
in class Maven2Repository
- Parameters:
query
- match for repository
- Returns:
- sorted list of artifacts in the repository that match the query.
mavenToGeronimoArtifact
protected Artifact mavenToGeronimoArtifact(org.apache.maven.artifact.Artifact artifact)
getPluginList
public PluginListType getPluginList()
- Specified by:
getPluginList
in interface SourceRepository
open
public OpenResult open(Artifact artifact,
FileWriteMonitor fileWriteMonitor)
throws IOException,
FailedLoginException
- Specified by:
open
in interface SourceRepository
- Throws:
IOException
FailedLoginException
getGBeanInfo
public static GBeanInfo getGBeanInfo()
Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.