|
KIE EAP - Maven plugin 6.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kie.integration.eap.maven.scanner.EAPStaticModulesScanner
@Component(role=EAPModulesScanner.class,
hint="static")
public class EAPStaticModulesScanner
| Field Summary | |
|---|---|
protected EAPArtifactsHolder |
artifactsHolder
|
protected boolean |
artifactTreeResolved
|
protected EAPLayer |
layer
|
protected org.apache.maven.plugin.logging.Log |
logger
|
protected boolean |
scanResources
|
protected boolean |
scanStaticDependencies
|
| Constructor Summary | |
|---|---|
EAPStaticModulesScanner()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected EAPArtifactsHolder artifactsHolder
protected EAPLayer layer
protected org.apache.maven.plugin.logging.Log logger
protected boolean scanResources
protected boolean scanStaticDependencies
protected boolean artifactTreeResolved
| Constructor Detail |
|---|
public EAPStaticModulesScanner()
| Method Detail |
|---|
public EAPLayer scan(String layerName,
Collection<org.eclipse.aether.artifact.Artifact> moduleArtifacts,
Collection<org.eclipse.aether.artifact.Artifact> exclusions,
EAPArtifactsHolder artifactsHolder)
throws EAPModulesDefinitionException,
EAPModuleDefinitionException
EAPModulesScanner
scan 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
IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
protected 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()
EAPModulesScanner
getModuleTypeSupported in interface EAPModulesScanner
protected 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
EAPModuleDefinitionException
protected 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.ArtifactResolutionException
EAPModuleResourceDuplicationExceptionpublic void setLogger(org.apache.maven.plugin.logging.Log logger)
public boolean isScanResources()
public void setScanResources(boolean scanResources)
EAPModulesScanner
setScanResources in interface EAPModulesScannerpublic boolean isArtifactTreeResolved()
public void setArtifactTreeResolved(boolean artifactTreeResolved)
public void setBaseModulesLayer(EAPLayer baseModulesLayer)
public boolean isScanStaticDependencies()
public void setScanStaticDependencies(boolean scanStaticDependencies)
EAPModulesScanner
setScanStaticDependencies in interface EAPModulesScannerscanStaticDependencies - if static dependency properties must be scanned.public void setDistributionStaticDependencies(Collection<EAPStaticDistributionModuleDependency> dependencies)
EAPModulesScanner
setDistributionStaticDependencies in interface EAPModulesScannerdependencies - The static dependencies for this distribution.
|
KIE EAP - Maven plugin 6.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||