de.saumya.mojo.ruby.gems
Class DefaultGemManager
java.lang.Object
de.saumya.mojo.ruby.gems.DefaultGemManager
- All Implemented Interfaces:
- GemManager
@Component(role=GemManager.class)
public class DefaultGemManager
- extends Object
- implements GemManager
|
Method Summary |
void |
addDefaultGemRepository(List<org.apache.maven.artifact.repository.ArtifactRepository> repos)
|
void |
addDefaultGemRepositoryForVersion(String artifactVersion,
List<org.apache.maven.artifact.repository.ArtifactRepository> repos)
|
List<String> |
availableVersions(org.apache.maven.artifact.Artifact artifact,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories)
|
org.apache.maven.project.MavenProject |
buildPom(org.apache.maven.artifact.Artifact artifact,
org.sonatype.aether.RepositorySystemSession repositorySystemSession,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories)
|
org.apache.maven.artifact.Artifact |
createArtifact(String groupId,
String artifactId,
String version,
String type)
|
org.apache.maven.artifact.Artifact |
createGemArtifact(String gemname)
|
org.apache.maven.artifact.Artifact |
createGemArtifact(String gemname,
String version)
|
org.apache.maven.artifact.Artifact |
createGemArtifactWithLatestVersion(String gemname,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories)
|
org.apache.maven.artifact.Artifact |
createJarArtifactForGemname(String gemName)
|
org.apache.maven.artifact.Artifact |
createJarArtifactForGemname(String gemName,
String version)
|
org.apache.maven.artifact.Artifact |
createJarArtifactForGemnameWithLatestVersion(String gemName,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories)
|
org.apache.maven.artifact.repository.ArtifactRepository |
defaultGemArtifactRepository()
|
org.apache.maven.artifact.repository.ArtifactRepository |
defaultGemArtifactRepositoryForVersion(String artifactVersion)
|
String |
latestVersion(org.apache.maven.artifact.Artifact artifact,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories)
|
void |
resolve(org.apache.maven.artifact.Artifact artifact,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultGemManager
public DefaultGemManager()
createGemArtifact
public org.apache.maven.artifact.Artifact createGemArtifact(String gemname)
throws GemException
- Specified by:
createGemArtifact in interface GemManager
- Throws:
GemException
createGemArtifact
public org.apache.maven.artifact.Artifact createGemArtifact(String gemname,
String version)
throws GemException
- Specified by:
createGemArtifact in interface GemManager
- Throws:
GemException
createGemArtifactWithLatestVersion
public org.apache.maven.artifact.Artifact createGemArtifactWithLatestVersion(String gemname,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories)
throws GemException
- Specified by:
createGemArtifactWithLatestVersion in interface GemManager
- Throws:
GemException
defaultGemArtifactRepository
public org.apache.maven.artifact.repository.ArtifactRepository defaultGemArtifactRepository()
- Specified by:
defaultGemArtifactRepository in interface GemManager
defaultGemArtifactRepositoryForVersion
public org.apache.maven.artifact.repository.ArtifactRepository defaultGemArtifactRepositoryForVersion(String artifactVersion)
- Specified by:
defaultGemArtifactRepositoryForVersion in interface GemManager
addDefaultGemRepository
public void addDefaultGemRepository(List<org.apache.maven.artifact.repository.ArtifactRepository> repos)
- Specified by:
addDefaultGemRepository in interface GemManager
addDefaultGemRepositoryForVersion
public void addDefaultGemRepositoryForVersion(String artifactVersion,
List<org.apache.maven.artifact.repository.ArtifactRepository> repos)
- Specified by:
addDefaultGemRepositoryForVersion in interface GemManager
createJarArtifactForGemname
public org.apache.maven.artifact.Artifact createJarArtifactForGemname(String gemName)
throws GemException
- Specified by:
createJarArtifactForGemname in interface GemManager
- Throws:
GemException
createJarArtifactForGemname
public org.apache.maven.artifact.Artifact createJarArtifactForGemname(String gemName,
String version)
throws GemException
- Specified by:
createJarArtifactForGemname in interface GemManager
- Throws:
GemException
createJarArtifactForGemnameWithLatestVersion
public org.apache.maven.artifact.Artifact createJarArtifactForGemnameWithLatestVersion(String gemName,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories)
throws GemException
- Specified by:
createJarArtifactForGemnameWithLatestVersion in interface GemManager
- Throws:
GemException
createArtifact
public org.apache.maven.artifact.Artifact createArtifact(String groupId,
String artifactId,
String version,
String type)
- Specified by:
createArtifact in interface GemManager
resolve
public void resolve(org.apache.maven.artifact.Artifact artifact,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories)
throws GemException
- Specified by:
resolve in interface GemManager
- Throws:
GemException
buildPom
public org.apache.maven.project.MavenProject buildPom(org.apache.maven.artifact.Artifact artifact,
org.sonatype.aether.RepositorySystemSession repositorySystemSession,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories)
throws GemException
- Specified by:
buildPom in interface GemManager
- Throws:
GemException
latestVersion
public String latestVersion(org.apache.maven.artifact.Artifact artifact,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories)
throws GemException
- Specified by:
latestVersion in interface GemManager
- Throws:
GemException
availableVersions
public List<String> availableVersions(org.apache.maven.artifact.Artifact artifact,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories)
throws GemException
- Specified by:
availableVersions in interface GemManager
- Throws:
GemException
Copyright © 2010. All Rights Reserved.