KIE EAP - Maven plugin 6.1.0.Final

org.kie.integration.eap.maven
Class EAPDynamicModulesBuilderMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.kie.integration.eap.maven.EAPDynamicModulesBuilderMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class EAPDynamicModulesBuilderMojo
extends org.apache.maven.plugin.AbstractMojo

This plugin mojo generates a dynamic module (webapp) definition and the assembly files to assemble it.


Field Summary
protected  String assemblyFormats
          The output formats for assembly descriptor.
protected  EAPLayerDistributionManager distributionManager
          The scanner for static modules.
protected  String distributionName
          The name of the dynamic module distribution to generate.
protected  String outputPath
          The output path for the generated artifacts and assembly files.
protected  EAPPatchManager patchManager
          The patch manager.
protected  org.apache.maven.project.MavenProject project
          The Maven project.
protected  List<org.sonatype.aether.repository.RemoteRepository> remoteRepos
          The project's remote repositories to use for the resolution of plugins and their dependencies.
protected  org.sonatype.aether.RepositorySystemSession repoSession
          The current repository/network configuration of Maven.
protected  org.sonatype.aether.RepositorySystem repoSystem
          The entry point to Aether, i.e. the component doing all the work.
protected  EAPConfigurationArtifact staticLayerArtifact
          The static layer artifact than contains all the modules and properties for the layer.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
EAPDynamicModulesBuilderMojo()
           
 
Method Summary
protected  void checkConfiguration()
           
 void execute()
           
protected  String generateJbossDeploymentStructure(Collection<EAPModuleNodeGraphDependency> staticModuleDependencies, ZipFile war, Document currentJbossDepStructureDoc)
           
protected  ZipFile getWarFile(EAPDynamicModule module)
           
protected  void initServices()
           
protected  boolean isWarLibrary(String fileName)
           
protected  Collection<EAPModuleNodeGraphDependency> readCurrentJBossDepStructurDependencies(Document document)
           
protected  org.kie.integration.eap.maven.EAPDynamicModulesBuilderMojo.EAPWarResources scanWarResources(ZipFile war)
           
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

project

protected org.apache.maven.project.MavenProject project
The Maven project.


repoSystem

protected org.sonatype.aether.RepositorySystem repoSystem
The entry point to Aether, i.e. the component doing all the work.


repoSession

protected org.sonatype.aether.RepositorySystemSession repoSession
The current repository/network configuration of Maven.


remoteRepos

protected List<org.sonatype.aether.repository.RemoteRepository> remoteRepos
The project's remote repositories to use for the resolution of plugins and their dependencies.


distributionName

protected String distributionName
The name of the dynamic module distribution to generate.


outputPath

protected String outputPath
The output path for the generated artifacts and assembly files. The resulting assembly.xml file will be created inside this path.


assemblyFormats

protected String assemblyFormats
The output formats for assembly descriptor. Use comma-separated values.


staticLayerArtifact

protected EAPConfigurationArtifact staticLayerArtifact
The static layer artifact than contains all the modules and properties for the layer.


distributionManager

protected EAPLayerDistributionManager distributionManager
The scanner for static modules.


patchManager

protected EAPPatchManager patchManager
The patch manager.

Constructor Detail

EAPDynamicModulesBuilderMojo

public EAPDynamicModulesBuilderMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

checkConfiguration

protected void checkConfiguration()
                           throws org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoFailureException

initServices

protected void initServices()

getWarFile

protected ZipFile getWarFile(EAPDynamicModule module)
                      throws IOException,
                             org.sonatype.aether.resolution.ArtifactResolutionException
Throws:
IOException
org.sonatype.aether.resolution.ArtifactResolutionException

scanWarResources

protected org.kie.integration.eap.maven.EAPDynamicModulesBuilderMojo.EAPWarResources scanWarResources(ZipFile war)
                                                                                               throws org.apache.maven.plugin.MojoExecutionException,
                                                                                                      IOException
Throws:
org.apache.maven.plugin.MojoExecutionException
IOException

isWarLibrary

protected boolean isWarLibrary(String fileName)

generateJbossDeploymentStructure

protected String generateJbossDeploymentStructure(Collection<EAPModuleNodeGraphDependency> staticModuleDependencies,
                                                  ZipFile war,
                                                  Document currentJbossDepStructureDoc)
                                           throws org.apache.maven.plugin.MojoExecutionException,
                                                  IOException
Throws:
org.apache.maven.plugin.MojoExecutionException
IOException

readCurrentJBossDepStructurDependencies

protected Collection<EAPModuleNodeGraphDependency> readCurrentJBossDepStructurDependencies(Document document)

KIE EAP - Maven plugin 6.1.0.Final

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.