Package org.kie.scanner
Class KieMavenRepository
- java.lang.Object
-
- org.kie.maven.integration.MavenRepository
-
- org.kie.scanner.KieMavenRepository
-
public class KieMavenRepository extends org.kie.maven.integration.MavenRepository
-
-
Field Summary
Fields Modifier and Type Field Description static KieMavenRepositorydefaultMavenRepository
-
Constructor Summary
Constructors Modifier Constructor Description protectedKieMavenRepository(org.kie.maven.integration.Aether aether)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeployArtifact(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.voiddeployArtifact(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.static KieMavenRepositorygetKieMavenRepository()static KieMavenRepositorygetKieMavenRepository(org.apache.maven.project.MavenProject mavenProject)voidinstallArtifact(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.-
Methods inherited from class org.kie.maven.integration.MavenRepository
bytesToFile, deployArtifact, deployPomArtifact, getArtifactDependecies, getMavenRepository, getMavenRepository, getMavenRepositoryConfiguration, getRemoteRepositoryFromDistributionManagement, installArtifact, installArtifact, removeLocalArtifact, resolveArtifact, resolveArtifact, resolveArtifact, resolveVersion, toFileName
-
-
-
-
Field Detail
-
defaultMavenRepository
public static KieMavenRepository defaultMavenRepository
-
-
Method Detail
-
getKieMavenRepository
public static KieMavenRepository getKieMavenRepository()
-
getKieMavenRepository
public static KieMavenRepository getKieMavenRepository(org.apache.maven.project.MavenProject mavenProject)
-
deployArtifact
public 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. If the pom file doesn't define a distributionManagement no deployment will be performed and a warning message will be logged.- Parameters:
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 kjar
-
deployArtifact
public 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.- Parameters:
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 kjar
-
installArtifact
public 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.- Parameters:
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 kjar
-
-