KIE EAP - Maven plugin 6.1.0.Final

org.kie.integration.eap.maven
Class EAPStaticModulesBuilderMojo

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

public class EAPStaticModulesBuilderMojo
extends EAPBaseMojo

This plugin mojo generates a static layer definition and the assembly files to assemble it.


Field Summary
protected  String assemblyFormats
          The output formats for assembly descriptor.
protected  String outputPath
          The output path for the genrated module descriptor and assembly files.
 
Fields inherited from class org.kie.integration.eap.maven.EAPBaseMojo
artifactsHolder, baseModule, baseModulesLayer, baseModulesScanner, container, distribution, distributionManager, distributionName, failOnMissingDependency, failOnUnresolvableResource, failOnVersionMismatchedResource, graphOutputFile, includeOptionalDependencies, modulesDependencyBuilder, modulesGraphBuilder, project, remoteRepos, repoSession, repoSystem, staticDependencies, staticModulesLayer, staticModulesScanner
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
EAPStaticModulesBuilderMojo()
           
 
Method Summary
 void execute()
           
protected  String generateGlobalAssembly(String layerId, String[] formats, String layerDescriptorFilePath, String[] componentDescriptorsFilePaths)
           
protected  String generateLayersDescriptor(EAPModulesGraph graph)
           
protected  String generateModuleAssemblyComponent(EAPModuleGraphNode node, String moduleDescriptorPath, String outputPath)
           
protected  String generateModuleDescriptor(EAPModuleGraphNode node)
           
protected  void writeDistributionProperties()
           
 
Methods inherited from class org.kie.integration.eap.maven.EAPBaseMojo
checkConfiguration, checkMissingDependencies, checkResources, collectArtifacts, generateModulesDependencies, generateModulesGraph, getAllLayers, getBaseLayerExclusions, getBaseModulesArtifact, getStaticDistributionDependencies, initServices, loadBaseLayer, loadStaticLayer
 
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

outputPath

protected String outputPath
The output path for the genrated module descriptor and assembly files. The resulting assembly descriptor file will be created in this path.


assemblyFormats

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

Constructor Detail

EAPStaticModulesBuilderMojo

public EAPStaticModulesBuilderMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Specified by:
execute in interface org.apache.maven.plugin.Mojo
Overrides:
execute in class EAPBaseMojo
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

writeDistributionProperties

protected void writeDistributionProperties()
                                    throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

generateGlobalAssembly

protected String generateGlobalAssembly(String layerId,
                                        String[] formats,
                                        String layerDescriptorFilePath,
                                        String[] componentDescriptorsFilePaths)

generateModuleDescriptor

protected String generateModuleDescriptor(EAPModuleGraphNode node)

generateModuleAssemblyComponent

protected String generateModuleAssemblyComponent(EAPModuleGraphNode node,
                                                 String moduleDescriptorPath,
                                                 String outputPath)

generateLayersDescriptor

protected String generateLayersDescriptor(EAPModulesGraph graph)

KIE EAP - Maven plugin 6.1.0.Final

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