public abstract class EAPBaseMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected EAPArtifactsHolder |
artifactsHolder
Collection to store all resources and its modules.
|
protected EAPConfigurationArtifact |
baseModule
The maven module that contains all base EAP/AS modules for a given version.
|
protected EAPLayer |
baseModulesLayer
The base module layer.
|
protected EAPModulesScanner |
baseModulesScanner
The scanner for base modules.
|
protected EAPContainer |
container
The target container.
|
protected EAPStaticLayerDistribution |
distribution
The modules distribution generated.
|
protected EAPLayerDistributionManager |
distributionManager
The scanner for base modules.
|
protected String |
distributionName
The name of the JBoss EAP layer distrubtion to geneate.
|
protected Boolean |
failOnMissingDependency
The flag that indicates if the build must fail when a dependency to a module resource is not satisfied.
|
protected Boolean |
failOnUnresolvableResource
The flag that indicates if the build must fail when a module resource cannot be resolved in current project dependency tree.
|
protected Boolean |
failOnVersionMismatchedResource
The flag that indicates if the build must fail when a module version for a resource is not resolvable in current project dependencies.
|
protected String |
graphOutputFile
The file to print the generated distribution graph.
|
protected Boolean |
includeOptionalDependencies
The flag that indicates if the optional dependencies must be scanned in the current project dependency tree.
|
protected EAPModulesDependencyBuilder |
modulesDependencyBuilder
The scanner for base modules.
|
protected EAPModulesGraphBuilder |
modulesGraphBuilder
The scanner for base modules.
|
protected org.apache.maven.project.MavenProject |
project
The Maven project.
|
protected List<org.eclipse.aether.repository.RemoteRepository> |
remoteRepos
The project's remote repositories to use for the resolution of plugins and their dependencies.
|
protected org.eclipse.aether.RepositorySystemSession |
repoSession
The current repository/network configuration of Maven.
|
protected org.eclipse.aether.RepositorySystem |
repoSystem
The entry point to Aether, i.e. the component doing all the work.
|
protected List<EAPConfigurationModuleDependency> |
staticDependencies
The static dependencies for this distribution modules.
|
protected EAPLayer |
staticModulesLayer
The static module layer.
|
protected EAPModulesScanner |
staticModulesScanner
The scanner for static modules.
|
| Modifier | Constructor and Description |
|---|---|
protected |
EAPBaseMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkConfiguration() |
protected void |
checkMissingDependencies() |
protected void |
checkResources() |
protected EAPArtifactsHolder |
collectArtifacts(org.eclipse.aether.graph.DependencyNode rootNode) |
void |
execute() |
protected void |
generateModulesDependencies(org.eclipse.aether.graph.DependencyNode rootNode)
Given the root dependency node for the maven artifacts,
runs the modules dependencies resolution.
|
protected EAPModulesGraph |
generateModulesGraph() |
protected Collection<EAPLayer> |
getAllLayers() |
protected Collection<org.eclipse.aether.artifact.Artifact> |
getBaseLayerExclusions()
Retuns the modules excluded from the maven base layer module definition..
|
protected org.eclipse.aether.artifact.Artifact |
getBaseModulesArtifact()
Returns the artifact instance that contains all base modules definitions for a EAP/AS specific version.
|
protected Collection<EAPStaticDistributionModuleDependency> |
getStaticDistributionDependencies() |
protected void |
initServices() |
protected EAPLayer |
loadBaseLayer() |
protected EAPLayer |
loadStaticLayer() |
protected org.apache.maven.project.MavenProject project
protected org.eclipse.aether.RepositorySystem repoSystem
protected org.eclipse.aether.RepositorySystemSession repoSession
protected List<org.eclipse.aether.repository.RemoteRepository> remoteRepos
protected String distributionName
protected EAPConfigurationArtifact baseModule
protected List<EAPConfigurationModuleDependency> staticDependencies
protected String graphOutputFile
protected Boolean failOnMissingDependency
protected Boolean failOnUnresolvableResource
protected Boolean failOnVersionMismatchedResource
protected Boolean includeOptionalDependencies
protected EAPModulesScanner staticModulesScanner
protected EAPModulesScanner baseModulesScanner
protected EAPModulesDependencyBuilder modulesDependencyBuilder
protected EAPModulesGraphBuilder modulesGraphBuilder
protected EAPLayerDistributionManager distributionManager
protected transient EAPArtifactsHolder artifactsHolder
protected EAPLayer staticModulesLayer
protected EAPLayer baseModulesLayer
protected EAPContainer container
protected EAPStaticLayerDistribution distribution
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected void checkResources()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void checkMissingDependencies()
throws EAPModulesDependencyBuilderException
protected void checkConfiguration()
throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionprotected void initServices()
protected Collection<org.eclipse.aether.artifact.Artifact> getBaseLayerExclusions()
protected org.eclipse.aether.artifact.Artifact getBaseModulesArtifact()
protected Collection<EAPStaticDistributionModuleDependency> getStaticDistributionDependencies() throws EAPModuleDefinitionException
EAPModuleDefinitionExceptionprotected EAPArtifactsHolder collectArtifacts(org.eclipse.aether.graph.DependencyNode rootNode)
protected EAPLayer loadStaticLayer() throws EAPModulesDefinitionException, EAPModuleDefinitionException
protected EAPLayer loadBaseLayer() throws EAPModulesDefinitionException, EAPModuleDefinitionException
protected void generateModulesDependencies(org.eclipse.aether.graph.DependencyNode rootNode)
throws EAPModulesDependencyBuilderException
protected EAPModulesGraph generateModulesGraph()
protected Collection<EAPLayer> getAllLayers()
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.