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 |
|---|---|
void |
deployArtifact(org.kie.api.builder.ReleaseId releaseId,
org.drools.compiler.kie.builder.impl.InternalKieModule kieModule,
File pomfile)
Deploys the kjar in the given kieModule on the remote repository defined in the
distributionManagement tag of the provided pom file.
|
void |
deployArtifact(org.eclipse.aether.repository.RemoteRepository repository,
org.kie.api.builder.ReleaseId releaseId,
File jar,
File pomfile)
Deploys a jar on a remote repository.
|
void |
deployArtifact(org.eclipse.aether.repository.RemoteRepository repository,
org.kie.api.builder.ReleaseId releaseId,
org.drools.compiler.kie.builder.impl.InternalKieModule kieModule,
File pomfile)
Deploys the kjar in the given kieModule 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() |
void |
installArtifact(org.kie.api.builder.ReleaseId releaseId,
byte[] jarContent,
byte[] pomContent)
Installs the given jar into the local repository.
|
void |
installArtifact(org.kie.api.builder.ReleaseId releaseId,
File jar,
File pomfile)
Installs the given jar into the local repository.
|
void |
installArtifact(org.kie.api.builder.ReleaseId releaseId,
org.drools.compiler.kie.builder.impl.InternalKieModule kieModule,
File pomfile)
Installs the kjar in the given kieModule into the local repository.
|
org.eclipse.aether.artifact.Artifact |
resolveArtifact(org.kie.api.builder.ReleaseId 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.kie.api.builder.ReleaseId 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.kie.api.builder.ReleaseId 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)
public void deployArtifact(org.kie.api.builder.ReleaseId releaseId,
org.drools.compiler.kie.builder.impl.InternalKieModule kieModule,
File pomfile)
releaseId - The releaseId with which the deployment will be madekieModule - The kieModule containing the kjar to be deployedpomfile - The pom file to be deployed together with the kjarpublic void deployArtifact(org.eclipse.aether.repository.RemoteRepository repository,
org.kie.api.builder.ReleaseId releaseId,
org.drools.compiler.kie.builder.impl.InternalKieModule kieModule,
File pomfile)
repository - The remote repository where the kjar will be deployedreleaseId - The releaseId with which the deployment will be madekieModule - The kieModule containing the kjar to be deployedpomfile - The pom file to be deployed together with the kjarpublic void deployArtifact(org.eclipse.aether.repository.RemoteRepository repository,
org.kie.api.builder.ReleaseId 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 kjarpublic void installArtifact(org.kie.api.builder.ReleaseId releaseId,
org.drools.compiler.kie.builder.impl.InternalKieModule kieModule,
File pomfile)
releaseId - The releaseId with which the kjar will be installedkieModule - The kieModule containing the kjar to be installedpomfile - The pom file to be installed together with the kjarpublic void installArtifact(org.kie.api.builder.ReleaseId 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.kie.api.builder.ReleaseId 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)
Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.