Class KieMavenRepository


  • public class KieMavenRepository
    extends org.appformer.maven.integration.MavenRepository
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected KieMavenRepository​(org.appformer.maven.integration.Aether aether)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void deployArtifact​(org.appformer.maven.support.AFReleaseId 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.appformer.maven.support.AFReleaseId releaseId, org.drools.compiler.kie.builder.impl.InternalKieModule kieModule, File pomfile)
      Deploys the kjar in the given kieModule on a remote repository.
      static KieMavenRepository getKieMavenRepository()  
      static KieMavenRepository getKieMavenRepository​(org.apache.maven.project.MavenProject mavenProject)  
      void installArtifact​(org.appformer.maven.support.AFReleaseId 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.appformer.maven.integration.MavenRepository

        bytesToFile, deployArtifact, deployPomArtifact, getArtifactDependecies, getMavenRepository, getMavenRepository, getMavenRepositoryConfiguration, getRemoteRepositoryFromDistributionManagement, installArtifact, installArtifact, removeLocalArtifact, resolveArtifact, resolveArtifact, resolveArtifact, resolveVersion, toFileName
    • Constructor Detail

      • KieMavenRepository

        protected KieMavenRepository​(org.appformer.maven.integration.Aether aether)
    • Method Detail

      • getKieMavenRepository

        public static KieMavenRepository getKieMavenRepository​(org.apache.maven.project.MavenProject mavenProject)
      • deployArtifact

        public void deployArtifact​(org.appformer.maven.support.AFReleaseId 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 made
        kieModule - The kieModule containing the kjar to be deployed
        pomfile - The pom file to be deployed together with the kjar
      • deployArtifact

        public void deployArtifact​(org.eclipse.aether.repository.RemoteRepository repository,
                                   org.appformer.maven.support.AFReleaseId 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 deployed
        releaseId - The releaseId with which the deployment will be made
        kieModule - The kieModule containing the kjar to be deployed
        pomfile - The pom file to be deployed together with the kjar
      • installArtifact

        public void installArtifact​(org.appformer.maven.support.AFReleaseId 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 installed
        kieModule - The kieModule containing the kjar to be installed
        pomfile - The pom file to be installed together with the kjar