@Component(role=EAPModulesScanner.class, hint="static") public class EAPStaticModulesScanner extends Object implements EAPModulesScanner
| Modifier and Type | Field and Description |
|---|---|
protected EAPArtifactsHolder |
artifactsHolder |
protected boolean |
artifactTreeResolved |
protected EAPLayer |
layer |
protected org.apache.maven.plugin.logging.Log |
logger |
protected boolean |
scanResources |
protected boolean |
scanStaticDependencies |
| Constructor and Description |
|---|
EAPStaticModulesScanner() |
| Modifier and Type | Method and Description |
|---|---|
protected EAPArtifactResource |
addResource(EAPModule module,
org.apache.maven.model.Model moduleModel,
org.apache.maven.model.Dependency moduleDependency) |
protected void |
addStaticDependencies(EAPModule module,
org.apache.maven.model.Model moduleModel,
String moduleDependenciesRaw,
Collection<org.eclipse.aether.artifact.Artifact> exclusions) |
protected void |
addStaticDistributionDependencies(EAPModule result) |
protected void |
checkModuleProperties(Properties moduleProperties,
String moduleArtifactCoordinates) |
protected String |
createExclusion(org.eclipse.aether.artifact.Artifact moduleArtifact) |
protected EAPModule |
createModule(org.eclipse.aether.artifact.Artifact moduleArtifact,
Collection<org.eclipse.aether.artifact.Artifact> exclusions) |
protected EAPModule |
createModuleInstance(org.eclipse.aether.artifact.Artifact artifact,
String moduleName,
String moduleLocation,
String moduleSlot,
Properties moduleProperties) |
String |
getModuleTypeSupported()
Returns the module type that supports this scanner implementation.
|
boolean |
isArtifactTreeResolved() |
protected boolean |
isModuleExcluded(org.eclipse.aether.artifact.Artifact module,
Collection<org.eclipse.aether.artifact.Artifact> exclusions) |
boolean |
isScanResources() |
boolean |
isScanStaticDependencies() |
EAPLayer |
scan(String layerName,
Collection<org.eclipse.aether.artifact.Artifact> moduleArtifacts,
Collection<org.eclipse.aether.artifact.Artifact> exclusions,
EAPArtifactsHolder artifactsHolder)
Scan the module descriptors and generate model module definitions for a single layer.
|
void |
setArtifactTreeResolved(boolean artifactTreeResolved) |
void |
setBaseModulesLayer(EAPLayer baseModulesLayer) |
void |
setDistributionStaticDependencies(Collection<EAPStaticDistributionModuleDependency> dependencies)
Set the static dependencies at distribution level.
|
void |
setLogger(org.apache.maven.plugin.logging.Log logger) |
void |
setScanResources(boolean scanResources)
Set it to scan module resources too.
|
void |
setScanStaticDependencies(boolean scanStaticDependencies)
Set if static dependency properties must be scanned.
|
protected EAPArtifactsHolder artifactsHolder
protected EAPLayer layer
protected org.apache.maven.plugin.logging.Log logger
protected boolean scanResources
protected boolean scanStaticDependencies
protected boolean artifactTreeResolved
public EAPLayer scan(String layerName, Collection<org.eclipse.aether.artifact.Artifact> moduleArtifacts, Collection<org.eclipse.aether.artifact.Artifact> exclusions, EAPArtifactsHolder artifactsHolder) throws EAPModulesDefinitionException, EAPModuleDefinitionException
EAPModulesScannerscan in interface EAPModulesScannerlayerName - The name for the layer to scan.moduleArtifacts - The collection of pom module artifacts.artifactsHolder - The resolved artifacts for this project.EAPModulesDefinitionException - Exception in a single module loading.EAPModuleDefinitionException - Exception loading module definitions.protected String createExclusion(org.eclipse.aether.artifact.Artifact moduleArtifact) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserExceptionprotected EAPModule createModule(org.eclipse.aether.artifact.Artifact moduleArtifact, Collection<org.eclipse.aether.artifact.Artifact> exclusions) throws EAPModuleDefinitionException
EAPModuleDefinitionExceptionprotected void addStaticDistributionDependencies(EAPModule result)
protected void checkModuleProperties(Properties moduleProperties, String moduleArtifactCoordinates) throws EAPModuleDefinitionException
EAPModuleDefinitionExceptionpublic String getModuleTypeSupported()
EAPModulesScannergetModuleTypeSupported in interface EAPModulesScannerprotected EAPModule createModuleInstance(org.eclipse.aether.artifact.Artifact artifact, String moduleName, String moduleLocation, String moduleSlot, Properties moduleProperties)
protected boolean isModuleExcluded(org.eclipse.aether.artifact.Artifact module,
Collection<org.eclipse.aether.artifact.Artifact> exclusions)
protected void addStaticDependencies(EAPModule module, org.apache.maven.model.Model moduleModel, String moduleDependenciesRaw, Collection<org.eclipse.aether.artifact.Artifact> exclusions) throws EAPModuleDefinitionException
EAPModuleDefinitionExceptionprotected EAPArtifactResource addResource(EAPModule module, org.apache.maven.model.Model moduleModel, org.apache.maven.model.Dependency moduleDependency) throws org.eclipse.aether.resolution.ArtifactResolutionException, EAPModuleResourceDuplicationException
org.eclipse.aether.resolution.ArtifactResolutionExceptionEAPModuleResourceDuplicationExceptionpublic void setLogger(org.apache.maven.plugin.logging.Log logger)
public boolean isScanResources()
public void setScanResources(boolean scanResources)
EAPModulesScannersetScanResources in interface EAPModulesScannerpublic boolean isArtifactTreeResolved()
public void setArtifactTreeResolved(boolean artifactTreeResolved)
public void setBaseModulesLayer(EAPLayer baseModulesLayer)
public boolean isScanStaticDependencies()
public void setScanStaticDependencies(boolean scanStaticDependencies)
EAPModulesScannersetScanStaticDependencies in interface EAPModulesScannerscanStaticDependencies - if static dependency properties must be scanned.public void setDistributionStaticDependencies(Collection<EAPStaticDistributionModuleDependency> dependencies)
EAPModulesScannersetDistributionStaticDependencies in interface EAPModulesScannerdependencies - The static dependencies for this distribution.Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.