public class MavenRepository extends Object
| Modifier and Type | Field and Description |
|---|---|
static MavenRepository |
defaultMavenRepository |
| Modifier | Constructor and Description |
|---|---|
protected |
MavenRepository(Aether aether) |
| Modifier and Type | Method and Description |
|---|---|
protected File |
bytesToFile(org.appformer.maven.support.AFReleaseId releaseId,
byte[] bytes,
String extension) |
void |
deployArtifact(org.eclipse.aether.repository.RemoteRepository repository,
org.appformer.maven.support.AFReleaseId releaseId,
File jar,
File pomfile)
Deploys a jar on a remote repository.
|
void |
deployPomArtifact(String groupId,
String artifactId,
String version,
File pomfile) |
List<DependencyDescriptor> |
getArtifactDependecies(String artifactName) |
static MavenRepository |
getMavenRepository() |
static MavenRepository |
getMavenRepository(org.apache.maven.project.MavenProject mavenProject) |
protected MavenRepositoryConfiguration |
getMavenRepositoryConfiguration() |
protected org.eclipse.aether.repository.RemoteRepository |
getRemoteRepositoryFromDistributionManagement(File pomfile) |
void |
installArtifact(org.appformer.maven.support.AFReleaseId releaseId,
byte[] jarContent,
byte[] pomContent)
Installs the given jar into the local repository.
|
void |
installArtifact(org.appformer.maven.support.AFReleaseId releaseId,
File jar,
File pomfile)
Installs the given jar into the local repository.
|
void |
removeLocalArtifact(org.appformer.maven.support.AFReleaseId releaseId)
Utility method specifically suggested for testing purposes only.
|
org.eclipse.aether.artifact.Artifact |
resolveArtifact(org.appformer.maven.support.AFReleaseId releaseId) |
org.eclipse.aether.artifact.Artifact |
resolveArtifact(String artifactName) |
org.eclipse.aether.artifact.Artifact |
resolveArtifact(String artifactName,
boolean logUnresolvedArtifact) |
org.eclipse.aether.version.Version |
resolveVersion(String artifactName) |
static String |
toFileName(org.appformer.maven.support.AFReleaseId releaseId,
String classifier) |
public static MavenRepository defaultMavenRepository
protected MavenRepository(Aether aether)
protected MavenRepositoryConfiguration getMavenRepositoryConfiguration()
public static MavenRepository getMavenRepository()
public static MavenRepository getMavenRepository(org.apache.maven.project.MavenProject mavenProject)
public List<DependencyDescriptor> getArtifactDependecies(String artifactName)
public org.eclipse.aether.artifact.Artifact resolveArtifact(org.appformer.maven.support.AFReleaseId releaseId)
public org.eclipse.aether.artifact.Artifact resolveArtifact(String artifactName)
public org.eclipse.aether.artifact.Artifact resolveArtifact(String artifactName, boolean logUnresolvedArtifact)
public org.eclipse.aether.version.Version resolveVersion(String artifactName)
protected org.eclipse.aether.repository.RemoteRepository getRemoteRepositoryFromDistributionManagement(File pomfile)
public void deployArtifact(org.eclipse.aether.repository.RemoteRepository repository,
org.appformer.maven.support.AFReleaseId releaseId,
File jar,
File pomfile)
repository - The remote repository where the kjar will be deployedreleaseId - The releaseId with which the deployment will be madejar - The jar to be deployedpomfile - The pom file to be deployed together with the kjarprotected File bytesToFile(org.appformer.maven.support.AFReleaseId releaseId, byte[] bytes, String extension)
public void installArtifact(org.appformer.maven.support.AFReleaseId releaseId,
byte[] jarContent,
byte[] pomContent)
releaseId - The releaseId with which the kjar will be installedjarContent - A byte array containing the kjar to be installedpomContent - A byte array containing the pom file to be installed together with the kjarpublic void installArtifact(org.appformer.maven.support.AFReleaseId releaseId,
File jar,
File pomfile)
releaseId - The releaseId with which the kjar will be installedjar - The jar to be installedpomfile - The pom file to be installed together with the kjarpublic void deployPomArtifact(String groupId, String artifactId, String version, File pomfile)
public static String toFileName(org.appformer.maven.support.AFReleaseId releaseId, String classifier)
public void removeLocalArtifact(org.appformer.maven.support.AFReleaseId releaseId)
Copyright © 2017–2019 JBoss by Red Hat. All rights reserved.